OPAL  Version 3.14.3
t120proto.h
Go to the documentation of this file.
1 /*
2  * t120proto.h
3  *
4  * T.120 protocol handler
5  *
6  * Open Phone Abstraction Library
7  *
8  * Copyright (c) 2001 Equivalence Pty. Ltd.
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 H323 Library.
21  *
22  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
23  *
24  * Contributor(s): ______________________________________.
25  *
26  * $Revision: 29536 $
27  * $Author: rjongbloed $
28  * $Date: 2013-04-19 18:55:15 +1000 (Fri, 19 Apr 2013) $
29  */
30 
31 #ifndef OPAL_T120_T120PROTO_H
32 #define OPAL_T120_T120PROTO_H
33 
34 #ifdef P_USE_PRAGMA
35 #pragma interface
36 #endif
37 
38 #include <opal_config.h>
39 
40 #if OPAL_T120DATA
41 
42 #include <opal/mediafmt.h>
43 
44 
45 class OpalTransport;
46 
47 class X224;
48 class MCS_ConnectMCSPDU;
49 class MCS_DomainMCSPDU;
50 
51 
52 #define OPAL_T120 "T.120"
53 
54 
56 
59 class OpalT120Protocol : public PObject
60 {
61  PCLASSINFO(OpalT120Protocol, PObject);
62  public:
63  enum {
65  };
66 
73 
78  virtual PBoolean Originate(
79  OpalTransport & transport
80  );
81 
84  virtual PBoolean Answer(
85  OpalTransport & transport
86  );
87 
92  virtual PBoolean HandleConnect(
93  const MCS_ConnectMCSPDU & pdu
94  );
95 
100  virtual PBoolean HandleDomain(
101  const MCS_DomainMCSPDU & pdu
102  );
104 };
105 
106 
107 #endif // OPAL_T120DATA
108 
109 #endif // OPAL_T120_T120PROTO_H
110 
111