sipxmedialib  Version 3.3
MpMediaTaskMsg.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2006 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 #ifndef _MpMediaTaskMsg_h_
15 #define _MpMediaTaskMsg_h_
16 
17 // SYSTEM INCLUDES
18 
19 // APPLICATION INCLUDES
20 #include "os/OsMsg.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
32 class MpMediaTaskMsg : public OsMsg
33 {
34 /* //////////////////////////// PUBLIC //////////////////////////////////// */
35 public:
36 
38  typedef enum
39  {
51 
52 /* ============================ CREATORS ================================== */
54 
55 
57  MpMediaTaskMsg(int msg=-1, void* pPtr1=NULL, void* pPtr2=NULL,
58  int int1=-1, int int2=-1);
59 
61  MpMediaTaskMsg(const MpMediaTaskMsg& rMpMediaTaskMsg);
62 
64  virtual OsMsg* createCopy(void) const;
65 
67  virtual
69 
71 
72 /* ============================ MANIPULATORS ============================== */
74 
75 
78 
80  void setPtr1(void* p);
81 
83  void setPtr2(void* p);
84 
86  void setInt1(int i);
87 
89  void setInt2(int i);
90 
92 
93 /* ============================ ACCESSORS ================================= */
95 
96 
98  int getMsg(void) const;
99 
101  void* getPtr1(void) const;
102 
104  void* getPtr2(void) const;
105 
107  int getInt1(void) const;
108 
110  int getInt2(void) const;
111 
113 
114 /* ============================ INQUIRY =================================== */
116 
117 
119 
120 /* //////////////////////////// PROTECTED ///////////////////////////////// */
121 protected:
122 
123 /* //////////////////////////// PRIVATE /////////////////////////////////// */
124 private:
125  void* mpPtr1;
126  void* mpPtr2;
127  int mInt1;
128  int mInt2;
129 
130 };
131 
132 /* ============================ INLINE METHODS ============================ */
133 
134 #endif // _MpMediaTaskMsg_h_
Definition: MpMediaTaskMsg.h:41
MpMediaTaskMsgType
Phone set message types.
Definition: MpMediaTaskMsg.h:38
virtual ~MpMediaTaskMsg()
Destructor.
Definition: MpMediaTaskMsg.cpp:59
MpMediaTaskMsg & operator=(const MpMediaTaskMsg &rhs)
Assignment operator.
Definition: MpMediaTaskMsg.cpp:68
void setInt2(int i)
Set integer 2 of the media task message.
Definition: MpMediaTaskMsg.cpp:102
void * getPtr2(void) const
Return pointer 2 (void*) of the media task message.
Definition: MpMediaTaskMsg.cpp:122
void * mpPtr1
Message pointer 1.
Definition: MpMediaTaskMsg.h:125
Definition: MpMediaTaskMsg.h:43
int getInt1(void) const
Return integer 1 of the message.
Definition: MpMediaTaskMsg.cpp:128
void setInt1(int i)
Set integer 1 of the media task message.
Definition: MpMediaTaskMsg.cpp:96
Message object used to communicate with the media processing task.
Definition: MpMediaTaskMsg.h:32
int getInt2(void) const
Return integer 2 of the message.
Definition: MpMediaTaskMsg.cpp:134
void * mpPtr2
Message pointer 2.
Definition: MpMediaTaskMsg.h:126
Definition: MpMediaTaskMsg.h:49
Definition: MpMediaTaskMsg.h:47
void setPtr1(void *p)
Set pointer 1 (void*) of the media task message.
Definition: MpMediaTaskMsg.cpp:84
Definition: MpMediaTaskMsg.h:40
Definition: MpMediaTaskMsg.h:44
void setPtr2(void *p)
Set pointer 2 (void*) of the media task message.
Definition: MpMediaTaskMsg.cpp:90
Definition: MpMediaTaskMsg.h:48
Definition: MpMediaTaskMsg.h:46
Definition: MpMediaTaskMsg.h:42
int getMsg(void) const
Return the type of the media task message.
Definition: MpMediaTaskMsg.cpp:110
void * getPtr1(void) const
Return pointer 1 (void*) of the media task message.
Definition: MpMediaTaskMsg.cpp:116
virtual OsMsg * createCopy(void) const
Create a copy of this msg object (which may be of a derived type)
Definition: MpMediaTaskMsg.cpp:53
int mInt2
Message integer 2.
Definition: MpMediaTaskMsg.h:128
Definition: MpMediaTaskMsg.h:45
int mInt1
Message integer 1.
Definition: MpMediaTaskMsg.h:127
MpMediaTaskMsg(int msg=-1, void *pPtr1=NULL, void *pPtr2=NULL, int int1=-1, int int2=-1)
Constructor.
Definition: MpMediaTaskMsg.cpp:31