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_PROTOCOLSTATSFRAME_H 00021 #define _C_PROTOCOLSTATSFRAME_H 00022 00023 #include "ProtocolStats.hpp" 00024 #include "C_ProtocolFrame.hpp" 00025 #include "C_DisplayObject.hpp" 00026 00027 class C_ProtocolStatsFrame { 00028 00029 public: 00030 00031 00032 C_ProtocolStatsFrame (C_ProtocolFrame *P_protocol, 00033 C_DisplayObject *P_display) { 00034 m_protocol = P_protocol ; 00035 m_display = P_display ; } 00036 virtual ~C_ProtocolStatsFrame() { 00037 m_protocol = NULL; 00038 m_display= NULL ; } 00039 00040 C_ProtocolFrame* get_protocol() { return(m_protocol); } 00041 C_DisplayObject* get_display() { return (m_display); } 00042 00043 virtual void updateStats (T_ProtocolStatDataType P_type, 00044 T_ProtocolStatDataAction P_action, 00045 int P_id) = 0 ; 00046 00047 00048 virtual void set_file_name (char * P_name) = 0 ; 00049 virtual int init() = 0 ; 00050 00051 virtual void make_first_log () = 0 ; 00052 virtual void make_log () = 0 ; 00053 virtual void do_log () = 0 ; 00054 virtual void reset_cumul_counters () = 0 ; 00055 00056 00057 protected: 00058 C_ProtocolFrame *m_protocol ; 00059 C_DisplayObject *m_display ; 00060 00061 } ; 00062 00063 #endif // _C_PROTOCOLSTATSFRAME_H 00064 00065 00066 00067