libpurple/conversation.h

branch
soc.2013.gobjectification
changeset 35047
cf8ca70094ff
parent 35024
eb3afb7643ce
parent 34500
e322f9c8f3e9
child 35393
00f876b129bc
child 37017
8e2b68c79fa1
--- a/libpurple/conversation.h	Thu Oct 24 20:24:29 2013 +0530
+++ b/libpurple/conversation.h	Fri Oct 25 00:31:39 2013 +0530
@@ -64,6 +64,8 @@
 	PURPLE_CONVERSATION_UPDATE_LOGGING, /**< Logging for this conversation was
 	                                         enabled or disabled. */
 	PURPLE_CONVERSATION_UPDATE_TOPIC,   /**< The topic for a chat was updated. */
+	PURPLE_CONVERSATION_UPDATE_E2EE,    /**< The End-to-end encryption state was
+	                                         updated. */
 	/*
 	 * XXX These need to go when we implement a more generic core/UI event
 	 * system.
@@ -155,6 +157,7 @@
 
 #include "account.h"
 #include "buddyicon.h"
+#include "e2ee.h"
 #include "log.h"
 
 /**************************************************************************/
@@ -379,6 +382,26 @@
 const char *purple_conversation_get_name(const PurpleConversation *conv);
 
 /**
+ * Sets current E2EE state for the conversation.
+ *
+ * @param conv  The conversation.
+ * @param state The E2EE state.
+ */
+void
+purple_conversation_set_e2ee_state(PurpleConversation *conv,
+	PurpleE2eeState *state);
+
+/**
+ * Gets current conversation's E2EE state.
+ *
+ * @param conv The conversation.
+ *
+ * @return Current E2EE state for conversation.
+ */
+PurpleE2eeState *
+purple_conversation_get_e2ee_state(PurpleConversation *conv);
+
+/**
  * Enables or disables logging for this conversation.
  *
  * @param conv The conversation.

mercurial