pidgin/pidginui.h

changeset 41867
5375c1d58c50
child 42465
b7d530551c1b
equal deleted inserted replaced
41866:dadd84e44a30 41867:5375c1d58c50
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_UI_H
28 #define PIDGIN_UI_H
29
30 #include <glib.h>
31
32 #include <purple.h>
33
34 G_BEGIN_DECLS
35
36 /**
37 * PidginUi:
38 *
39 * Is a subclass of [class@Purple.Ui] that identifies Pidgin to libpurple.
40 *
41 * Since: 3.0.0
42 */
43
44 #define PIDGIN_TYPE_UI (pidgin_ui_get_type())
45 G_DECLARE_FINAL_TYPE(PidginUi, pidgin_ui, PIDGIN, UI, PurpleUi)
46
47 /**
48 * pidgin_ui_new:
49 *
50 * Creates the new [class@Pidgin.Ui] instance.
51 *
52 * Note: there's not much use for this outside of Pidgin's internal code.
53 *
54 * Returns: (transfer full): The new instance.
55 */
56 PurpleUi *pidgin_ui_new(void);
57
58 G_END_DECLS
59
60 #endif /* PIDGIN_UI_H */

mercurial