Tue, 09 Apr 2024 21:50:31 -0500
Add a doc-check unit test to libpurple and fix the issues it has found
Testing Done:
Ran ninja turtles
Reviewed at https://reviews.imfreedom.org/r/3050/
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
7 | * source distribution. |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
12 | * any later version. |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
17 | * more details. |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
18 | * |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42387
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
42628
b069ea54b906
Fix the libpurple include warnings that were suggesting pidgin.h be included
Gary Kramlich <grim@reaperworld.com>
parents:
42613
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #ifndef PURPLE_ACCOUNT_MANAGER_H |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | #define PURPLE_ACCOUNT_MANAGER_H |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib.h> |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #include <glib-object.h> |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | |
|
42344
c51d37734155
Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
42338
diff
changeset
|
33 | #include "purpleaccount.h" |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
34 | #include "purpleversion.h" |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | G_BEGIN_DECLS |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | #define PURPLE_TYPE_ACCOUNT_MANAGER (purple_account_manager_get_type()) |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
39 | |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
40 | PURPLE_AVAILABLE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | G_DECLARE_FINAL_TYPE(PurpleAccountManager, purple_account_manager, PURPLE, ACCOUNT_MANAGER, GObject) |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | /** |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | * PurpleAccountManagerForeachFunc: |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | * @account: The account instance. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | * @data: User specified data. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | * A function used as a callback with purple_account_manager_foreach(). |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
50 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
52 | PURPLE_AVAILABLE_TYPE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | typedef void (*PurpleAccountManagerForeachFunc)(PurpleAccount *account, gpointer data); |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | /** |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
56 | * PurpleAccountManager: |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | * |
|
41890
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
58 | * A manager that keeps track of all [class@Purple.Account]s. |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
60 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | */ |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | /** |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | * purple_account_manager_get_default: |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | * Gets the default account manager for libpurple. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | * Returns: (transfer none): The default account manager for libpurple. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
70 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
72 | PURPLE_AVAILABLE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | PurpleAccountManager *purple_account_manager_get_default(void); |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | |
|
41182
5e191561380f
Fix some broken doc comments for the account manager api
Gary Kramlich <grim@reaperworld.com>
parents:
41181
diff
changeset
|
75 | /** |
|
41851
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
76 | * purple_account_manager_get_default_as_model: |
|
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
77 | * |
|
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
78 | * Gets the default account manager for libpurple as a list model. |
|
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
79 | * |
|
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
80 | * Returns: (transfer none): The default account manager for libpurple. |
|
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
81 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
82 | * Since: 3.0 |
|
41851
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
83 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
84 | PURPLE_AVAILABLE_IN_3_0 |
|
41851
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
85 | GListModel *purple_account_manager_get_default_as_model(void); |
|
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
86 | |
|
64d7e69bff25
Move PurpleAccountManager to GPtrArray and implement GListModel
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41641
diff
changeset
|
87 | /** |
|
41182
5e191561380f
Fix some broken doc comments for the account manager api
Gary Kramlich <grim@reaperworld.com>
parents:
41181
diff
changeset
|
88 | * purple_account_manager_add: |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | * @manager: The account manager instance. |
|
42234
95aec1611d01
A few account manager changes
Gary Kramlich <grim@reaperworld.com>
parents:
41890
diff
changeset
|
90 | * @account: (transfer none): The account to add. |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | * Adds @account to @manager. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
94 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
96 | PURPLE_AVAILABLE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | void purple_account_manager_add(PurpleAccountManager *manager, PurpleAccount *account); |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | |
|
41182
5e191561380f
Fix some broken doc comments for the account manager api
Gary Kramlich <grim@reaperworld.com>
parents:
41181
diff
changeset
|
99 | /** |
|
5e191561380f
Fix some broken doc comments for the account manager api
Gary Kramlich <grim@reaperworld.com>
parents:
41181
diff
changeset
|
100 | * purple_account_manager_remove: |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | * @manager: The account manager instance. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * @account: The account to remove. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * Removes @account from @manager. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
106 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
108 | PURPLE_AVAILABLE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | void purple_account_manager_remove(PurpleAccountManager *manager, PurpleAccount *account); |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | /** |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * purple_account_manager_reorder: |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * @manager: The account manager instance. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | * @account: The account instance. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | * @new_index: The numerical position to move @account to. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | * Moves @account to @new_index in @manager. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
119 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
121 | PURPLE_AVAILABLE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | void purple_account_manager_reorder(PurpleAccountManager *manager, PurpleAccount *account, guint new_index); |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | /** |
|
41451
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
125 | * purple_account_manager_get_enabled: |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
126 | * @manager: The account manager instance. |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
127 | * |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
128 | * Gets the list of all enabled accounts. |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
129 | * |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
130 | * Returns: (transfer container) (element-type PurpleAccount): The list of all |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
131 | * enabled accounts. |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
132 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
133 | * Since: 3.0 |
|
41451
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
134 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
135 | PURPLE_AVAILABLE_IN_3_0 |
|
41451
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
136 | GList *purple_account_manager_get_enabled(PurpleAccountManager *manager); |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
137 | |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
138 | /** |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
139 | * purple_account_manager_get_disabled: |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
140 | * @manager: The account manager instance. |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
141 | * |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
142 | * Gets the list of all disabled accounts. |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
143 | * |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
144 | * Returns: (transfer container) (element-type PurpleAccount): The list of all |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
145 | * disabled accounts. |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
146 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
147 | * Since: 3.0 |
|
41451
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
148 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
149 | PURPLE_AVAILABLE_IN_3_0 |
|
41451
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
150 | GList *purple_account_manager_get_disabled(PurpleAccountManager *manager); |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
151 | |
|
e587ef39e02e
Update the account manager to use enabled/disabled for accounts rather than active/inactive.
Gary Kramlich <grim@reaperworld.com>
parents:
41315
diff
changeset
|
152 | /** |
|
41890
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
153 | * purple_account_manager_get_connected: |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
154 | * @manager: The instance. |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
155 | * |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
156 | * Gets a list of all accounts that are currently connected. |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
157 | * |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
158 | * Returns: (transfer container) (element-type PurpleAccount): The list of all |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
159 | * connected accounts. |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
160 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
161 | * Since: 3.0 |
|
41890
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
162 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
163 | PURPLE_AVAILABLE_IN_3_0 |
|
41890
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
164 | GList *purple_account_manager_get_connected(PurpleAccountManager *manager); |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
165 | |
|
2c15f6e30f20
Add purple_account_manager_get_connected and port libpurple to it
Gary Kramlich <grim@reaperworld.com>
parents:
41851
diff
changeset
|
166 | /** |
|
41298
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
167 | * purple_account_manager_find_by_id: |
|
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
168 | * @manager: The account manager instance. |
|
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
169 | * @id: The id of the account. |
|
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
170 | * |
|
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
171 | * Looks up an account based on its id property. |
|
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
172 | * |
|
42291
a86b7bcbb471
Make the purple_account_manager_find functions return transfer full.
Gary Kramlich <grim@reaperworld.com>
parents:
42234
diff
changeset
|
173 | * Returns: (transfer full): The account if found, otherwise %NULL. |
|
41298
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
174 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
175 | * Since: 3.0 |
|
41298
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
176 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
177 | PURPLE_AVAILABLE_IN_3_0 |
|
41298
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
178 | PurpleAccount *purple_account_manager_find_by_id(PurpleAccountManager *manager, const gchar *id); |
|
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
179 | |
|
6d816e02fd76
Create a menu controller that will keep a GMenu in sync with the disabled accounts in libpurple
Gary Kramlich <grim@reaperworld.com>
parents:
41182
diff
changeset
|
180 | /** |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
181 | * purple_account_manager_find: |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
182 | * @manager: The account manager instance. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
183 | * @username: The username of the account. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
184 | * @protocol_id: The id of the protocol of the account. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
185 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
186 | * Attempts to find an account in @manager with the matching @username and |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
187 | * @protocol_id. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
188 | * |
|
42291
a86b7bcbb471
Make the purple_account_manager_find functions return transfer full.
Gary Kramlich <grim@reaperworld.com>
parents:
42234
diff
changeset
|
189 | * Returns: (transfer full): The account if found, otherwise %NULL. |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
190 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
191 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
192 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
193 | PURPLE_AVAILABLE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
194 | PurpleAccount *purple_account_manager_find(PurpleAccountManager *manager, const gchar *username, const gchar *protocol_id); |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
195 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
196 | /** |
|
41641
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
197 | * purple_account_manager_find_custom: |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
198 | * @manager: The account manager instance. |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
199 | * @func: (scope call): The function to call for each account. It should return |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
200 | * TRUE when the desired element is found |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
201 | * @data: The user data to pass to the function, as its second argument. |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
202 | * |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
203 | * Attempts to find an account in @manager with a custom matching function. |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
204 | * |
|
42291
a86b7bcbb471
Make the purple_account_manager_find functions return transfer full.
Gary Kramlich <grim@reaperworld.com>
parents:
42234
diff
changeset
|
205 | * Returns: (transfer full): The account if found, otherwise %NULL. |
|
41641
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
206 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
207 | * Since: 3.0 |
|
41641
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
208 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
209 | PURPLE_AVAILABLE_IN_3_0 |
|
41641
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
210 | PurpleAccount * purple_account_manager_find_custom(PurpleAccountManager *manager, GEqualFunc func, gconstpointer data); |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
211 | |
|
ff6dff2228e1
Add a custom find to account manager
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41456
diff
changeset
|
212 | /** |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
213 | * purple_account_manager_foreach: |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
214 | * @manager: The account manager instance. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
215 | * @callback: (scope call): The function to call. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
216 | * @data: User data to pass to @callback. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
217 | * |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
218 | * Calls @callback with @data for each account that @manager knows about. |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
219 | * |
|
42613
780d7efe37c2
Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
220 | * Since: 3.0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
221 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
222 | PURPLE_AVAILABLE_IN_3_0 |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
223 | void purple_account_manager_foreach(PurpleAccountManager *manager, PurpleAccountManagerForeachFunc callback, gpointer data); |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
224 | |
|
42647
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
225 | /** |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
226 | * purple_account_manager_get_online: |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
227 | * @manager: The instance. |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
228 | * |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
229 | * Gets whether or not new accounts should automatically have |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
230 | * [method@Account.connect] called for them. |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
231 | * |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
232 | * Returns: %TRUE if @manager is online, otherwise %FALSE. |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
233 | * |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
234 | * Since: 3.0 |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
235 | */ |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
236 | PURPLE_AVAILABLE_IN_3_0 |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
237 | gboolean purple_account_manager_get_online(PurpleAccountManager *manager); |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
238 | |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
239 | /** |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
240 | * purple_account_manager_set_online: |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
241 | * @manager: The instance. |
|
42656
df9aafbae930
Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents:
42647
diff
changeset
|
242 | * @online: The new online status. |
|
42647
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
243 | * |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
244 | * Sets whether or not new accounts should automatically have |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
245 | * [method@Account.connect] called for them. |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
246 | * |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
247 | * Since: 3.0.0 |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
248 | */ |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
249 | PURPLE_AVAILABLE_IN_3_0 |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
250 | void purple_account_manager_set_online(PurpleAccountManager *manager, gboolean online); |
|
b6c3acaddc83
Replace purple_accounts_restore_statuses with purple_account_manager_set_online
Gary Kramlich <grim@reaperworld.com>
parents:
42628
diff
changeset
|
251 | |
|
41181
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
252 | G_END_DECLS |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
253 | |
|
e859c41d8996
Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
254 | #endif /* PURPLE_ACCOUNT_MANAGER_H */ |