pidgin/pidginaddbuddydialog.h

changeset 42569
4dc757d5f295
parent 42568
31e8c7c92e2f
child 42570
a980db2607fd
equal deleted inserted replaced
42568:31e8c7c92e2f 42569:4dc757d5f295
1 /*
2 * Pidgin - Internet Messenger
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
4 *
5 * Pidgin is the legal property of its developers, whose names are too numerous
6 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * source distribution.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
21 */
22
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
24 # error "only <pidgin.h> may be included directly"
25 #endif
26
27 #ifndef PIDGIN_ADD_BUDDY_DIALOG_H
28 #define PIDGIN_ADD_BUDDY_DIALOG_H
29
30 #include <gtk/gtk.h>
31
32 #include <purple.h>
33
34 #include "pidginversion.h"
35
36 G_BEGIN_DECLS
37
38 /**
39 * PidginAddBuddyDialog:
40 *
41 * A dialog for adding buddies to your contact list.
42 *
43 * Since: 3.0.0
44 */
45
46 #define PIDGIN_TYPE_ADD_BUDDY_DIALOG (pidgin_add_buddy_dialog_get_type())
47
48 PIDGIN_AVAILABLE_IN_3_0
49 G_DECLARE_FINAL_TYPE(PidginAddBuddyDialog, pidgin_add_buddy_dialog, PIDGIN,
50 ADD_BUDDY_DIALOG, GtkDialog)
51
52 /**
53 * pidgin_add_buddy_dialog_new:
54 * @account: (nullable): The [class@Purple.Account] to pre-select.
55 * @username: (nullable): The username to pre-fill.
56 * @alias: (nullable): The alias to pre-fill.
57 * @message: (nullable): The invite message to pre-fill.
58 * @group: (nullable): The group anem to pre-fill.
59 *
60 * Creates a add buddy dialog with the pre-filled optional values.
61 *
62 * Returns: (transfer full): The widget.
63 *
64 * Since: 3.0.0
65 */
66 PIDGIN_AVAILABLE_IN_3_0
67 GtkWidget *pidgin_add_buddy_dialog_new(PurpleAccount *account, const gchar *username, const gchar *alias, const gchar *message, const gchar *group);
68
69 G_END_DECLS
70
71 #endif /* PIDGIN_ADD_BUDDY_DIALOG_H */

mercurial