| 23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 24 */ |
24 */ |
| 25 #ifndef _PURPLE_BLISTNODE_TYPES_H_ |
25 #ifndef _PURPLE_BLISTNODE_TYPES_H_ |
| 26 #define _PURPLE_BLISTNODE_TYPES_H_ |
26 #define _PURPLE_BLISTNODE_TYPES_H_ |
| 27 |
27 |
| 28 #include "blistnodes.h" |
28 #include "blistnode.h" |
| 29 |
29 |
| 30 #define PURPLE_TYPE_BUDDY (purple_buddy_get_type()) |
30 #define PURPLE_TYPE_BUDDY (purple_buddy_get_type()) |
| 31 #define PURPLE_BUDDY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_BUDDY, PurpleBuddy)) |
31 #define PURPLE_BUDDY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_BUDDY, PurpleBuddy)) |
| 32 #define PURPLE_BUDDY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_BUDDY, PurpleBuddyClass)) |
32 #define PURPLE_BUDDY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_BUDDY, PurpleBuddyClass)) |
| 33 #define PURPLE_IS_BUDDY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_BUDDY)) |
33 #define PURPLE_IS_BUDDY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_BUDDY)) |
| 76 typedef struct _PurpleChatClass PurpleChatClass; |
76 typedef struct _PurpleChatClass PurpleChatClass; |
| 77 |
77 |
| 78 #include "account.h" |
78 #include "account.h" |
| 79 #include "buddyicon.h" |
79 #include "buddyicon.h" |
| 80 #include "media.h" |
80 #include "media.h" |
| 81 #include "presences.h" |
81 #include "presence.h" |
| 82 #include "status.h" |
82 #include "status.h" |
| 83 |
83 |
| 84 #define PURPLE_BUDDY_IS_ONLINE(b) \ |
84 #define PURPLE_BUDDY_IS_ONLINE(b) \ |
| 85 (PURPLE_IS_BUDDY(b) \ |
85 (PURPLE_IS_BUDDY(b) \ |
| 86 && purple_account_is_connected(purple_buddy_get_account(PURPLE_BUDDY(b))) \ |
86 && purple_account_is_connected(purple_buddy_get_account(PURPLE_BUDDY(b))) \ |