sipxmedialib
Version 3.3
Main Page
Related Pages
Classes
Files
File List
File Members
include
mp
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
{
40
MANAGE
,
41
SET_FOCUS
,
42
START
,
43
STOP
,
44
UNMANAGE
,
45
WAIT_FOR_SIGNAL
,
46
START_SEND_RTP
,
47
STOP_SEND_RTP
,
48
START_RECEIVE_RTP
,
49
STOP_RECEIVE_RTP
50
}
MpMediaTaskMsgType
;
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
68
~MpMediaTaskMsg
();
69
71
72
/* ============================ MANIPULATORS ============================== */
74
75
77
MpMediaTaskMsg
&
operator=
(
const
MpMediaTaskMsg
& rhs);
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_
MpMediaTaskMsg::SET_FOCUS
Definition:
MpMediaTaskMsg.h:41
MpMediaTaskMsg::MpMediaTaskMsgType
MpMediaTaskMsgType
Phone set message types.
Definition:
MpMediaTaskMsg.h:38
MpMediaTaskMsg::~MpMediaTaskMsg
virtual ~MpMediaTaskMsg()
Destructor.
Definition:
MpMediaTaskMsg.cpp:59
MpMediaTaskMsg::operator=
MpMediaTaskMsg & operator=(const MpMediaTaskMsg &rhs)
Assignment operator.
Definition:
MpMediaTaskMsg.cpp:68
MpMediaTaskMsg::setInt2
void setInt2(int i)
Set integer 2 of the media task message.
Definition:
MpMediaTaskMsg.cpp:102
MpMediaTaskMsg::getPtr2
void * getPtr2(void) const
Return pointer 2 (void*) of the media task message.
Definition:
MpMediaTaskMsg.cpp:122
MpMediaTaskMsg::mpPtr1
void * mpPtr1
Message pointer 1.
Definition:
MpMediaTaskMsg.h:125
MpMediaTaskMsg::STOP
Definition:
MpMediaTaskMsg.h:43
MpMediaTaskMsg::getInt1
int getInt1(void) const
Return integer 1 of the message.
Definition:
MpMediaTaskMsg.cpp:128
MpMediaTaskMsg::setInt1
void setInt1(int i)
Set integer 1 of the media task message.
Definition:
MpMediaTaskMsg.cpp:96
MpMediaTaskMsg
Message object used to communicate with the media processing task.
Definition:
MpMediaTaskMsg.h:32
MpMediaTaskMsg::getInt2
int getInt2(void) const
Return integer 2 of the message.
Definition:
MpMediaTaskMsg.cpp:134
MpMediaTaskMsg::mpPtr2
void * mpPtr2
Message pointer 2.
Definition:
MpMediaTaskMsg.h:126
MpMediaTaskMsg::STOP_RECEIVE_RTP
Definition:
MpMediaTaskMsg.h:49
MpMediaTaskMsg::STOP_SEND_RTP
Definition:
MpMediaTaskMsg.h:47
MpMediaTaskMsg::setPtr1
void setPtr1(void *p)
Set pointer 1 (void*) of the media task message.
Definition:
MpMediaTaskMsg.cpp:84
MpMediaTaskMsg::MANAGE
Definition:
MpMediaTaskMsg.h:40
MpMediaTaskMsg::UNMANAGE
Definition:
MpMediaTaskMsg.h:44
MpMediaTaskMsg::setPtr2
void setPtr2(void *p)
Set pointer 2 (void*) of the media task message.
Definition:
MpMediaTaskMsg.cpp:90
MpMediaTaskMsg::START_RECEIVE_RTP
Definition:
MpMediaTaskMsg.h:48
MpMediaTaskMsg::START_SEND_RTP
Definition:
MpMediaTaskMsg.h:46
MpMediaTaskMsg::START
Definition:
MpMediaTaskMsg.h:42
MpMediaTaskMsg::getMsg
int getMsg(void) const
Return the type of the media task message.
Definition:
MpMediaTaskMsg.cpp:110
MpMediaTaskMsg::getPtr1
void * getPtr1(void) const
Return pointer 1 (void*) of the media task message.
Definition:
MpMediaTaskMsg.cpp:116
MpMediaTaskMsg::createCopy
virtual OsMsg * createCopy(void) const
Create a copy of this msg object (which may be of a derived type)
Definition:
MpMediaTaskMsg.cpp:53
MpMediaTaskMsg::mInt2
int mInt2
Message integer 2.
Definition:
MpMediaTaskMsg.h:128
MpMediaTaskMsg::WAIT_FOR_SIGNAL
Definition:
MpMediaTaskMsg.h:45
MpMediaTaskMsg::mInt1
int mInt1
Message integer 1.
Definition:
MpMediaTaskMsg.h:127
MpMediaTaskMsg::MpMediaTaskMsg
MpMediaTaskMsg(int msg=-1, void *pPtr1=NULL, void *pPtr2=NULL, int int1=-1, int int2=-1)
Constructor.
Definition:
MpMediaTaskMsg.cpp:31
Generated by
1.8.11