00001 #ifndef __ICQ_CAPS_H
00002 #define __ICQ_CAPS_H
00003
00004 #include <ekg/dynstuff.h>
00005
00006 typedef enum {
00007 CAP_HTML = 0,
00008 CAP_NEWCAPS,
00009 CAP_VOICE,
00010 CAP_AIMDIRPLAY,
00011 CAP_SENDFILE,
00012 CAP_ICQDIRECT,
00013 CAP_IMIMAGE,
00014 CAP_BUDDYICON,
00015 CAP_SAVESTOCKS,
00016 CAP_GETFILE,
00017 CAP_SRV_RELAY,
00018 CAP_GAMES2,
00019 CAP_GAMES,
00020 CAP_CONTACTS,
00021 CAP_DEVILS,
00022 CAP_INTEROPERATE,
00023 CAP_UTF,
00024 CAP_XTRAZ,
00025 CAP_TYPING,
00026 CAP_CHAT,
00027 CAP_RTF,
00028 CAP_UNKNOWN
00029 } capabilities_t;
00030
00031 #define CAP_UTF8_str "{0946134E-4C7F-11D1-8222-444553540000}"
00032
00033 const char *icq_capability_name(int id);
00034
00035 int icq_cap_id(unsigned char *buf);
00036 int icq_short_cap_id(unsigned char *buf);
00037
00038 const unsigned char *icq_cap_str(int id);
00039
00040 void icq_pack_append_cap(string_t pkt, int cap_id);
00041
00042
00043
00044
00045
00046
00047
00048 #define XSTATUS_COUNT 32
00049 #define MAX_ICQMOOD 23
00050
00051 const char *icq_xstatus_name(int id);
00052
00053 int icq_xstatus_id(unsigned char *buf);
00054
00055 void icq_pack_append_xstatus(string_t pkt, int x_id);
00056
00057
00058
00059
00060
00061 typedef enum {
00062 PSIG_MESSAGE=0,
00063 PSIG_STATUS_PLUGIN,
00064 PSIG_INFO_PLUGIN,
00065 MGTYPE_MESSAGE,
00066 MGTYPE_FILE,
00067 MGTYPE_WEBURL,
00068 MGTYPE_CHAT,
00069 MGTYPE_CONTACTS,
00070 MGTYPE_SMS_MESSAGE,
00071 MGTYPE_GREETING_CARD,
00072 PLUGIN_03,
00073 PLUGIN_06,
00074 PLUGIN_07,
00075 PLUGIN_08,
00076 PLUGIN_13,
00077 PLUGIN_14,
00078 PLUGIN_15,
00079 PLUGIN_16,
00080 PLUGIN_17,
00081 PLUGIN_18,
00082 PLUGIN_19,
00083 PLUGIN_20,
00084 PLUGIN_21,
00085 PLUGIN_UNKNOWN
00086 } plugins_t;
00087
00088 int icq_plugin_id(unsigned char *buf);
00089
00090 #endif