libpurple/conversations.h

Thu, 27 Jun 2013 04:18:40 +0530

author
Ankit Vani <a@nevitus.org>
date
Thu, 27 Jun 2013 04:18:40 +0530
branch
soc.2013.gobjectification
changeset 34655
6a939719ea98
parent 34651
88c104a20f4b
child 34689
a12389a931bd
permissions
-rw-r--r--

Replaced purple_conversations_get() with purple_conversations_get_all(), similar to other purple entities

34595
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
1 /**
34651
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
2 * @file conversations.h IM and Chat Conversations API
34595
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
3 * @ingroup core
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
4 * @see @ref conversation-signals
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
5 */
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
6
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
7 /* purple
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
8 *
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
9 * Purple is the legal property of its developers, whose names are too numerous
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
10 * to list here. Please refer to the COPYRIGHT file distributed with this
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
11 * source distribution.
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
12 *
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
13 * This program is free software; you can redistribute it and/or modify
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
14 * it under the terms of the GNU General Public License as published by
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
15 * the Free Software Foundation; either version 2 of the License, or
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
16 * (at your option) any later version.
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
17 *
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
18 * This program is distributed in the hope that it will be useful,
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
21 * GNU General Public License for more details.
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
22 *
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
23 * You should have received a copy of the GNU General Public License
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
24 * along with this program; if not, write to the Free Software
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
26 */
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
27 #ifndef _PURPLE_CONVERSATIONS_H_
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
28 #define _PURPLE_CONVERSATIONS_H_
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
29
34605
89e6c5346d63 Begun refactoring for PurpleConversation
Ankit Vani <a@nevitus.org>
parents: 34600
diff changeset
30 #include "conversationtypes.h"
89e6c5346d63 Begun refactoring for PurpleConversation
Ankit Vani <a@nevitus.org>
parents: 34600
diff changeset
31 #include "server.h"
34595
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
32
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
33 G_BEGIN_DECLS
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
34
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
35 /**************************************************************************/
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
36 /** @name Conversations Subsystem */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
37 /**************************************************************************/
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
38 /*@{*/
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
39
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
40 /**
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
41 * Adds a conversation to the list of conversations.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
42 *
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
43 * @param conv The conversation.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
44 */
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
45 void purple_conversations_add(PurpleConversation *conv);
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
46
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
47 /**
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
48 * Removes a conversation from the list of conversations.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
49 *
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
50 * @param conv The conversation.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
51 */
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
52 void purple_conversations_remove(PurpleConversation *conv);
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
53
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
54 /**
34651
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
55 * Updates the conversation cache to use a new conversation name and/or
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
56 * account. This function only updates the conversation cache. It is the
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
57 * caller's responsibility to actually update the conversation.
34649
4a0ec0fff2e1 Refactored PurpleConversation base object to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34648
diff changeset
58 *
4a0ec0fff2e1 Refactored PurpleConversation base object to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34648
diff changeset
59 * @param conv The conversation.
34651
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
60 * @param name The new name. If no change, use @c NULL.
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
61 * @param account The new account. If no change, use @c NULL.
34649
4a0ec0fff2e1 Refactored PurpleConversation base object to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34648
diff changeset
62 */
34651
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
63 void purple_conversations_update_cache(PurpleConversation *conv,
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
64 const char *name, PurpleAccount *account);
34649
4a0ec0fff2e1 Refactored PurpleConversation base object to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34648
diff changeset
65
4a0ec0fff2e1 Refactored PurpleConversation base object to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34648
diff changeset
66 /**
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
67 * Returns a list of all conversations.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
68 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
69 * This list includes both IMs and chats.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
70 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
71 * @constreturn A GList of all conversations.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
72 */
34655
6a939719ea98 Replaced purple_conversations_get() with purple_conversations_get_all(), similar to other purple entities
Ankit Vani <a@nevitus.org>
parents: 34651
diff changeset
73 GList *purple_conversations_get_all(void);
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
74
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
75 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
76 * Returns a list of all IMs.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
77 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
78 * @constreturn A GList of all IMs.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
79 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
80 GList *purple_conversations_get_ims(void);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
81
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
82 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
83 * Returns a list of all chats.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
84 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
85 * @constreturn A GList of all chats.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
86 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
87 GList *purple_conversations_get_chats(void);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
88
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
89 /**
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
90 * Finds a conversation of any type with the specified name and Purple account.
34600
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
91 *
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
92 * @param name The name of the conversation.
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
93 * @param account The purple_account associated with the conversation.
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
94 *
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
95 * @return The conversation if found, or @c NULL otherwise.
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
96 */
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
97 PurpleConversation *purple_conversations_find_with_account(const char *name,
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
98 const PurpleAccount *account);
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
99
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
100 /**
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
101 * Finds an IM with the specified name and Purple account.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
102 *
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
103 * @param name The name of the conversation.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
104 * @param account The purple_account associated with the conversation.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
105 *
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
106 * @return The conversation if found, or @c NULL otherwise.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
107 */
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
108 PurpleIMConversation *purple_conversations_find_im_with_account(const char *name,
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
109 const PurpleAccount *account);
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
110
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
111 /**
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
112 * Finds a chat with the specified name and Purple account.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
113 *
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
114 * @param name The name of the conversation.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
115 * @param account The purple_account associated with the conversation.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
116 *
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
117 * @return The conversation if found, or @c NULL otherwise.
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
118 */
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
119 PurpleChatConversation *purple_conversations_find_chat_with_account(const char *name,
34600
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
120 const PurpleAccount *account);
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
121
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
122 /**
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
123 * Finds a chat with the specified chat ID.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
124 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
125 * @param gc The purple_connection.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
126 * @param id The chat ID.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
127 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
128 * @return The chat conversation.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
129 */
34632
ebe6b2a60305 Changed all arguments and return types of Chat and IMs to PurpleChatConversation and PurpleIMConversation.
Ankit Vani <a@nevitus.org>
parents: 34617
diff changeset
130 PurpleChatConversation *purple_conversations_find_chat(const PurpleConnection *gc, int id);
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
131
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
132 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
133 * Sets the default conversation UI operations structure.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
134 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
135 * @param ops The UI conversation operations structure.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
136 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
137 void purple_conversations_set_ui_ops(PurpleConversationUiOps *ops);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
138
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
139 /**
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
140 * Gets the default conversation UI operations structure.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
141 *
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
142 * @return The UI conversation operations structure.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
143 */
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
144 PurpleConversationUiOps *purple_conversations_get_ui_ops(void);
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
145
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
146 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
147 * Returns the conversation subsystem handle.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
148 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
149 * @return The conversation subsystem handle.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
150 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
151 void *purple_conversations_get_handle(void);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
152
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
153 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
154 * Initializes the conversation subsystem.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
155 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
156 void purple_conversations_init(void);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
157
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
158 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
159 * Uninitializes the conversation subsystem.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
160 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
161 void purple_conversations_uninit(void);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
162
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
163 /*@}*/
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
164
34595
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
165 G_END_DECLS
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
166
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
167 #endif /* _PURPLE_CONVERSATIONS_H_ */

mercurial