sipxmedialib  Version 3.3
MprnIntMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2007 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 #ifndef _MprnIntMsg_h_
12 #define _MprnIntMsg_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "os/OsMsg.h"
18 #include "utl/UtlString.h"
19 #include "MpResNotificationMsg.h"
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
29 
32 {
33 /* //////////////////////////// PUBLIC //////////////////////////////////// */
34 public:
35 
36 /* ============================ CREATORS ================================== */
38 
39 
42  const UtlString& namedResOriginator,
43  int value,
45  int streamId = -1);
46 
48  MprnIntMsg(const MprnIntMsg& rMsg);
49 
51  virtual OsMsg* createCopy() const;
52 
54  virtual ~MprnIntMsg();
55 
57 
58 /* ============================ MANIPULATORS ============================== */
60 
61 
63  MprnIntMsg& operator=(const MprnIntMsg& rhs);
64 
66  void setValue(int value);
67 
69 
70 /* ============================ ACCESSORS ================================= */
72 
73 
75  int getValue() const;
76 
78 
79 /* ============================ INQUIRY =================================== */
81 
82 
84 
85 /* //////////////////////////// PROTECTED ///////////////////////////////// */
86 protected:
87 
88 /* //////////////////////////// PRIVATE /////////////////////////////////// */
89 private:
90  int mValue;
91 };
92 
93 /* ============================ INLINE METHODS ============================ */
94 
95 #endif // _MprnIntMsg_h_
void setValue(int value)
Set the value this notification reports.
Definition: MprnIntMsg.cpp:66
int mValue
Reported value.
Definition: MprnIntMsg.h:90
virtual OsMsg * createCopy() const
Create a copy of this msg object (which may be of a derived type)
Definition: MprnIntMsg.cpp:41
int getValue() const
Get the value this notification reports.
Definition: MprnIntMsg.cpp:73
Message notification object used to send an abstract integer.
Definition: MprnIntMsg.h:31
Definition: MpResNotificationMsg.h:31
MprnIntMsg & operator=(const MprnIntMsg &rhs)
Assignment operator.
Definition: MprnIntMsg.cpp:54
virtual ~MprnIntMsg()
Destructor.
Definition: MprnIntMsg.cpp:46
int MpConnectionID
Flowgraph connection ID.
Definition: MpTypes.h:56
RNMsgType
Phone set message types.
Definition: MpResNotificationMsg.h:37
#define MP_INVALID_CONNECTION_ID
Definition: MpTypes.h:57
MprnIntMsg(MpResNotificationMsg::RNMsgType msgType, const UtlString &namedResOriginator, int value, MpConnectionID connId=MP_INVALID_CONNECTION_ID, int streamId=-1)
Constructor.
Definition: MprnIntMsg.cpp:25