Line | |
---|
1 | #ifndef __OSCAR_ICQ_H__ |
---|
2 | #define __OSCAR_ICQ_H__ |
---|
3 | |
---|
4 | #define AIM_CB_FAM_ICQ 0x0015 |
---|
5 | |
---|
6 | /* |
---|
7 | * SNAC Family: ICQ |
---|
8 | * |
---|
9 | * Most of these are actually special. |
---|
10 | */ |
---|
11 | #define AIM_CB_ICQ_ERROR 0x0001 |
---|
12 | #define AIM_CB_ICQ_OFFLINEMSG 0x00f0 |
---|
13 | #define AIM_CB_ICQ_OFFLINEMSGCOMPLETE 0x00f1 |
---|
14 | #define AIM_CB_ICQ_SIMPLEINFO 0x00f2 |
---|
15 | #define AIM_CB_ICQ_INFO 0x00f2 /* just transitional */ |
---|
16 | #define AIM_CB_ICQ_DEFAULT 0xffff |
---|
17 | |
---|
18 | struct aim_icq_offlinemsg { |
---|
19 | guint32 sender; |
---|
20 | guint16 year; |
---|
21 | guint8 month, day, hour, minute; |
---|
22 | guint16 type; |
---|
23 | char *msg; |
---|
24 | }; |
---|
25 | |
---|
26 | struct aim_icq_simpleinfo { |
---|
27 | guint32 uin; |
---|
28 | char *nick; |
---|
29 | char *first; |
---|
30 | char *last; |
---|
31 | char *email; |
---|
32 | }; |
---|
33 | |
---|
34 | struct aim_icq_info { |
---|
35 | gushort reqid; |
---|
36 | |
---|
37 | /* simple */ |
---|
38 | guint32 uin; |
---|
39 | |
---|
40 | /* general and "home" information (0x00c8) */ |
---|
41 | char *nick; |
---|
42 | char *first; |
---|
43 | char *last; |
---|
44 | char *email; |
---|
45 | char *homecity; |
---|
46 | char *homestate; |
---|
47 | char *homephone; |
---|
48 | char *homefax; |
---|
49 | char *homeaddr; |
---|
50 | char *mobile; |
---|
51 | char *homezip; |
---|
52 | gushort homecountry; |
---|
53 | /* guchar timezone; |
---|
54 | guchar hideemail; */ |
---|
55 | |
---|
56 | /* personal (0x00dc) */ |
---|
57 | guchar age; |
---|
58 | guchar unknown; |
---|
59 | guchar gender; |
---|
60 | char *personalwebpage; |
---|
61 | gushort birthyear; |
---|
62 | guchar birthmonth; |
---|
63 | guchar birthday; |
---|
64 | guchar language1; |
---|
65 | guchar language2; |
---|
66 | guchar language3; |
---|
67 | |
---|
68 | /* work (0x00d2) */ |
---|
69 | char *workcity; |
---|
70 | char *workstate; |
---|
71 | char *workphone; |
---|
72 | char *workfax; |
---|
73 | char *workaddr; |
---|
74 | char *workzip; |
---|
75 | gushort workcountry; |
---|
76 | char *workcompany; |
---|
77 | char *workdivision; |
---|
78 | char *workposition; |
---|
79 | char *workwebpage; |
---|
80 | |
---|
81 | /* additional personal information (0x00e6) */ |
---|
82 | char *info; |
---|
83 | |
---|
84 | /* email (0x00eb) */ |
---|
85 | gushort numaddresses; |
---|
86 | char **email2; |
---|
87 | |
---|
88 | /* we keep track of these in a linked list because we're 1337 */ |
---|
89 | struct aim_icq_info *next; |
---|
90 | }; |
---|
91 | |
---|
92 | |
---|
93 | int aim_icq_reqofflinemsgs(aim_session_t *sess); |
---|
94 | int aim_icq_ackofflinemsgs(aim_session_t *sess); |
---|
95 | int aim_icq_getallinfo(aim_session_t *sess, const char *uin); |
---|
96 | int aim_icq_getsimpleinfo(aim_session_t *sess, const char *uin); |
---|
97 | |
---|
98 | #endif /* __OSCAR_ICQ_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.