blob: 5d424ffbf58210ab2f971eb96058a10f75537c5e [file] [log] [blame]
aviau6aeb4852016-08-18 16:01:09 -04001/*
Guillaume Roguez77c579d2018-01-30 15:54:02 -05002 * Copyright (C) 2016-2018 Savoir-faire Linux Inc.
aviau6aeb4852016-08-18 16:01:09 -04003 * Author: Alexandre Viau <alexandre.viau@savoirfairelinux.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#pragma once
21
22#include <gtk/gtk.h>
23
Sébastien Blin61c19d12018-05-16 12:55:34 -040024#include <string>
25
26#include <api/account.h>
27
28#include "accountinfopointer.h"
29
aviau6aeb4852016-08-18 16:01:09 -040030G_BEGIN_DECLS
31
32#define ACCOUNT_CREATION_WIZARD_TYPE (account_creation_wizard_get_type ())
33#define ACCOUNT_CREATION_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ACCOUNT_CREATION_WIZARD_TYPE, AccountCreationWizard))
34#define ACCOUNT_CREATION_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ACCOUNT_CREATION_WIZARD_TYPE, AccountCreationWizardClass))
35#define IS_ACCOUNT_CREATION_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ACCOUNT_CREATION_WIZARD_TYPE))
36#define IS_ACCOUNT_CREATION_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ACCOUNT_CREATION_WIZARD_TYPE))
37
38typedef struct _AccountCreationWizard AccountCreationWizard;
39typedef struct _AccountCreationWizardClass AccountCreationWizardClass;
40
41GType account_creation_wizard_get_type (void) G_GNUC_CONST;
42GtkWidget *account_creation_wizard_new (bool cancel_button);
43
Hugo Lefeuvre24356d42018-05-11 10:41:41 -040044void account_creation_wizard_show_preview (AccountCreationWizard *win, gboolean show_preview = TRUE);
45void account_creation_wizard_cancel (AccountCreationWizard *win);
Sébastien Blin61c19d12018-05-16 12:55:34 -040046void account_creation_wizard_account_added (AccountCreationWizard *view, AccountInfoPointer const & accountInfo);
47void account_creation_show_error_view (AccountCreationWizard *view, const std::string& id);
Hugo Lefeuvre24356d42018-05-11 10:41:41 -040048
aviau6aeb4852016-08-18 16:01:09 -040049G_END_DECLS