2 * empathy-user-info.h - Header for EmpathyUserInfo
4 * Copyright (C) 2012 - Collabora Ltd.
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.
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.
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/>.
20 #ifndef __EMPATHY_USER_INFO_H__
21 #define __EMPATHY_USER_INFO_H__
25 #include <telepathy-glib/telepathy-glib.h>
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, \
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))
45 typedef struct _EmpathyUserInfo EmpathyUserInfo;
46 typedef struct _EmpathyUserInfoClass EmpathyUserInfoClass;
47 typedef struct _EmpathyUserInfoPrivate EmpathyUserInfoPrivate;
49 struct _EmpathyUserInfo {
52 EmpathyUserInfoPrivate *priv;
55 struct _EmpathyUserInfoClass {
56 GtkGridClass parent_class;
59 GType empathy_user_info_get_type (void) G_GNUC_CONST;
61 GtkWidget *empathy_user_info_new (TpAccount *account);
63 void empathy_user_info_discard (EmpathyUserInfo *self);
65 void empathy_user_info_apply_async (EmpathyUserInfo *self,
66 GAsyncReadyCallback callback,
68 gboolean empathy_user_info_apply_finish (EmpathyUserInfo *self,
75 #endif /* __EMPATHY_USER_INFO_H__ */