summaryrefslogtreecommitdiff
path: root/libpurple/conversations.h
diff options
context:
space:
mode:
authorAnkit Vani <a@nevitus.org>2013-06-27 01:24:56 +0530
committerAnkit Vani <a@nevitus.org>2013-06-27 01:24:56 +0530
commitcb938b4fdfe4614e11c7367122dd14b50bb1cbfb (patch)
tree02089effb930c1a7db4cc37235ea8bc1669f9955 /libpurple/conversations.h
parent18704500ee10da2e9b78eb6bd340370965a552ef (diff)
downloadpidgin-cb938b4fdfe4614e11c7367122dd14b50bb1cbfb.tar.gz
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.
Diffstat (limited to 'libpurple/conversations.h')
-rw-r--r--libpurple/conversations.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/libpurple/conversations.h b/libpurple/conversations.h
index c89b74454f..a94d22b31d 100644
--- a/libpurple/conversations.h
+++ b/libpurple/conversations.h
@@ -1,5 +1,5 @@
/**
- * @file conversations.h Conversations API
+ * @file conversations.h IM and Chat Conversations API
* @ingroup core
* @see @ref conversation-signals
*/
@@ -53,26 +53,16 @@ void purple_conversations_add(PurpleConversation *conv);
void purple_conversations_remove(PurpleConversation *conv);
/**
- * Updates the conversation cache to use a new conversation name. This
- * function only updates the conversation cahe. It is the caller's
- * responsibility to actually update the conversation's name.
- *
- * @param conv The conversation.
- * @param name The new name.
- */
-void purple_conversations_update_cache_name(PurpleConversation *conv,
- const char *name);
-
-/**
- * Updates the conversation cache to use a new conversation account. This
- * function only updates the conversation cahe. It is the caller's
- * responsibility to actually update the conversation's account.
+ * Updates the conversation cache to use a new conversation name and/or
+ * account. This function only updates the conversation cache. It is the
+ * caller's responsibility to actually update the conversation.
*
* @param conv The conversation.
- * @param account The new account.
+ * @param name The new name. If no change, use @c NULL.
+ * @param account The new account. If no change, use @c NULL.
*/
-void purple_conversations_update_cache_account(PurpleConversation *conv,
- PurpleAccount *account);
+void purple_conversations_update_cache(PurpleConversation *conv,
+ const char *name, PurpleAccount *account);
/**
* Returns a list of all conversations.