libpurple/purpleaccountusersplit.h

Tue, 06 Apr 2021 03:35:20 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 06 Apr 2021 03:35:20 -0500
changeset 40840
b5f355f90ab0
parent 40474
1341be8e3402
child 41207
d91e963b0a1c
permissions
-rw-r--r--

Port the updates from 2.14.2 and the upcoming 2.14.3 to 3.0.0

* Use the unicode version of the System and UserInfo plugins to fix
non-english languages in the Windows installer.
* Update the installer to use the inetc plugin so that https downloads will
work. This became necessary because Sourceforge now redirects http to
https.
* Standardize everything in pidgin/win32/winpidgin.c to use `wprintf`.

Testing Done:
Compiled and ran on windows 10.

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

39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /* purple
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Purple is the legal property of its developers, whose names are too numerous
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * source distribution.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * (at your option) any later version.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * GNU General Public License for more details.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 */
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40241
diff changeset
22 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40241
diff changeset
23 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40241
diff changeset
24 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40241
diff changeset
25
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
26 #ifndef PURPLE_ACCOUNT_USER_SPLIT_H
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
27 #define PURPLE_ACCOUNT_USER_SPLIT_H
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
28
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 /**
40241
3377280a4a8d Fix missing doc sections.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39971
diff changeset
30 * SECTION:purpleaccountusersplit
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
31 * @section_id: libpurple-account-user-split
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
32 * @short_description: Username splitting
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
33 * @title: Account Username Splitting API
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 */
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
36 #include <glib.h>
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
37 #include <glib-object.h>
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
39 #define PURPLE_TYPE_ACCOUNT_USER_SPLIT (purple_account_user_split_get_type())
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 * PurpleAccountUserSplit:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 * A username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 * This is used by some protocols to separate the fields of the username
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 * into more human-readable components.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 */
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 typedef struct _PurpleAccountUserSplit PurpleAccountUserSplit;
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 G_BEGIN_DECLS
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
53 GType purple_account_user_split_get_type(void);
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 * purple_account_user_split_new:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 * @text: The text of the option.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 * @default_value: The default value.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 * @sep: The field separator.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 * Creates a new account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 * Returns: The new user split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 */
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
65 PurpleAccountUserSplit *purple_account_user_split_new(const gchar *text, const gchar *default_value, gchar sep);
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
66
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
67 /**
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
68 * purple_account_user_split_copy:
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
69 * @split: The split to copy.
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
70 *
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
71 * Creates a copy of @split.
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
72 *
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
73 * Returns: (transfer full): A copy of @split.
39971
226e6e8bb07d Add a since tag to purple_account_user_split_copy
Gary Kramlich <grim@reaperworld.com>
parents: 39969
diff changeset
74 *
226e6e8bb07d Add a since tag to purple_account_user_split_copy
Gary Kramlich <grim@reaperworld.com>
parents: 39969
diff changeset
75 * Since: 3.0.0
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
76 */
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
77 PurpleAccountUserSplit *purple_account_user_split_copy(PurpleAccountUserSplit *split);
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 * purple_account_user_split_destroy:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 * @split: The split to destroy.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 * Destroys an account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 */
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 void purple_account_user_split_destroy(PurpleAccountUserSplit *split);
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 * purple_account_user_split_get_text:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 * @split: The account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 * Returns the text for an account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
93 * Returns: The account username split's text.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94 */
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
95 const gchar *purple_account_user_split_get_text(const PurpleAccountUserSplit *split);
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 * purple_account_user_split_get_default_value:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 * @split: The account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 * Returns the default string value for an account split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
102 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 * Returns: The default string.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 */
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
105 const gchar *purple_account_user_split_get_default_value(const PurpleAccountUserSplit *split);
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 * purple_account_user_split_get_separator:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 * @split: The account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
111 * Returns the field separator for an account split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113 * Returns: The field separator.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 */
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
115 gchar purple_account_user_split_get_separator(const PurpleAccountUserSplit *split);
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 * purple_account_user_split_get_reverse:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 * @split: The account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 * Returns the 'reverse' value for an account split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 * Returns: The 'reverse' value.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124 */
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 gboolean purple_account_user_split_get_reverse(const PurpleAccountUserSplit *split);
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
126
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
127 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128 * purple_account_user_split_set_reverse:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129 * @split: The account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
130 * @reverse: The 'reverse' value
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132 * Sets the 'reverse' value for an account split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 */
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 void purple_account_user_split_set_reverse(PurpleAccountUserSplit *split, gboolean reverse);
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 * purple_account_user_split_is_constant:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
138 * @split: The account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
140 * Returns the constant parameter for an account split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142 * When split is constant, it does not need to be displayed
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 * in configuration dialog.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 * Returns: %TRUE, if the split is constant.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 */
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
147 gboolean purple_account_user_split_is_constant(const PurpleAccountUserSplit *split);
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 /**
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 * purple_account_user_split_set_constant:
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151 * @split: The account username split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
152 * @constant: %TRUE, if the split is a constant part.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
153 *
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
154 * Sets the constant parameter of account split.
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
155 */
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
156 void purple_account_user_split_set_constant(PurpleAccountUserSplit *split, gboolean constant);
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
157
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
158 G_END_DECLS
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159
39969
b1ccd1961499 Make PurpleAccountUserSplit a boxed type
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
160 #endif /* PURPLE_ACCOUNT_USER_SPLIT_H */

mercurial