pidgin/prefs/pidgincredentialproviderrow.h

Wed, 01 Nov 2023 01:42:09 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Wed, 01 Nov 2023 01:42:09 -0500
changeset 42465
b7d530551c1b
parent 41520
a5dd595361b4
child 42466
ca3374c1cdba
permissions
-rw-r--r--

Tag declared Pidgin types with symbol visibility

This is every `G_DECLARE_*` macro.

Testing Done:
Compiled.

Bugs closed: PIDGIN-17839

Reviewed at https://reviews.imfreedom.org/r/2764/

40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
1 /*
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
2 * Pidgin - Internet Messenger
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
4 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
5 * Pidgin is the legal property of its developers, whose names are too numerous
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
7 * source distribution.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
8 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
12 * (at your option) any later version.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
13 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
17 * GNU General Public License for more details.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
18 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
21 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
22
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
24 # error "only <pidgin.h> may be included directly"
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
25 #endif
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
26
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
27 #ifndef PIDGIN_CREDENTIAL_PROVIDER_ROW_H
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
28 #define PIDGIN_CREDENTIAL_PROVIDER_ROW_H
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
29
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
30 #include <glib.h>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
31
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
32 #include <gtk/gtk.h>
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
33
41520
a5dd595361b4 Replace libhandy with libadwaita
Gary Kramlich <grim@reaperworld.com>
parents: 41197
diff changeset
34 #include <adwaita.h>
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
35
42465
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
36 #include "pidginversion.h"
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
37
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
38 G_BEGIN_DECLS
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
39
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
40 /**
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
41 * PIDGIN_TYPE_CREDENTIAL_PROVIDER_ROW:
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
42 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
43 * The standard _get_type macro for #PidginCredentialProviderRow.
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
44 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
45 * Since: 3.0.0
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
46 */
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
47 #define PIDGIN_TYPE_CREDENTIAL_PROVIDER_ROW (pidgin_credential_provider_row_get_type())
42465
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
48
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41520
diff changeset
49 PIDGIN_AVAILABLE_IN_3_0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
50 G_DECLARE_FINAL_TYPE(PidginCredentialProviderRow,
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
51 pidgin_credential_provider_row,
41520
a5dd595361b4 Replace libhandy with libadwaita
Gary Kramlich <grim@reaperworld.com>
parents: 41197
diff changeset
52 PIDGIN, CREDENTIAL_PROVIDER_ROW, AdwActionRow)
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
53
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
54 /**
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
55 * PidginCredentialProviderRow:
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
56 *
41197
1fbba07f21cf Remove unnecessary gtk-doc comments from pidgin
Gary Kramlich <grim@reaperworld.com>
parents: 40886
diff changeset
57 * #PidginCredentialProviderRow is a widget for the preferences window to let
1fbba07f21cf Remove unnecessary gtk-doc comments from pidgin
Gary Kramlich <grim@reaperworld.com>
parents: 40886
diff changeset
58 * users configure their credential provider.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
59 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
60 * Since: 3.0.0
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
61 */
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
62
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
63 /**
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
64 * pidgin_credential_provider_row_new:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
65 * @provider: The credential provider to bind.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
66 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
67 * Creates a new #PidginCredentialProviderRow instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
68 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
69 * Returns: (transfer full): The new #PidginCredentialProviderRow instance.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
70 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
71 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
72 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
73 GtkWidget *pidgin_credential_provider_row_new(PurpleCredentialProvider *provider);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
74
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
75 /**
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
76 * pidgin_credential_provider_row_get_provider:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
77 * @row: The row instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
78 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
79 * Gets the #PurpleCredentialProvider displayed by this widget.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
80 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
81 * Returns: (transfer none): The displayed #PurpleCredentialProvider.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
82 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
83 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
84 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
85 PurpleCredentialProvider *pidgin_credential_provider_row_get_provider(PidginCredentialProviderRow *row);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
86
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
87 /**
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
88 * pidgin_credential_provider_row_get_active:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
89 * @row: The row instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
90 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
91 * Gets whether the row is displayed as active.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
92 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
93 * Returns: Whether the row is active.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
94 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
95 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
96 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
97 gboolean pidgin_credential_provider_row_get_active(PidginCredentialProviderRow *row);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
98
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
99 /**
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
100 * pidgin_credential_provider_row_set_active:
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
101 * @row: The row instance.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
102 * @active: Whether to display as active.
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
103 *
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
104 * Sets whether the row is displayed as active.
40878
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
105 *
7e8c50c967bc Add some missed docs for PidginCredential*
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 40873
diff changeset
106 * Since: 3.0.0
40873
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
107 */
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
108 void pidgin_credential_provider_row_set_active(PidginCredentialProviderRow *row, gboolean active);
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
109
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
110 G_END_DECLS
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
111
68c7ef6c5320 Convert credentials page to use HdyPreferencesGroup and a list box.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
112 #endif /* PIDGIN_CREDENTIAL_PROVIDER_ROW_H */

mercurial