Changeset 6347
- Timestamp:
- 06/19/08 08:33:01 (4 months ago)
- Location:
- trunk/licq
- Files:
-
- 23 modified
-
include/licq_buffer.h (modified) (1 diff)
-
include/licq_chat.h (modified) (1 diff)
-
include/licq_events.h (modified) (1 diff)
-
include/licq_filetransfer.h (modified) (2 diffs)
-
include/licq_icqd.h (modified) (2 diffs)
-
include/licq_log.h (modified) (1 diff)
-
include/licq_message.h (modified) (1 diff)
-
include/licq_onevent.h (modified) (1 diff)
-
include/licq_packets.h (modified) (3 diffs)
-
include/licq_plugin.h (modified) (1 diff)
-
include/licq_plugind.h (modified) (1 diff)
-
include/licq_protoplugind.h (modified) (1 diff)
-
include/licq_proxy.h (modified) (1 diff)
-
include/licq_sar.h (modified) (1 diff)
-
include/licq_socket.h (modified) (2 diffs)
-
include/licq_user.h (modified) (3 diffs)
-
include/licq_utility.h (modified) (1 diff)
-
src/icqd-filetransfer.cpp (modified) (1 diff)
-
src/icqd-srv.cpp (modified) (1 diff)
-
src/icqd.cpp (modified) (1 diff)
-
src/icqpacket.cpp (modified) (1 diff)
-
src/protoplugind.cpp (modified) (1 diff)
-
src/socket.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/include/licq_buffer.h
r6181 r6347 4 4 #include <cstring> 5 5 #include <map> 6 #include <vector>7 6 8 7 #include <boost/shared_array.hpp> -
trunk/licq/include/licq_chat.h
r4950 r6347 3 3 4 4 #include <deque> 5 #include <list> 5 6 6 7 #include "licq_packets.h" 8 #include "licq_socket.h" 7 9 class CICQDaemon; 8 10 -
trunk/licq/include/licq_events.h
r6282 r6347 2 2 #define ICQEVENT_H 3 3 4 #include "pthread_rdwr.h"5 #include "licq_constants.h" 4 #include <pthread.h> 5 6 6 #include "licq_message.h" 7 8 #include <stdlib.h>9 10 7 11 8 class CPacket; -
trunk/licq/include/licq_filetransfer.h
r4950 r6347 55 55 *-------------------------------------------------------------------------*/ 56 56 57 #include <sys/time.h> 58 #include <cstring> 57 #include <list> 58 59 // Order of declaration is significant here! 60 typedef std::list<char *> FileList; 61 typedef std::list<const char *> ConstFileList; 59 62 60 63 #include "licq_packets.h" 64 #include "licq_socket.h" 61 65 class CICQDaemon; 62 66 … … 191 195 192 196 typedef std::list<CFileTransferEvent *> FileTransferEventList; 193 typedef std::list<const char *> ConstFileList;194 typedef std::list<char *> FileList;195 197 typedef std::list<class CFileTransferManager *> FileTransferManagerList; 196 197 198 198 199 class CFileTransferManager -
trunk/licq/include/licq_icqd.h
r6335 r6347 7 7 #define ICQD_H 8 8 9 #include <sys/select.h>10 #include <sys/time.h>11 #include <sys/types.h>12 #include <unistd.h>13 14 9 #include <vector> 15 10 #include <list> 16 11 #include <map> 17 12 #include <string> 18 #include <algorithm>19 #include <cstdarg>20 #include <cstdio>21 13 22 14 #include "licq_events.h" 23 15 #include "licq_filetransfer.h" 24 16 #include "licq_onevent.h" 25 #include "licq_user.h"26 17 #include "licq_plugind.h" 27 #include "licq_color.h"28 18 #include "licq_protoplugind.h" 29 30 19 31 20 class CProtoPlugin; … … 37 26 class ICQUser; 38 27 class CICQEventTag; 28 class CICQColor; 39 29 class TCPSocket; 40 30 class SrvSocket; -
trunk/licq/include/licq_log.h
r4714 r6347 2 2 #define LOG_H 3 3 4 #include <stdarg.h> 4 #include <cstdarg> 5 #include <cstdio> 5 6 #include <vector> 6 #include <stdio.h>7 7 #include <list> 8 8 #include <pthread.h> -
trunk/licq/include/licq_message.h
r6180 r6347 2 2 #define MESSAGE_H 3 3 4 #include <cstdlib>5 #include <cstdio>6 4 #include <ctime> 7 5 #include <list> 8 6 9 #include "licq_buffer.h"10 7 #include "licq_constants.h" 11 8 #include "licq_color.h" -
trunk/licq/include/licq_onevent.h
r4526 r6347 3 3 4 4 #include <pthread.h> 5 //#include "pthread_rdwr.h"6 5 7 6 class ICQUser; -
trunk/licq/include/licq_packets.h
r6306 r6347 3 3 4 4 #include "licq_user.h" 5 #include "licq_buffer.h"6 #include "licq_socket.h"7 5 #include "licq_icq.h" 8 6 7 class ICQUser; 9 8 class CICQColor; 9 class CBuffer; 10 class INetSocket; 10 11 11 12 // values of extra info to identify plugin request … … 32 33 unsigned short LengthField(const char *szField); 33 34 char *PipeInput(char *m_szMessage); 34 35 //36 // These classes, CPX_*, are general classes for different packets that do the37 // 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_FileTransfer43 {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 65 35 66 36 //=====Packet=================================================================== … … 105 75 static char s_nMode; 106 76 }; 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 107 111 108 112 //=====ServerTCP=============================================================== -
trunk/licq/include/licq_plugin.h
r4955 r6347 13 13 #include <pthread.h> 14 14 #include <list> 15 #include <cstdlib>16 15 17 16 #ifdef __cplusplus -
trunk/licq/include/licq_plugind.h
r4904 r6347 3 3 4 4 #include <pthread.h> 5 #include <cstdlib>6 5 #include <list> 7 6 -
trunk/licq/include/licq_protoplugind.h
r4904 r6347 5 5 6 6 #include <pthread.h> 7 #include <cstdlib>8 7 #include <list> 9 8 -
trunk/licq/include/licq_proxy.h
r6181 r6347 6 6 #endif 7 7 8 #include <sys/types.h>9 #include <sys/socket.h>10 8 #include <netinet/in.h> 11 #include <unistd.h>12 #include <strings.h>13 14 #include "licq_constants.h"15 9 16 10 // proxy types -
trunk/licq/include/licq_sar.h
r4526 r6347 2 2 #define SAR_H 3 3 4 #include <stdio.h>5 4 #include <vector> 6 5 #include <pthread.h> -
trunk/licq/include/licq_socket.h
r6181 r6347 6 6 #endif 7 7 8 #include <sys/types.h>9 #include <sys/socket.h>10 #include <netinet/in.h>11 8 #include <arpa/inet.h> 12 #include <unistd.h>13 #include <strings.h>14 9 #include <vector> 15 10 #include <list> … … 17 12 #include "pthread_rdwr.h" 18 13 19 #include "licq_proxy.h"20 14 #include "licq_buffer.h" 21 15 #include "licq_constants.h" 16 17 class ProxyServer; 22 18 23 19 char *inet_ntoa_r(struct in_addr in, char *buf); -
trunk/licq/include/licq_user.h
r6338 r6347 2 2 #define USER_H 3 3 4 #include <cstdlib>5 #include <cstring>6 #include <ctime>7 4 #include <list> 8 5 #include <map> … … 11 8 #include <vector> 12 9 13 14 10 #include "pthread_rdwr.h" 15 11 16 #include "licq_ message.h"12 #include "licq_buffer.h" 17 13 #include "licq_history.h" 18 14 #include "licq_file.h" … … 231 227 } 232 228 233 class ICQ user;229 class ICQUser; 234 230 class ICQOwner; 235 231 class LicqGroup; -
trunk/licq/include/licq_utility.h
r4714 r6347 2 2 #define UTILITY_H 3 3 4 #include <stdlib.h> 5 #include <stdio.h> 6 #include <string.h> 4 #include <cstdio> 7 5 #include <vector> 8 6 -
trunk/licq/src/icqd-filetransfer.cpp
r6271 r6347 18 18 #include <fcntl.h> 19 19 #include <string.h> 20 #include <sys/time.h> 20 21 21 22 // Localization -
trunk/licq/src/icqd-srv.cpp
r6337 r6347 42 42 #include "licq_countrycodes.h" 43 43 #include "licq_protoplugind.h" 44 #include "licq_proxy.h" 44 45 45 46 using namespace std; -
trunk/licq/src/icqd.cpp
r6325 r6347 41 41 #include "licq_packets.h" 42 42 #include "licq_plugind.h" 43 #include "licq_proxy.h" 43 44 #include "licq_gpg.h" // ## 44 45 #include "licq.h" -
trunk/licq/src/icqpacket.cpp
r6314 r6347 34 34 35 35 #include "licq_packets.h" 36 #include "licq_socket.h" 36 37 #include "licq_icq.h" 37 38 #include "licq_translate.h" -
trunk/licq/src/protoplugind.cpp
r4951 r6347 11 11 12 12 #include <unistd.h> 13 #include <cstdlib> 13 14 #include <cstring> 14 15 -
trunk/licq/src/socket.cpp
r6181 r6347 42 42 #include "support.h" 43 43 #include "licq_icqd.h" 44 #include "licq_proxy.h" 44 45 45 46 #ifdef USE_OPENSSL
