libpurple/purpleaccount.h

changeset 43037
bdea968e70fe
parent 43016
158d07e5cd54
child 43055
917386321169
--- a/libpurple/purpleaccount.h	Fri Nov 01 00:37:27 2024 -0500
+++ b/libpurple/purpleaccount.h	Fri Nov 01 00:41:43 2024 -0500
@@ -56,6 +56,20 @@
 G_DECLARE_FINAL_TYPE(PurpleAccount, purple_account, PURPLE, ACCOUNT, GObject)
 
 /**
+ * purple_account_connected:
+ * @account: The instance.
+ *
+ * Sets the connection state of @account to connected.
+ *
+ * > Note: This is intended to be called by protocol plugins when they have
+ * completed their initial connection and are ready for normal user actions.
+ *
+ * Since: 3.0
+ */
+PURPLE_AVAILABLE_IN_3_0
+void purple_account_connected(PurpleAccount *account);
+
+/**
  * purple_account_new:
  * @username: The username.
  * @protocol_id: The protocol ID.
@@ -108,6 +122,19 @@
 void purple_account_set_username(PurpleAccount *account, const char *username);
 
 /**
+ * purple_account_get_connection_state:
+ * @account: The instance.
+ *
+ * Gets the [enum@ConnectionState] of @account.
+ *
+ * Returns: The connection state.
+ *
+ * Since: 3.0
+ */
+PURPLE_AVAILABLE_IN_3_0
+PurpleConnectionState purple_account_get_connection_state(PurpleAccount *account);
+
+/**
  * purple_account_get_contact_info:
  * @account: The instance.
  *

mercurial