sipxmediaadapterlib  Version 3.3
MiIntNotf.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 // Author: Alexander Chemeris <Alexander DOT Chemeris AT SIPez DOT com>
12 
13 #ifndef _MiIntNotf_h_
14 #define _MiIntNotf_h_
15 
16 // SYSTEM INCLUDES
17 
18 // APPLICATION INCLUDES
19 #include "os/OsMsg.h"
20 #include "utl/UtlString.h"
21 #include "mi/MiNotification.h"
22 
23 // DEFINES
24 // MACROS
25 // EXTERNAL FUNCTIONS
26 // EXTERNAL VARIABLES
27 // CONSTANTS
28 // STRUCTS
29 // TYPEDEFS
30 // FORWARD DECLARATIONS
31 
33 class MiIntNotf : public MiNotification
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
38 /* ============================ CREATORS ================================== */
40 
41 
43  MiIntNotf(NotfType msgType,
44  const UtlString& sourceId,
45  int value,
46  int connectionId = INVALID_CONNECTION_ID,
47  int streamId = -1);
48 
50  MiIntNotf(const MiIntNotf& rNotf);
51 
53  virtual OsMsg* createCopy() const;
54 
56  virtual ~MiIntNotf();
57 
59 
60 /* ============================ MANIPULATORS ============================== */
62 
63 
65  MiIntNotf& operator=(const MiIntNotf& rhs);
66 
68  void setValue(int value);
69 
71 
72 /* ============================ ACCESSORS ================================= */
74 
75 
77  int getValue() const;
78 
80 
81 /* ============================ INQUIRY =================================== */
83 
84 
86 
87 /* //////////////////////////// PROTECTED ///////////////////////////////// */
88 protected:
89 
90 /* //////////////////////////// PRIVATE /////////////////////////////////// */
91 private:
92  int mValue;
93 };
94 
95 /* ============================ INLINE METHODS ============================ */
96 
97 #endif // _MiIntNotf_h_
int getValue() const
Get the value this notification reports.
Definition: MiIntNotf.cpp:76
MiIntNotf(NotfType msgType, const UtlString &sourceId, int value, int connectionId=INVALID_CONNECTION_ID, int streamId=-1)
Constructor.
Definition: MiIntNotf.cpp:28
NotfType
Media notification message types.
Definition: MiNotification.h:48
Message notification class used to communicate media notification events.
Definition: MiNotification.h:42
int mValue
Reported value.
Definition: MiIntNotf.h:92
static const int INVALID_CONNECTION_ID
Connection ID that indicates invalid connection or no connection.
Definition: MiNotification.h:85
virtual OsMsg * createCopy() const
Create a copy of this msg object (which may be of a derived type)
Definition: MiIntNotf.cpp:44
MiIntNotf & operator=(const MiIntNotf &rhs)
Assignment operator.
Definition: MiIntNotf.cpp:57
Message notification class used to communicate abstract integer value.
Definition: MiIntNotf.h:33
void setValue(int value)
Set the value this notification reports.
Definition: MiIntNotf.cpp:69
virtual ~MiIntNotf()
Destructor.
Definition: MiIntNotf.cpp:49