Show
Ignore:
Timestamp:
06/19/08 08:33:01 (6 months ago)
Author:
eugene
Message:

Revised header inclusion. Cleaned up a little.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/include/licq_packets.h

    r6306 r6347  
    33 
    44#include "licq_user.h" 
    5 #include "licq_buffer.h" 
    6 #include "licq_socket.h" 
    75#include "licq_icq.h" 
    86 
     7class ICQUser; 
    98class CICQColor; 
     9class CBuffer; 
     10class INetSocket; 
    1011 
    1112// values of extra info to identify plugin request 
     
    3233unsigned short LengthField(const char *szField); 
    3334char *PipeInput(char *m_szMessage); 
    34  
    35 // 
    36 // These classes, CPX_*, are general classes for different packets that do the 
    37 // same function that may be sent through the server or directly to the client. 
    38 // This gives the direct and server packets a multiple inheritence. 
    39 // 
    40  
    41 //-----FileTransfer------------------------------------------------------------ 
    42 class CPX_FileTransfer 
    43 { 
    44 public: 
    45   CPX_FileTransfer(ConstFileList &lFileList, const char *szFileName); 
    46   virtual ~CPX_FileTransfer(); 
    47  
    48   bool IsValid()    { return m_bValid; } 
    49   ConstFileList GetFileList()   { return m_lFileList; } 
    50   const char *GetFilename() { return m_szFilename; } 
    51   const char *GetDescription() { return m_szDesc; } 
    52   unsigned long GetFileSize()   { return m_nFileSize; } 
    53  
    54 protected: 
    55   CPX_FileTransfer(); 
    56  
    57   bool          m_bValid; 
    58   char          *m_szDesc; 
    59   char          *m_szFilename; 
    60   ConstFileList m_lFileList; 
    61   unsigned long m_nFileSize; 
    62 }; 
    63  
    64  
    6535 
    6636//=====Packet=================================================================== 
     
    10575   static char s_nMode; 
    10676}; 
     77 
     78// Order of inclusion is significant here! 
     79#include "licq_filetransfer.h" 
     80 
     81// 
     82// These classes, CPX_*, are general classes for different packets that do the 
     83// same function that may be sent through the server or directly to the client. 
     84// This gives the direct and server packets a multiple inheritence. 
     85// 
     86 
     87//-----FileTransfer------------------------------------------------------------ 
     88class CPX_FileTransfer 
     89{ 
     90public: 
     91  CPX_FileTransfer(ConstFileList &lFileList, const char *szFileName); 
     92  virtual ~CPX_FileTransfer(); 
     93 
     94  bool IsValid()    { return m_bValid; } 
     95  ConstFileList GetFileList()   { return m_lFileList; } 
     96  const char *GetFilename() { return m_szFilename; } 
     97  const char *GetDescription() { return m_szDesc; } 
     98  unsigned long GetFileSize()   { return m_nFileSize; } 
     99 
     100protected: 
     101  CPX_FileTransfer(); 
     102 
     103  bool          m_bValid; 
     104  char          *m_szDesc; 
     105  char          *m_szFilename; 
     106  ConstFileList m_lFileList; 
     107  unsigned long m_nFileSize; 
     108}; 
     109 
     110 
    107111 
    108112//=====ServerTCP===============================================================