Mercurial > pidgin
comparison src/blist.h @ 11910:700ec4523c04
[gaim-migrate @ 14201]
begone, buddy->present!
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 30 Oct 2005 23:33:36 +0000 |
parents | 16796e09b9c1 |
children | 73777ad45562 |
comparison
equal
deleted
inserted
replaced
11909:1b029c5898af | 11910:700ec4523c04 |
---|---|
55 | 55 |
56 #define GAIM_BLIST_NODE_IS_CHAT(n) ((n)->type == GAIM_BLIST_CHAT_NODE) | 56 #define GAIM_BLIST_NODE_IS_CHAT(n) ((n)->type == GAIM_BLIST_CHAT_NODE) |
57 #define GAIM_BLIST_NODE_IS_BUDDY(n) ((n)->type == GAIM_BLIST_BUDDY_NODE) | 57 #define GAIM_BLIST_NODE_IS_BUDDY(n) ((n)->type == GAIM_BLIST_BUDDY_NODE) |
58 #define GAIM_BLIST_NODE_IS_CONTACT(n) ((n)->type == GAIM_BLIST_CONTACT_NODE) | 58 #define GAIM_BLIST_NODE_IS_CONTACT(n) ((n)->type == GAIM_BLIST_CONTACT_NODE) |
59 #define GAIM_BLIST_NODE_IS_GROUP(n) ((n)->type == GAIM_BLIST_GROUP_NODE) | 59 #define GAIM_BLIST_NODE_IS_GROUP(n) ((n)->type == GAIM_BLIST_GROUP_NODE) |
60 | |
61 typedef enum | |
62 { | |
63 GAIM_BUDDY_SIGNING_OFF = -1, | |
64 GAIM_BUDDY_OFFLINE = 0, | |
65 GAIM_BUDDY_ONLINE, | |
66 GAIM_BUDDY_SIGNING_ON | |
67 | |
68 } GaimBuddyPresenceState; | |
69 | 60 |
70 #define GAIM_BUDDY_IS_ONLINE(b) \ | 61 #define GAIM_BUDDY_IS_ONLINE(b) \ |
71 ((b) != NULL && gaim_account_is_connected((b)->account) && \ | 62 ((b) != NULL && gaim_account_is_connected((b)->account) && \ |
72 gaim_presence_is_online(gaim_buddy_get_presence(b))) | 63 gaim_presence_is_online(gaim_buddy_get_presence(b))) |
73 | 64 |
109 struct _GaimBuddy { | 100 struct _GaimBuddy { |
110 GaimBlistNode node; /**< The node that this buddy inherits from */ | 101 GaimBlistNode node; /**< The node that this buddy inherits from */ |
111 char *name; /**< The screenname of the buddy. */ | 102 char *name; /**< The screenname of the buddy. */ |
112 char *alias; /**< The user-set alias of the buddy */ | 103 char *alias; /**< The user-set alias of the buddy */ |
113 char *server_alias; /**< The server-specified alias of the buddy. (i.e. MSN "Friendly Names") */ | 104 char *server_alias; /**< The server-specified alias of the buddy. (i.e. MSN "Friendly Names") */ |
114 GaimBuddyPresenceState present; /**< This is 0 if the buddy appears offline, 1 if he appears online, and 2 if | |
115 he has recently signed on */ | |
116 void *proto_data; /**< This allows the prpl to associate whatever data it wants with a buddy */ | 105 void *proto_data; /**< This allows the prpl to associate whatever data it wants with a buddy */ |
117 GaimBuddyIcon *icon; /**< The buddy icon. */ | 106 GaimBuddyIcon *icon; /**< The buddy icon. */ |
118 GaimAccount *account; /**< the account this buddy belongs to */ | 107 GaimAccount *account; /**< the account this buddy belongs to */ |
119 guint timer; /**< The timer handle. */ | |
120 GaimPresence *presence; | 108 GaimPresence *presence; |
121 }; | 109 }; |
122 | 110 |
123 /** | 111 /** |
124 * A contact. This contains everything Gaim will ever need to know about a contact. | 112 * A contact. This contains everything Gaim will ever need to know about a contact. |