]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-user-info.h
117bfd325e4be788ee9a4e634338dfda91e427a0
[empathy.git] / libempathy-gtk / empathy-user-info.h
1 /*
2  * empathy-user-info.h - Header for EmpathyUserInfo
3  *
4  * Copyright (C) 2012 - Collabora Ltd.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with This library. If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef __EMPATHY_USER_INFO_H__
21 #define __EMPATHY_USER_INFO_H__
22
23 #include <gtk/gtk.h>
24
25 #include <telepathy-glib/telepathy-glib.h>
26
27 G_BEGIN_DECLS
28
29 #define EMPATHY_TYPE_USER_INFO \
30     (empathy_user_info_get_type ())
31 #define EMPATHY_USER_INFO(obj) \
32     (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_USER_INFO, \
33         EmpathyUserInfo))
34 #define EMPATHY_USER_INFO_CLASS(klass) \
35     (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_USER_INFO, \
36         EmpathyUserInfoClass))
37 #define EMPATHY_IS_USER_INFO(obj) \
38     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_USER_INFO))
39 #define EMPATHY_IS_USER_INFO_CLASS(klass) \
40     (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_USER_INFO))
41 #define EMPATHY_USER_INFO_GET_CLASS(obj) \
42     (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_USER_INFO, \
43         EmpathyUserInfoClass))
44
45 typedef struct _EmpathyUserInfo EmpathyUserInfo;
46 typedef struct _EmpathyUserInfoClass EmpathyUserInfoClass;
47 typedef struct _EmpathyUserInfoPrivate EmpathyUserInfoPrivate;
48
49 struct _EmpathyUserInfo {
50   GtkGrid parent;
51
52   EmpathyUserInfoPrivate *priv;
53 };
54
55 struct _EmpathyUserInfoClass {
56   GtkGridClass parent_class;
57 };
58
59 GType empathy_user_info_get_type (void) G_GNUC_CONST;
60
61 GtkWidget *empathy_user_info_new (TpAccount *account);
62
63 void empathy_user_info_discard (EmpathyUserInfo *self);
64
65 void empathy_user_info_apply_async (EmpathyUserInfo *self,
66     GAsyncReadyCallback callback,
67     gpointer user_data);
68 gboolean empathy_user_info_apply_finish (EmpathyUserInfo *self,
69     GAsyncResult *result,
70     GError **error);
71
72
73 G_END_DECLS
74
75 #endif /* __EMPATHY_USER_INFO_H__ */
76