libpurple/purpleaccountmanager.h

changeset 42647
b6c3acaddc83
parent 42628
b069ea54b906
child 42656
df9aafbae930
--- a/libpurple/purpleaccountmanager.h	Tue Mar 19 00:53:11 2024 -0500
+++ b/libpurple/purpleaccountmanager.h	Tue Mar 19 01:00:48 2024 -0500
@@ -222,6 +222,32 @@
 PURPLE_AVAILABLE_IN_3_0
 void purple_account_manager_foreach(PurpleAccountManager *manager, PurpleAccountManagerForeachFunc callback, gpointer data);
 
+/**
+ * purple_account_manager_get_online:
+ * @manager: The instance.
+ *
+ * Gets whether or not new accounts should automatically have
+ * [method@Account.connect] called for them.
+ *
+ * Returns: %TRUE if @manager is online, otherwise %FALSE.
+ *
+ * Since: 3.0
+ */
+PURPLE_AVAILABLE_IN_3_0
+gboolean purple_account_manager_get_online(PurpleAccountManager *manager);
+
+/**
+ * purple_account_manager_set_online:
+ * @manager: The instance.
+ *
+ * Sets whether or not new accounts should automatically have
+ * [method@Account.connect] called for them.
+ *
+ * Since: 3.0.0
+ */
+PURPLE_AVAILABLE_IN_3_0
+void purple_account_manager_set_online(PurpleAccountManager *manager, gboolean online);
+
 G_END_DECLS
 
 #endif /* PURPLE_ACCOUNT_MANAGER_H */

mercurial