libpurple/conversationtypes.c

branch
soc.2013.gobjectification.plugins
changeset 37070
774b0a0593f0
parent 37016
48f85579cc4c
parent 35460
96946e21fce5
child 37101
8ba9a23354ff
equal deleted inserted replaced
37069:22bf5ea00006 37070:774b0a0593f0
29 #define SEND_TYPED_TIMEOUT_SECONDS 5 29 #define SEND_TYPED_TIMEOUT_SECONDS 5
30 30
31 #define PURPLE_CHAT_CONVERSATION_GET_PRIVATE(obj) \ 31 #define PURPLE_CHAT_CONVERSATION_GET_PRIVATE(obj) \
32 (G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_CHAT_CONVERSATION, PurpleChatConversationPrivate)) 32 (G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_CHAT_CONVERSATION, PurpleChatConversationPrivate))
33 33
34 /** @copydoc _PurpleChatConversationPrivate */
35 typedef struct _PurpleChatConversationPrivate PurpleChatConversationPrivate; 34 typedef struct _PurpleChatConversationPrivate PurpleChatConversationPrivate;
36 35
37 #define PURPLE_IM_CONVERSATION_GET_PRIVATE(obj) \ 36 #define PURPLE_IM_CONVERSATION_GET_PRIVATE(obj) \
38 (G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_IM_CONVERSATION, PurpleIMConversationPrivate)) 37 (G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_IM_CONVERSATION, PurpleIMConversationPrivate))
39 38
40 /** @copydoc _PurpleIMConversationPrivate */
41 typedef struct _PurpleIMConversationPrivate PurpleIMConversationPrivate; 39 typedef struct _PurpleIMConversationPrivate PurpleIMConversationPrivate;
42 40
43 #define PURPLE_CHAT_USER_GET_PRIVATE(obj) \ 41 #define PURPLE_CHAT_USER_GET_PRIVATE(obj) \
44 (G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_CHAT_USER, PurpleChatUserPrivate)) 42 (G_TYPE_INSTANCE_GET_PRIVATE((obj), PURPLE_TYPE_CHAT_USER, PurpleChatUserPrivate))
45 43
46 /** @copydoc _PurpleChatUserPrivate */
47 typedef struct _PurpleChatUserPrivate PurpleChatUserPrivate; 44 typedef struct _PurpleChatUserPrivate PurpleChatUserPrivate;
48 45
49 /** 46 /*
50 * Data specific to Chats. 47 * Data specific to Chats.
51 */ 48 */
52 struct _PurpleChatConversationPrivate 49 struct _PurpleChatConversationPrivate
53 { 50 {
54 GList *in_room; /**< The users in the room. 51 GList *in_room; /* The users in the room.
55 @deprecated Will be removed in 3.0.0 TODO */ 52 Deprecated: Will be removed in 3.0.0 TODO */
56 GList *ignored; /**< Ignored users. */ 53 GList *ignored; /* Ignored users. */
57 char *who; /**< The person who set the topic. */ 54 char *who; /* The person who set the topic. */
58 char *topic; /**< The topic. */ 55 char *topic; /* The topic. */
59 int id; /**< The chat ID. */ 56 int id; /* The chat ID. */
60 char *nick; /**< Your nick in this chat. */ 57 char *nick; /* Your nick in this chat. */
61 gboolean left; /**< We left the chat and kept the window open */ 58 gboolean left; /* We left the chat and kept the window open */
62 GHashTable *users; /**< Hash table of the users in the room. */ 59 GHashTable *users; /* Hash table of the users in the room. */
63 }; 60 };
64 61
65 /* Chat Property enums */ 62 /* Chat Property enums */
66 enum { 63 enum {
67 CHAT_PROP_0, 64 CHAT_PROP_0,
71 CHAT_PROP_NICK, 68 CHAT_PROP_NICK,
72 CHAT_PROP_LEFT, 69 CHAT_PROP_LEFT,
73 CHAT_PROP_LAST 70 CHAT_PROP_LAST
74 }; 71 };
75 72
76 /** 73 /*
77 * Data specific to Instant Messages. 74 * Data specific to Instant Messages.
78 */ 75 */
79 struct _PurpleIMConversationPrivate 76 struct _PurpleIMConversationPrivate
80 { 77 {
81 PurpleIMTypingState typing_state; /**< The current typing state. */ 78 PurpleIMTypingState typing_state; /* The current typing state. */
82 guint typing_timeout; /**< The typing timer handle. */ 79 guint typing_timeout; /* The typing timer handle. */
83 time_t type_again; /**< The type again time. */ 80 time_t type_again; /* The type again time. */
84 guint send_typed_timeout; /**< The type again timer handle. */ 81 guint send_typed_timeout; /* The type again timer handle. */
85 PurpleBuddyIcon *icon; /**< The buddy icon. */ 82 PurpleBuddyIcon *icon; /* The buddy icon. */
86 }; 83 };
87 84
88 /* IM Property enums */ 85 /* IM Property enums */
89 enum { 86 enum {
90 IM_PROP_0, 87 IM_PROP_0,
91 IM_PROP_TYPING_STATE, 88 IM_PROP_TYPING_STATE,
92 IM_PROP_ICON, 89 IM_PROP_ICON,
93 IM_PROP_LAST 90 IM_PROP_LAST
94 }; 91 };
95 92
96 /** 93 /*
97 * Data for "Chat Buddies" 94 * Data for "Chat Buddies"
98 */ 95 */
99 struct _PurpleChatUserPrivate 96 struct _PurpleChatUserPrivate
100 { 97 {
101 PurpleChatConversation *chat; /**< The chat */ 98 PurpleChatConversation *chat; /* The chat */
102 char *name; /**< The chat participant's name in the 99 char *name; /* The chat participant's name in the
103 chat. */ 100 chat. */
104 char *alias; /**< The chat participant's alias, if known; 101 char *alias; /* The chat participant's alias, if known;
105 @a NULL otherwise. */ 102 NULL otherwise. */
106 char *alias_key; /**< A string by which this user will be 103 char *alias_key; /* A string by which this user will be
107 sorted, or @c NULL if the user should be 104 sorted, or @c NULL if the user should be
108 sorted by its @c name. 105 sorted by its @name.
109 (This is currently always @c NULL. */ 106 (This is currently always NULL. */
110 gboolean buddy; /**< @a TRUE if this chat participant is on 107 gboolean buddy; /* TRUE if this chat participant is on
111 the buddy list; @a FALSE otherwise. */ 108 the buddy list; FALSE otherwise. */
112 PurpleChatUserFlags flags; /**< A bitwise OR of flags for this 109 PurpleChatUserFlags flags; /* A bitwise OR of flags for this
113 participant, such as whether they 110 participant, such as whether they
114 are a channel operator. */ 111 are a channel operator. */
115 }; 112 };
116 113
117 /* Chat User Property enums */ 114 /* Chat User Property enums */
118 enum { 115 enum {
119 CU_PROP_0, 116 CU_PROP_0,

mercurial