Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 2315:7ec21662ffc2
[gaim-migrate @ 2325]
ha.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 20 Sep 2001 03:16:43 +0000 |
parents | a87ca0aa1840 |
children | c6c5eaf69188 |
comparison
equal
deleted
inserted
replaced
2314:64b4c69c1c5e | 2315:7ec21662ffc2 |
---|---|
41 #include "gaim.h" | 41 #include "gaim.h" |
42 #include "aim.h" | 42 #include "aim.h" |
43 #include "proxy.h" | 43 #include "proxy.h" |
44 | 44 |
45 /*#include "pixmaps/cancel.xpm"*/ | 45 /*#include "pixmaps/cancel.xpm"*/ |
46 #include "pixmaps/ab.xpm" | |
46 #include "pixmaps/admin_icon.xpm" | 47 #include "pixmaps/admin_icon.xpm" |
47 #include "pixmaps/aol_icon.xpm" | 48 #include "pixmaps/aol_icon.xpm" |
48 #include "pixmaps/away_icon.xpm" | 49 #include "pixmaps/away_icon.xpm" |
49 #include "pixmaps/dt_icon.xpm" | 50 #include "pixmaps/dt_icon.xpm" |
50 #include "pixmaps/free_icon.xpm" | 51 #include "pixmaps/free_icon.xpm" |
51 | 52 |
52 /* constants to identify proto_opts */ | 53 /* constants to identify proto_opts */ |
53 #define USEROPT_AUTH 0 | 54 #define USEROPT_AUTH 0 |
54 #define USEROPT_AUTHPORT 1 | 55 #define USEROPT_AUTHPORT 1 |
56 | |
57 #define UC_AB 32 | |
55 | 58 |
56 #define AIMHASHDATA "http://gaim.sourceforge.net/aim_data.php3" | 59 #define AIMHASHDATA "http://gaim.sourceforge.net/aim_data.php3" |
57 | 60 |
58 static int gaim_caps = AIM_CAPS_CHAT | | 61 static int gaim_caps = AIM_CAPS_CHAT | |
59 AIM_CAPS_BUDDYICON | | 62 AIM_CAPS_BUDDYICON | |
1128 va_list ap; | 1131 va_list ap; |
1129 va_start(ap, fr); | 1132 va_start(ap, fr); |
1130 info = va_arg(ap, struct aim_userinfo_s *); | 1133 info = va_arg(ap, struct aim_userinfo_s *); |
1131 va_end(ap); | 1134 va_end(ap); |
1132 | 1135 |
1136 if (info->flags & AIM_FLAG_ACTIVEBUDDY) | |
1137 type |= UC_AB; | |
1133 if (info->flags & AIM_FLAG_UNCONFIRMED) | 1138 if (info->flags & AIM_FLAG_UNCONFIRMED) |
1134 type |= UC_UNCONFIRMED; | 1139 type |= UC_UNCONFIRMED; |
1135 if (info->flags & AIM_FLAG_ADMINISTRATOR) | 1140 if (info->flags & AIM_FLAG_ADMINISTRATOR) |
1136 type |= UC_ADMIN; | 1141 type |= UC_ADMIN; |
1137 if (info->flags & AIM_FLAG_AOL) | 1142 if (info->flags & AIM_FLAG_AOL) |
2372 g_free(buf); | 2377 g_free(buf); |
2373 return 0; | 2378 return 0; |
2374 } | 2379 } |
2375 | 2380 |
2376 static char **oscar_list_icon(int uc) { | 2381 static char **oscar_list_icon(int uc) { |
2382 if (uc & UC_AB) | |
2383 return (char **)ab_xpm; | |
2377 if (uc & UC_UNAVAILABLE) | 2384 if (uc & UC_UNAVAILABLE) |
2378 return (char **)away_icon_xpm; | 2385 return (char **)away_icon_xpm; |
2379 if (uc & UC_AOL) | 2386 if (uc & UC_AOL) |
2380 return (char **)aol_icon_xpm; | 2387 return (char **)aol_icon_xpm; |
2381 if (uc & UC_ADMIN) | 2388 if (uc & UC_ADMIN) |