]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-user-info.h
GNOME Goal: Update icon names
[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 #include <telepathy-glib/telepathy-glib.h>
25
26 G_BEGIN_DECLS
27
28 #define EMPATHY_TYPE_USER_INFO \
29     (empathy_user_info_get_type ())
30 #define EMPATHY_USER_INFO(obj) \
31     (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_USER_INFO, \
32         EmpathyUserInfo))
33 #define EMPATHY_USER_INFO_CLASS(klass) \
34     (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_USER_INFO, \
35         EmpathyUserInfoClass))
36 #define EMPATHY_IS_USER_INFO(obj) \
37     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_USER_INFO))
38 #define EMPATHY_IS_USER_INFO_CLASS(klass) \
39     (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_USER_INFO))
40 #define EMPATHY_USER_INFO_GET_CLASS(obj) \
41     (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_USER_INFO, \
42         EmpathyUserInfoClass))
43
44 typedef struct _EmpathyUserInfo EmpathyUserInfo;
45 typedef struct _EmpathyUserInfoClass EmpathyUserInfoClass;
46 typedef struct _EmpathyUserInfoPrivate EmpathyUserInfoPrivate;
47
48 struct _EmpathyUserInfo {
49   GtkGrid parent;
50
51   EmpathyUserInfoPrivate *priv;
52 };
53
54 struct _EmpathyUserInfoClass {
55   GtkGridClass parent_class;
56 };
57
58 GType empathy_user_info_get_type (void) G_GNUC_CONST;
59
60 GtkWidget *empathy_user_info_new (TpAccount *account);
61
62 void empathy_user_info_discard (EmpathyUserInfo *self);
63
64 void empathy_user_info_apply_async (EmpathyUserInfo *self,
65     GAsyncReadyCallback callback,
66     gpointer user_data);
67 gboolean empathy_user_info_apply_finish (EmpathyUserInfo *self,
68     GAsyncResult *result,
69     GError **error);
70
71
72 G_END_DECLS
73
74 #endif /* __EMPATHY_USER_INFO_H__ */
75