| 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 | | |
| | 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------------------------------------------------------------ |
| | 88 | class CPX_FileTransfer |
| | 89 | { |
| | 90 | public: |
| | 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 | |
| | 100 | protected: |
| | 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 | |