blob: 830d3eba03631c7c5bce230e34627125fe18500b [file] [log] [blame]
Sébastien Blin61c19d12018-05-16 12:55:34 -04001/*
2 * Copyright (C) 2015-2018 Savoir-faire Linux Inc.
3 * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
4 * Author: Sebastien Blin <sebastien.blin@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program 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
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21#ifndef _NEWACCOUNTSETTINGSVIEW_H
22#define _NEWACCOUNTSETTINGSVIEW_H
23
24#include <gtk/gtk.h>
25
26#include <api/account.h>
27
28#include "accountinfopointer.h"
29
30G_BEGIN_DECLS
31
32#define NEW_ACCOUNT_SETTINGS_VIEW_TYPE (new_account_settings_view_get_type ())
33#define NEW_ACCOUNT_SETTINGS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEW_ACCOUNT_SETTINGS_VIEW_TYPE, NewAccountSettingsView))
34#define NEW_ACCOUNT_SETTINGS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), NEW_ACCOUNT_SETTINGS_VIEW_TYPE, NewAccountSettingsViewClass))
35#define IS_NEW_ACCOUNT_SETTINGS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NEW_ACCOUNT_SETTINGS_VIEW_TYPE))
36#define IS_NEW_ACCOUNT_SETTINGS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NEW_ACCOUNT_SETTINGS_VIEW_TYPE))
37
38typedef struct _NewAccountSettingsView NewAccountSettingsView;
39typedef struct _NewAccountSettingsViewClass NewAccountSettingsViewClass;
40
41GType new_account_settings_view_get_type (void) G_GNUC_CONST;
42GtkWidget *new_account_settings_view_new (AccountInfoPointer const & accountInfo);
43void new_account_settings_view_show (NewAccountSettingsView *view, gboolean show_profile);
44void new_account_settings_view_update (NewAccountSettingsView *view, gboolean reset_view = true);
45void new_account_settings_view_save_account (NewAccountSettingsView *view);
46
47G_END_DECLS
48
49#endif /* _NEWACCOUNTSETTINGSVIEW_H */