00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 2 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * This program is distributed in the hope that it will be useful, 00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 * GNU General Public License for more details. 00011 * 00012 * You should have received a copy of the GNU General Public License 00013 * along with this program; if not, write to the Free Software 00014 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00015 * 00016 * (c)Copyright 2006 Hewlett-Packard Development Company, LP. 00017 * 00018 */ 00019 00020 #ifndef _C_TRANSPORT_EVENT_ 00021 #define _C_TRANSPORT_EVENT_ 00022 00023 //#include <malloc.h> 00024 00025 class C_TransportEvent { 00026 00027 public: 00028 00029 typedef enum _trans_event_type { 00030 E_TRANS_NO_EVENT = 0, 00031 E_TRANS_RECEIVED, 00032 E_TRANS_CLOSED, 00033 E_TRANS_CONNECTION, 00034 E_TRANS_OPEN, 00035 E_TRANS_OPEN_FAILED 00036 } T_TransportEvent_type ; 00037 00038 T_TransportEvent_type m_type ; 00039 int m_channel_id ; 00040 int m_id ; 00041 00042 void no_event() { m_type=E_TRANS_NO_EVENT; 00043 m_channel_id = -1; 00044 m_id = -1; } ; 00045 00046 C_TransportEvent () { no_event(); } ; 00047 ~C_TransportEvent () {} ; 00048 00049 } ; 00050 00051 typedef C_TransportEvent *T_pC_TransportEvent ; 00052 00053 #endif // _C_TRANSPORT_EVENT_