sipxmedialib  Version 3.3
MpResourceMsg.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 _MpResourceMsg_h_
12 #define _MpResourceMsg_h_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include "os/OsMsg.h"
18 #include "utl/UtlString.h"
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 
30 class MpResourceMsg : public OsMsg
31 {
32 /* //////////////////////////// PUBLIC //////////////////////////////////// */
33 public:
34 
36  typedef enum
37  {
42 
45 
47 
49 
52 
53  // Add new built in resource operation messages above
54 
55  // Non-builtin resource messages
57  // Do not add new message types after this
59 
60 /* ============================ CREATORS ================================== */
62 
63 
65  MpResourceMsg(MpResourceMsgType msg, const UtlString& msgDestName);
66 
68  MpResourceMsg(const MpResourceMsg& rMpResourceMsg);
69 
71  virtual OsMsg* createCopy() const;
72 
74  virtual
76 
78 
79 /* ============================ MANIPULATORS ============================== */
81 
82 
85 
87  void setDestResourceName(const UtlString& msgDestName);
92 
93 /* ============================ ACCESSORS ================================= */
95 
96 
98  int getMsg() const;
99 
101  UtlString getDestResourceName() const;
108 
109 /* ============================ INQUIRY =================================== */
111 
112 
114 
115 /* //////////////////////////// PROTECTED ///////////////////////////////// */
116 protected:
117 
118 /* //////////////////////////// PRIVATE /////////////////////////////////// */
119 private:
120  UtlString mMsgDestName;
121 };
122 
123 /* ============================ INLINE METHODS ============================ */
124 
125 #endif // _MpResourceMsg_h_
MpResourceMsg & operator=(const MpResourceMsg &rhs)
Assignment operator.
Definition: MpResourceMsg.cpp:60
All resources: Enable resource.
Definition: MpResourceMsg.h:38
Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
MpResourceMsg(MpResourceMsgType msg, const UtlString &msgDestName)
Constructor.
Definition: MpResourceMsg.cpp:31
Definition: MpResourceMsg.h:56
MprToneGen: Stop a tone.
Definition: MpResourceMsg.h:44
int getMsg() const
Returns the type of the media resource message.
Definition: MpResourceMsg.cpp:81
UtlString getDestResourceName() const
Get the name of the resource this message applies to.
Definition: MpResourceMsg.cpp:88
MprDecode/MprEncode: Select codecs.
Definition: MpResourceMsg.h:48
virtual OsMsg * createCopy() const
Create a copy of this msg object (which may be of a derived type)
Definition: MpResourceMsg.cpp:45
UtlString mMsgDestName
Intended recipient for this message.
Definition: MpResourceMsg.h:120
MprBridge: Set row or column in mix matrix.
Definition: MpResourceMsg.h:46
MprFromNet and containers stop reading sockets.
Definition: MpResourceMsg.h:51
MpResourceMsgType
Resource message types.
Definition: MpResourceMsg.h:36
All resources: Enable all notifications to be sent from a resource.
Definition: MpResourceMsg.h:40
void setDestResourceName(const UtlString &msgDestName)
Set the name of the resource this message applies to.
Definition: MpResourceMsg.cpp:73
All resources: Disable resource.
Definition: MpResourceMsg.h:39
virtual ~MpResourceMsg()
Destructor.
Definition: MpResourceMsg.cpp:51
All resources: Disable all notification from being sent a from resource.
Definition: MpResourceMsg.h:41
MprFromNet and containers set RTP/RTCP sockets.
Definition: MpResourceMsg.h:50
MprToneGen: Start a tone.
Definition: MpResourceMsg.h:43