|
Packit |
79f644 |
/*
|
|
Packit |
79f644 |
* tpaw-user-info.h - Header for TpawUserInfo
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* Copyright (C) 2012 - Collabora Ltd.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
79f644 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
79f644 |
* License as published by the Free Software Foundation; either
|
|
Packit |
79f644 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
79f644 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
79f644 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
79f644 |
* Lesser General Public License for more details.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
79f644 |
* along with This library. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
79f644 |
*/
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#ifndef __TPAW_USER_INFO_H__
|
|
Packit |
79f644 |
#define __TPAW_USER_INFO_H__
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include <gtk/gtk.h>
|
|
Packit |
79f644 |
#include <telepathy-glib/telepathy-glib.h>
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_BEGIN_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#define TPAW_TYPE_USER_INFO \
|
|
Packit |
79f644 |
(tpaw_user_info_get_type ())
|
|
Packit |
79f644 |
#define TPAW_USER_INFO(obj) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TPAW_TYPE_USER_INFO, \
|
|
Packit |
79f644 |
TpawUserInfo))
|
|
Packit |
79f644 |
#define TPAW_USER_INFO_CLASS(klass) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_CAST ((klass), TPAW_TYPE_USER_INFO, \
|
|
Packit |
79f644 |
TpawUserInfoClass))
|
|
Packit |
79f644 |
#define TPAW_IS_USER_INFO(obj) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TPAW_TYPE_USER_INFO))
|
|
Packit |
79f644 |
#define TPAW_IS_USER_INFO_CLASS(klass) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_TYPE ((klass), TPAW_TYPE_USER_INFO))
|
|
Packit |
79f644 |
#define TPAW_USER_INFO_GET_CLASS(obj) \
|
|
Packit |
79f644 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), TPAW_TYPE_USER_INFO, \
|
|
Packit |
79f644 |
TpawUserInfoClass))
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
typedef struct _TpawUserInfo TpawUserInfo;
|
|
Packit |
79f644 |
typedef struct _TpawUserInfoClass TpawUserInfoClass;
|
|
Packit |
79f644 |
typedef struct _TpawUserInfoPrivate TpawUserInfoPrivate;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
struct _TpawUserInfo {
|
|
Packit |
79f644 |
GtkGrid parent;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawUserInfoPrivate *priv;
|
|
Packit |
79f644 |
};
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
struct _TpawUserInfoClass {
|
|
Packit |
79f644 |
GtkGridClass parent_class;
|
|
Packit |
79f644 |
};
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GType tpaw_user_info_get_type (void) G_GNUC_CONST;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GtkWidget *tpaw_user_info_new (TpAccount *account);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_user_info_discard (TpawUserInfo *self);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_user_info_apply_async (TpawUserInfo *self,
|
|
Packit |
79f644 |
GAsyncReadyCallback callback,
|
|
Packit |
79f644 |
gpointer user_data);
|
|
Packit |
79f644 |
gboolean tpaw_user_info_apply_finish (TpawUserInfo *self,
|
|
Packit |
79f644 |
GAsyncResult *result,
|
|
Packit |
79f644 |
GError **error);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_END_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#endif /* __TPAW_USER_INFO_H__ */
|