h323h224.h

Go to the documentation of this file.
00001 /*
00002  * h323h224.h
00003  *
00004  * H.323 H.224 logical channel establishment implementation for the 
00005  * OpenH323 Project.
00006  *
00007  * Copyright (c) 2006 Network for Educational Technology, ETH Zurich.
00008  * Written by Hannes Friederich.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * Contributor(s): ______________________________________.
00021  *
00022  * $Revision: 22655 $
00023  * $Author: rjongbloed $
00024  * $Date: 2009-05-19 07:10:43 +0000 (Tue, 19 May 2009) $
00025  */
00026 
00027 #ifndef OPAL_H224_H323H224_H
00028 #define OPAL_H224_H323H224_H
00029 
00030 #ifdef P_USE_PRAGMA
00031 #pragma interface
00032 #endif
00033 
00034 #ifndef _PTLIB_H
00035 #include <ptlib.h>
00036 #endif
00037 
00038 #include <opal/buildopts.h>
00039 
00040 #if OPAL_HAS_H224
00041 
00042 #include <h323/h323caps.h>
00043 
00044 #include <h224/h224.h>
00045 #include <h224/h224handler.h>
00046 
00049 class H323_H224_AnnexQCapability : public H323DataCapability
00050 {
00051   PCLASSINFO(H323_H224_AnnexQCapability, H323DataCapability);
00052   
00053 public:
00054   
00055   H323_H224_AnnexQCapability();
00056   ~H323_H224_AnnexQCapability();
00057   
00058   Comparison Compare(const PObject & obj) const;
00059         
00060   virtual PObject * Clone() const;
00061         
00062   virtual unsigned GetSubType() const;
00063         
00064   virtual PString GetFormatName() const;
00065   
00066   virtual H323Channel * CreateChannel(H323Connection & connection,
00067                                       H323Channel::Directions direction,
00068                                       unsigned int sessionID,
00069                                       const H245_H2250LogicalChannelParameters * params) const;
00070         
00071   virtual PBoolean OnSendingPDU(H245_DataApplicationCapability & pdu) const;
00072   virtual PBoolean OnSendingPDU(H245_DataMode & pdu) const;
00073   virtual PBoolean OnReceivedPDU(const H245_DataApplicationCapability & pdu);
00074 };
00075 
00078 class H323_H224_HDLCTunnelingCapability : public H323DataCapability
00079 {
00080   PCLASSINFO(H323_H224_HDLCTunnelingCapability, H323DataCapability);
00081         
00082 public:
00083         
00084   H323_H224_HDLCTunnelingCapability();
00085   ~H323_H224_HDLCTunnelingCapability();
00086         
00087   Comparison Compare(const PObject & obj) const;
00088         
00089   virtual PObject * Clone() const;
00090         
00091   virtual unsigned GetSubType() const;
00092         
00093   virtual PString GetFormatName() const;
00094   
00095   virtual H323Channel * CreateChannel(H323Connection & connection,
00096                                       H323Channel::Directions direction,
00097                                       unsigned int sessionID,
00098                                       const H245_H2250LogicalChannelParameters * params) const;
00099         
00100   virtual PBoolean OnSendingPDU(H245_DataApplicationCapability & pdu) const;
00101   virtual PBoolean OnSendingPDU(H245_DataMode & pdu) const;
00102   virtual PBoolean OnReceivedPDU(const H245_DataApplicationCapability & pdu);
00103         
00104 };
00105 
00106 #define OPAL_REGISTER_H224_CAPABILITY() \
00107   H323_REGISTER_CAPABILITY(H323_H224_AnnexQCapability, GetOpalH224_H323AnnexQ().GetName()); \
00108   H323_REGISTER_CAPABILITY(H323_H224_HDLCTunnelingCapability, GetOpalH224_HDLCTunneling().GetName()); \
00109 
00110 
00111 #endif // OPAL_HAS_H224
00112 
00113 #endif // OPAL_H224_H323H224_H

Generated on Mon Feb 1 00:25:43 2010 for OPAL by  doxygen 1.5.1