ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
icq_caps.h
Idź do dokumentacji tego pliku.
1 #ifndef __ICQ_CAPS_H
2 #define __ICQ_CAPS_H
3 
4 #include <ekg/dynstuff.h>
5 
6 typedef enum {
7  CAP_HTML = 0,
8  CAP_NEWCAPS, /* Client understands new format of caps */
9  CAP_VOICE, /* Client supports voice chat */
10  CAP_AIMDIRPLAY, /* Client supports direct play service */
11  CAP_SENDFILE, /* Client supports file transfer (can send files) */
12  CAP_ICQDIRECT, /* Something called "route finder" (ICQ2K only) */
13  CAP_IMIMAGE, /* Client supports DirectIM/IMImage */
14  CAP_BUDDYICON, /* Client supports avatar service. */
15  CAP_SAVESTOCKS, /* Client supports stocks (add-ins) */
16  CAP_GETFILE, /* Client supports filetransfers (can receive files) */
17  CAP_SRV_RELAY, /* Client supports channel 2 extended, TLV(0x2711) based messages */
18  CAP_GAMES2, /* Client supports games */
19  CAP_GAMES, /* Client supports games */
20  CAP_CONTACTS, /* Client supports buddy lists transfer */
21  CAP_DEVILS, /* Client supports devils */
22  CAP_INTEROPERATE, /* Setting this lets AIM users receive messages from ICQ users, and ICQ users receive messages from AIM users */
23  CAP_UTF, /* Client supports UTF-8 messages */
25  CAP_TYPING, /* Client supports mini typing notifications */
26  CAP_CHAT, /* Client supports chat service */
27  CAP_RTF, /* Client supports RTF messages */
30 
31 #define CAP_UTF8_str "{0946134E-4C7F-11D1-8222-444553540000}"
32 
33 const char *icq_capability_name(int id);
34 
35 int icq_cap_id(unsigned char *buf);
36 int icq_short_cap_id(unsigned char *buf);
37 
38 const unsigned char *icq_cap_str(int id);
39 
40 void icq_pack_append_cap(string_t pkt, int cap_id);
41 
42 
43 /*
44  * xStatuses
45  *
46  */
47 
48 #define XSTATUS_COUNT 32
49 #define MAX_ICQMOOD 23
50 
51 const char *icq_xstatus_name(int id);
52 
53 int icq_xstatus_id(unsigned char *buf);
54 
55 void icq_pack_append_xstatus(string_t pkt, int x_id);
56 
57 /*
58  * Plugins
59  *
60  */
61 typedef enum {
62  PSIG_MESSAGE=0, // None plugin (zeros)
63  PSIG_STATUS_PLUGIN, // Status manager plugin
64  PSIG_INFO_PLUGIN, // Info manager plugin
65  MGTYPE_MESSAGE, // Message plugin
66  MGTYPE_FILE, // File transfer plugin
67  MGTYPE_WEBURL, // URL plugin
68  MGTYPE_CHAT, // Chat plugin
69  MGTYPE_CONTACTS, // Send contact list plugin
70  MGTYPE_SMS_MESSAGE, // SMS plugin
72  PLUGIN_03, // User info plugin
73  PLUGIN_06, // Phone info plugin
74  PLUGIN_07, // White search plugin
75  PLUGIN_08, // Search plugin
76  PLUGIN_13, // Features list plugin
77  PLUGIN_14, // Ext contacts plugin
78  PLUGIN_15, // Random users service
79  PLUGIN_16, // Random plugin
80  PLUGIN_17, // Wireless pager plugin
81  PLUGIN_18, // External plugin
82  PLUGIN_19, // Add user wizard plugin
83  PLUGIN_20, // Voice message plugin
84  PLUGIN_21, // IRCQ plugin
86 } plugins_t;
87 
88 int icq_plugin_id(unsigned char *buf);
89 
90 #endif