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__
24 #include <telepathy-glib/telepathy-glib.h>
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, \
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))
44 typedef struct _EmpathyUserInfo EmpathyUserInfo;
45 typedef struct _EmpathyUserInfoClass EmpathyUserInfoClass;
46 typedef struct _EmpathyUserInfoPrivate EmpathyUserInfoPrivate;
48 struct _EmpathyUserInfo {
51 EmpathyUserInfoPrivate *priv;
54 struct _EmpathyUserInfoClass {
55 GtkGridClass parent_class;
58 GType empathy_user_info_get_type (void) G_GNUC_CONST;
60 GtkWidget *empathy_user_info_new (TpAccount *account);
62 void empathy_user_info_discard (EmpathyUserInfo *self);
64 void empathy_user_info_apply_async (EmpathyUserInfo *self,
65 GAsyncReadyCallback callback,
67 gboolean empathy_user_info_apply_finish (EmpathyUserInfo *self,
74 #endif /* __EMPATHY_USER_INFO_H__ */