sipxmedialib  Version 3.3
MpFlowGraphMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2013 SIPez LLC. All rights reserved.
3 //
4 // Copyright (C) 2004-2009 SIPfoundry Inc.
5 // Licensed by SIPfoundry under the LGPL license.
6 //
7 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
8 // Licensed to SIPfoundry under a Contributor Agreement.
9 //
10 // $$
12 
13 #ifndef _MpFlowGraphMsg_h_
14 #define _MpFlowGraphMsg_h_
15 
16 // SYSTEM INCLUDES
17 
18 // APPLICATION INCLUDES
19 #include "os/OsMsg.h"
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 
29 // FORWARD DECLARATIONS
30 class MpResource;
31 
33 class MpFlowGraphMsg : public OsMsg
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
39  typedef enum
40  {
55 
58 
62 
64 
66 
69 
70 /* ============================ CREATORS ================================== */
72 
73 
75  MpFlowGraphMsg(int msg, MpResource* pMsgDest=NULL,
76  void* pPtr1=NULL, void* pPtr2=NULL,
77  intptr_t int1=-1, intptr_t int2=-1);
78 
80  MpFlowGraphMsg(const MpFlowGraphMsg& rMpFlowGraphMsg);
81 
83  virtual OsMsg* createCopy(void) const;
84 
86  virtual
88 
90 
91 /* ============================ MANIPULATORS ============================== */
93 
94 
97 
99  void setMsgDest(MpResource* pMsgDest);
106  void setPtr1(void* p);
108 
110  void setPtr2(void* p);
111 
113  void setInt1(intptr_t i);
114 
116  void setInt2(intptr_t i);
117 
119 
120 /* ============================ ACCESSORS ================================= */
122 
123 
125  int getMsg(void) const;
126 
128  MpResource* getMsgDest(void) const;
135  void* getPtr1(void) const;
137 
139  void* getPtr2(void) const;
140 
142  intptr_t getInt1(void) const;
143 
145  intptr_t getInt2(void) const;
146 
148 
149 /* ============================ INQUIRY =================================== */
151 
152 
154 
155 /* //////////////////////////// PROTECTED ///////////////////////////////// */
156 protected:
157 
158 /* //////////////////////////// PRIVATE /////////////////////////////////// */
159 private:
161  void* mpPtr1;
162  void* mpPtr2;
163  intptr_t mInt1;
164  intptr_t mInt2;
165 
166 };
167 
168 /* ============================ INLINE METHODS ============================ */
169 
170 #endif // _MpFlowGraphMsg_h_
Message object used to communicate with the media processing task.
Definition: MpFlowGraphMsg.h:33
intptr_t getInt1(void) const
Return integer 1 of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:148
Definition: MpFlowGraphMsg.h:65
virtual ~MpFlowGraphMsg()
Destructor.
Definition: MpFlowGraphMsg.cpp:61
virtual OsMsg * createCopy(void) const
Create a copy of this msg object (which may be of a derived type)
Definition: MpFlowGraphMsg.cpp:55
void setPtr1(void *p)
Sets pointer 1 (void*) of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:96
void * getPtr2(void) const
Return pointer 2 (void*) of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:142
Definition: MpFlowGraphMsg.h:52
Definition: MpFlowGraphMsg.h:46
Definition: MpFlowGraphMsg.h:44
MpResource * mpMsgDest
Intended recipient for this message.
Definition: MpFlowGraphMsg.h:160
Definition: MpFlowGraphMsg.h:42
Definition: MpFlowGraphMsg.h:51
Definition: MpFlowGraphMsg.h:54
Definition: MpFlowGraphMsg.h:50
void setMsgDest(MpResource *pMsgDest)
Set destination object of the message.
Definition: MpFlowGraphMsg.cpp:89
Definition: MpFlowGraphMsg.h:49
void setInt2(intptr_t i)
Sets integer 2 of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:114
Definition: MpFlowGraphMsg.h:47
void * mpPtr1
Pointer to data 1.
Definition: MpFlowGraphMsg.h:161
intptr_t getInt2(void) const
Return integer 2 of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:154
Definition: MpFlowGraphMsg.h:53
MpFlowGraphMsgType
Phone set message types.
Definition: MpFlowGraphMsg.h:39
Definition: MpFlowGraphMsg.h:61
Definition: MpFlowGraphMsg.h:45
void * getPtr1(void) const
Return pointer 1 (void*) of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:136
MpFlowGraphMsg(int msg, MpResource *pMsgDest=NULL, void *pPtr1=NULL, void *pPtr2=NULL, intptr_t int1=-1, intptr_t int2=-1)
Constructor.
Definition: MpFlowGraphMsg.cpp:31
Definition: MpFlowGraphMsg.h:63
MpFlowGraphMsg & operator=(const MpFlowGraphMsg &rhs)
Assignment operator.
Definition: MpFlowGraphMsg.cpp:70
Definition: MpFlowGraphMsg.h:60
Definition: MpFlowGraphMsg.h:57
Definition: MpFlowGraphMsg.h:48
intptr_t mInt1
Integer data 1.
Definition: MpFlowGraphMsg.h:163
int getMsg(void) const
Returns the type of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:122
void setInt1(intptr_t i)
Sets integer 1 of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:108
intptr_t mInt2
Integer data 2.
Definition: MpFlowGraphMsg.h:164
Definition: MpFlowGraphMsg.h:56
Definition: MpFlowGraphMsg.h:41
MpResource * getMsgDest(void) const
Get destination object of the message.
Definition: MpFlowGraphMsg.cpp:130
Abstract base class for all media processing objects.
Definition: MpResource.h:56
Definition: MpFlowGraphMsg.h:43
Definition: MpFlowGraphMsg.h:59
void setPtr2(void *p)
Sets pointer 2 (void*) of the media flow graph message.
Definition: MpFlowGraphMsg.cpp:102
void * mpPtr2
Pointer to data 2.
Definition: MpFlowGraphMsg.h:162
start of resource-specific messages
Definition: MpFlowGraphMsg.h:67