sipxmediaadapterlib  Version 3.3
MiRtpStreamActivityNotf.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2008 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2008 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 #ifndef _MiRtpStreamActivityNotf_h_
12 #define _MiRtpStreamActivityNotf_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "os/OsMsg.h"
18 #include "utl/UtlString.h"
19 #include "mi/MiNotification.h"
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
29 
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
38 /* ============================ CREATORS ================================== */
40 
41 
42  enum StreamState {
46  };
47 
49  MiRtpStreamActivityNotf(const UtlString& namedResOriginator,
50  StreamState state,
51  unsigned ssrc,
52  unsigned address,
53  int port,
54  int connId = -1,
55  int streamId = -1);
56 
59 
61  virtual OsMsg* createCopy() const;
62 
64  virtual ~MiRtpStreamActivityNotf();
65 
67 
68 /* ============================ MANIPULATORS ============================== */
70 
71 
74 
76 
77 /* ============================ ACCESSORS ================================= */
79 
80 
82  StreamState getState() const;
83 
85  unsigned getSsrc() const;
86 
88  unsigned getAddress() const;
89 
91  int getPort() const;
92 
94 
95 /* ============================ INQUIRY =================================== */
97 
98 
100 
101 /* //////////////////////////// PROTECTED ///////////////////////////////// */
102 protected:
104  unsigned mSsrc;
105  unsigned mAddress;
106  int mPort;
107 
108 /* //////////////////////////// PRIVATE /////////////////////////////////// */
109 private:
110 };
111 
112 /* ============================ INLINE METHODS ============================ */
113 
114 #endif // _MiRtpStreamActivityNotf_h_
Stream have been stopped.
Definition: MiRtpStreamActivityNotf.h:44
unsigned mSsrc
SSRC of the stream.
Definition: MiRtpStreamActivityNotf.h:104
StreamState mState
Stream state to be reported.
Definition: MiRtpStreamActivityNotf.h:103
MiRtpStreamActivityNotf(const UtlString &namedResOriginator, StreamState state, unsigned ssrc, unsigned address, int port, int connId=-1, int streamId=-1)
Constructor.
Definition: MiRtpStreamActivityNotf.cpp:25
virtual OsMsg * createCopy() const
Create a copy of this msg object (which may be of a derived type)
Definition: MiRtpStreamActivityNotf.cpp:49
Definition: MiRtpStreamActivityNotf.h:33
Stream have been started.
Definition: MiRtpStreamActivityNotf.h:43
Message notification class used to communicate media notification events.
Definition: MiNotification.h:42
MiRtpStreamActivityNotf & operator=(const MiRtpStreamActivityNotf &rhs)
Assignment operator.
Definition: MiRtpStreamActivityNotf.cpp:62
unsigned getSsrc() const
Get the stream SSRC.
Definition: MiRtpStreamActivityNotf.cpp:83
virtual ~MiRtpStreamActivityNotf()
Destructor.
Definition: MiRtpStreamActivityNotf.cpp:54
unsigned mAddress
IP of the stream source/destination.
Definition: MiRtpStreamActivityNotf.h:105
int getPort() const
Get port of the stream source/destination.
Definition: MiRtpStreamActivityNotf.cpp:93
StreamState
Definition: MiRtpStreamActivityNotf.h:42
unsigned getAddress() const
Get IP address of the stream source/destination.
Definition: MiRtpStreamActivityNotf.cpp:88
StreamState getState() const
Get the stream state.
Definition: MiRtpStreamActivityNotf.cpp:78
int mPort
Port of the stream source/destination.
Definition: MiRtpStreamActivityNotf.h:106
Stream attributes have been changed.
Definition: MiRtpStreamActivityNotf.h:45