sipxmedialib  Version 3.3
MprnStringMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007-2011 SIPez LLC. All rights reserved.
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 _MprnStringMsg_h_
12 #define _MprnStringMsg_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  const UtlString& value,
45  int streamId = -1);
46 
48  MprnStringMsg(const MprnStringMsg& rMsg);
49 
51  virtual OsMsg* createCopy() const;
52 
54  virtual ~MprnStringMsg();
55 
57 
58 /* ============================ MANIPULATORS ============================== */
60 
61 
64 
66  void setValue(const UtlString& value);
67 
69 
70 /* ============================ ACCESSORS ================================= */
72 
73 
75  void getValue(UtlString& value) const;
76 
78 
79 /* ============================ INQUIRY =================================== */
81 
82 
84 
85 /* //////////////////////////// PROTECTED ///////////////////////////////// */
86 protected:
87 
88 /* //////////////////////////// PRIVATE /////////////////////////////////// */
89 private:
90  UtlString mValue;
91 };
92 
93 /* ============================ INLINE METHODS ============================ */
94 
95 #endif // _MprnStringMsg_h_
Message notification object used to send an abstract integer.
Definition: MprnStringMsg.h:31
virtual OsMsg * createCopy() const
Create a copy of this msg object (which may be of a derived type)
Definition: MprnStringMsg.cpp:41
MprnStringMsg(MpResNotificationMsg::RNMsgType msgType, const UtlString &namedResOriginator, const UtlString &value, MpConnectionID connId=MP_INVALID_CONNECTION_ID, int streamId=-1)
Constructor.
Definition: MprnStringMsg.cpp:25
UtlString mValue
Reported value.
Definition: MprnStringMsg.h:90
void getValue(UtlString &value) const
Get the value this notification reports.
Definition: MprnStringMsg.cpp:73
virtual ~MprnStringMsg()
Destructor.
Definition: MprnStringMsg.cpp:46
Definition: MpResNotificationMsg.h:31
MprnStringMsg & operator=(const MprnStringMsg &rhs)
Assignment operator.
Definition: MprnStringMsg.cpp:54
void setValue(const UtlString &value)
Set the value this notification reports.
Definition: MprnStringMsg.cpp:66
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