OPAL  Version 3.10.10
rfc4103.h
Go to the documentation of this file.
1 /*
2  * rfc4103.h
3  *
4  * Implementation of RFC 4103 RTP Payload for Text Conversation
5  *
6  * Open Phone Abstraction Library (OPAL)
7  *
8  * Copyright (c) 2008 Post Increment
9  *
10  * The contents of this file are subject to the Mozilla Public License
11  * Version 1.0 (the "License"); you may not use this file except in
12  * compliance with the License. You may obtain a copy of the License at
13  * http://www.mozilla.org/MPL/
14  *
15  * Software distributed under the License is distributed on an "AS IS"
16  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17  * the License for the specific language governing rights and limitations
18  * under the License.
19  *
20  * The Original Code is Open Phone Abstraction Library.
21  *
22  * The Initial Developer of the Original Code is Post Increment
23  *
24  * Contributor(s): ______________________________________.
25  *
26  * $Revision: 23609 $
27  * $Author: csoutheren $
28  * $Date: 2009-10-08 00:48:02 -0500 (Thu, 08 Oct 2009) $
29  */
30 
31 #ifndef OPAL_IM_RFC4103_H
32 #define OPAL_IM_RFC4103_H
33 
34 #include <opal/buildopts.h>
35 
36 #if OPAL_HAS_RFC4103
37 
38 #include <opal/mediafmt.h>
39 #include <im/t140.h>
40 #include <im/im.h>
41 #include <rtp/rtp.h>
42 
43 
44 class RFC4103Context : public PObject
45 {
46  public:
48  RFC4103Context(const OpalMediaFormat & fmt);
49  void SetMediaFormat(const OpalMediaFormat & fmt);
50  RTP_DataFrameList ConvertToFrames(const PString & contentType, const T140String & body);
51 
53  PMutex m_mutex;
54  WORD m_sequence;
56  PTime m_baseTime;
57 };
58 
59 
60 #endif // OPAL_HAS_RFC4103
61 
62 #endif // OPAL_IM_RFC4103_H
void SetMediaFormat(const OpalMediaFormat &fmt)
Definition: mediafmt.h:724
DWORD m_baseTimeStamp
Definition: rfc4103.h:55
RTP_DataFrameList ConvertToFrames(const PString &contentType, const T140String &body)
OpalMediaFormat m_mediaFormat
Definition: rfc4103.h:52
PMutex m_mutex
Definition: rfc4103.h:53
PTime m_baseTime
Definition: rfc4103.h:56
WORD m_sequence
Definition: rfc4103.h:54
Definition: rfc4103.h:44
Definition: t140.h:51