|
Packit |
79f644 |
/*
|
|
Packit |
79f644 |
* Copyright (C) 2006-2007 Imendio AB
|
|
Packit |
79f644 |
* Copyright (C) 2007-2008 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
|
|
Packit |
79f644 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
79f644 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* Authors: Xavier Claessens <xclaesse@gmail.com>
|
|
Packit |
79f644 |
* Martyn Russell <martyn@imendio.com>
|
|
Packit |
79f644 |
*/
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#ifndef __TPAW_ACCOUNT_WIDGET_H__
|
|
Packit |
79f644 |
#define __TPAW_ACCOUNT_WIDGET_H__
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include <gtk/gtk.h>
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include "tpaw-account-settings.h"
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_BEGIN_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#define TPAW_TYPE_ACCOUNT_WIDGET tpaw_account_widget_get_type()
|
|
Packit |
79f644 |
#define TPAW_ACCOUNT_WIDGET(obj) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TPAW_TYPE_ACCOUNT_WIDGET, TpawAccountWidget))
|
|
Packit |
79f644 |
#define TPAW_ACCOUNT_WIDGET_CLASS(klass) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_CAST ((klass), TPAW_TYPE_ACCOUNT_WIDGET, TpawAccountWidgetClass))
|
|
Packit |
79f644 |
#define TPAW_IS_ACCOUNT_WIDGET(obj) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TPAW_TYPE_ACCOUNT_WIDGET))
|
|
Packit |
79f644 |
#define TPAW_IS_ACCOUNT_WIDGET_CLASS(klass) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_TYPE ((klass), TPAW_TYPE_ACCOUNT_WIDGET))
|
|
Packit |
79f644 |
#define TPAW_ACCOUNT_WIDGET_GET_CLASS(obj) \
|
|
Packit |
79f644 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), TPAW_TYPE_ACCOUNT_WIDGET, TpawAccountWidgetClass))
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
typedef struct _TpawAccountWidgetPriv TpawAccountWidgetPriv;
|
|
Packit |
79f644 |
typedef struct _TpawAccountWidgetUIDetails TpawAccountWidgetUIDetails;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
typedef struct {
|
|
Packit |
79f644 |
GtkBox parent;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawAccountWidgetUIDetails *ui_details;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawAccountWidgetPriv *priv;
|
|
Packit |
79f644 |
} TpawAccountWidget;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
typedef struct {
|
|
Packit |
79f644 |
GtkBoxClass parent_class;
|
|
Packit |
79f644 |
} TpawAccountWidgetClass;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GType tpaw_account_widget_get_type (void);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawAccountWidget * tpaw_account_widget_new_for_protocol (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
GtkDialog *dialog,
|
|
Packit |
79f644 |
gboolean simple);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_widget_contains_pending_changes
|
|
Packit |
79f644 |
(TpawAccountWidget *widget);
|
|
Packit |
79f644 |
void tpaw_account_widget_discard_pending_changes
|
|
Packit |
79f644 |
(TpawAccountWidget *widget);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gchar * tpaw_account_widget_get_default_display_name (
|
|
Packit |
79f644 |
TpawAccountWidget *widget);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_widget_set_account_param (TpawAccountWidget *widget,
|
|
Packit |
79f644 |
const gchar *account);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_widget_set_password_param (TpawAccountWidget *self,
|
|
Packit |
79f644 |
const gchar *password);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_widget_set_other_accounts_exist (
|
|
Packit |
79f644 |
TpawAccountWidget *self, gboolean others_exist);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_widget_hide_buttons (TpawAccountWidget *self);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_widget_apply_and_log_in (TpawAccountWidget *self);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
/* protected methods */
|
|
Packit |
79f644 |
void tpaw_account_widget_changed (TpawAccountWidget *widget);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawAccountSettings * tpaw_account_widget_get_settings (
|
|
Packit |
79f644 |
TpawAccountWidget *self);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_END_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#endif /* __TPAW_ACCOUNT_WIDGET_H__ */
|