libpurple/conversations.h

Thu, 27 Jun 2013 01:24:56 +0530

author
Ankit Vani <a@nevitus.org>
date
Thu, 27 Jun 2013 01:24:56 +0530
branch
soc.2013.gobjectification
changeset 34651
88c104a20f4b
parent 34649
4a0ec0fff2e1
child 34655
6a939719ea98
permissions
-rw-r--r--

Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
* Removed the virtual function send_message of PurpleConversation as it did the same thing in both IMs and chats
* Renamed purple_conversation_send_message back to purple_conversation_send_with_flags
* Changed the argument of chat_update_user of PurpleConversationUiOps to PurpleChatConversationBuddy *
* purple_conversations_update_cache() updates the conversations cache with a new account and/or name
* Renamed purple_chat_conversation_find_user to a more appropriate purple_chat_conversation_has_user as it returns boolean
* Removed purple_chat_conversation_[set,get]_user_flags and added buddy methods purple_chat_conversation_buddy_[set,get]_flags
* Added purple_chat_conversation_buddy_[set,get]_chat methods to set and get the chat that the chat buddy is a part of
* Added PurpleChatConversation * argument to purple_chat_conversation_buddy_new.

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
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
30 #include "conversation.h"
34605
89e6c5346d63 Begun refactoring for PurpleConversation
Ankit Vani <a@nevitus.org>
parents: 34600
diff changeset
31 #include "conversationtypes.h"
89e6c5346d63 Begun refactoring for PurpleConversation
Ankit Vani <a@nevitus.org>
parents: 34600
diff changeset
32 #include "server.h"
34595
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
33
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
34 G_BEGIN_DECLS
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
35
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
36 /**************************************************************************/
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
37 /** @name Conversations Subsystem */
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 /*@{*/
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
40
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
41 /**
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
42 * 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
43 *
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
44 * @param conv The conversation.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
45 */
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
46 void purple_conversations_add(PurpleConversation *conv);
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
47
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
48 /**
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
49 * 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
50 *
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
51 * @param conv The conversation.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
52 */
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
53 void purple_conversations_remove(PurpleConversation *conv);
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
54
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
55 /**
34651
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
56 * 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
57 * 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
58 * 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
59 *
4a0ec0fff2e1 Refactored PurpleConversation base object to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34648
diff changeset
60 * @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
61 * @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
62 * @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
63 */
34651
88c104a20f4b Refactored the PurpleConversation subclasses and subsystem to use the GObject conversation API.
Ankit Vani <a@nevitus.org>
parents: 34649
diff changeset
64 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
65 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
66
4a0ec0fff2e1 Refactored PurpleConversation base object to use the GObject conversation API
Ankit Vani <a@nevitus.org>
parents: 34648
diff changeset
67 /**
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
68 * Returns a list of all conversations.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
69 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
70 * This list includes both IMs and chats.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
71 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
72 * @constreturn A GList of all conversations.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
73 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
74 GList *purple_conversations_get(void);
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 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
77 * Returns a list of all IMs.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
78 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
79 * @constreturn A GList of all IMs.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
80 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
81 GList *purple_conversations_get_ims(void);
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 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
84 * Returns a list of all chats.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
85 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
86 * @constreturn A GList of all chats.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
87 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
88 GList *purple_conversations_get_chats(void);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
89
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
90 /**
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
91 * 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
92 *
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
93 * @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
94 * @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
95 *
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
96 * @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
97 */
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
98 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
99 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
100
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
101 /**
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
102 * 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
103 *
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 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
105 * @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
106 *
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
107 * @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
108 */
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
109 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
110 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
111
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
112 /**
34617
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
113 * 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
114 *
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 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
116 * @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
117 *
89233fea4432 Added functions to find IM and Chat by account in the conversations API.
Ankit Vani <a@nevitus.org>
parents: 34605
diff changeset
118 * @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
119 */
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
120 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
121 const PurpleAccount *account);
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
122
3180ebbd06be Added GObject structures, moved things around, renamed functions as GObject methods.
Ankit Vani <a@nevitus.org>
parents: 34599
diff changeset
123 /**
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
124 * Finds a chat with the specified chat ID.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
125 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
126 * @param gc The purple_connection.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
127 * @param id The chat ID.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
128 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
129 * @return The chat conversation.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
130 */
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
131 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
132
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
133 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
134 * Sets the default conversation UI operations structure.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
135 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
136 * @param ops The UI conversation operations structure.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
137 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
138 void purple_conversations_set_ui_ops(PurpleConversationUiOps *ops);
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
139
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
140 /**
34646
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
141 * Gets the default conversation UI operations structure.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
142 *
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
143 * @return The UI conversation operations structure.
e7f4631e93f7 Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents: 34632
diff changeset
144 */
34648
a6587d8cf907 Added missing API implementations to PurpleConversation and subclasses
Ankit Vani <a@nevitus.org>
parents: 34646
diff changeset
145 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
146
34599
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
147 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
148 * Returns the conversation subsystem handle.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
149 *
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
150 * @return The conversation subsystem handle.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
151 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
152 void *purple_conversations_get_handle(void);
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 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
155 * Initializes the conversation subsystem.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
156 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
157 void purple_conversations_init(void);
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 /**
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
160 * Uninitializes the conversation subsystem.
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
161 */
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
162 void purple_conversations_uninit(void);
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 /*@}*/
0b1b22f5e2ec Begun GObjectification of PurpleConversation.
Ankit Vani <a@nevitus.org>
parents: 34595
diff changeset
165
34595
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
166 G_END_DECLS
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
167
9734ddc618a7 Prepared files for GObjectification of PurpleConversation
Ankit Vani <a@nevitus.org>
parents:
diff changeset
168 #endif /* _PURPLE_CONVERSATIONS_H_ */

mercurial