aviau | 6aeb485 | 2016-08-18 16:01:09 -0400 | [diff] [blame] | 1 | /* |
Guillaume Roguez | 77c579d | 2018-01-30 15:54:02 -0500 | [diff] [blame] | 2 | * Copyright (C) 2016-2018 Savoir-faire Linux Inc. |
aviau | 6aeb485 | 2016-08-18 16:01:09 -0400 | [diff] [blame] | 3 | * 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 Blin | 61c19d1 | 2018-05-16 12:55:34 -0400 | [diff] [blame^] | 24 | #include <string> |
| 25 | |
| 26 | #include <api/account.h> |
| 27 | |
| 28 | #include "accountinfopointer.h" |
| 29 | |
aviau | 6aeb485 | 2016-08-18 16:01:09 -0400 | [diff] [blame] | 30 | G_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 | |
| 38 | typedef struct _AccountCreationWizard AccountCreationWizard; |
| 39 | typedef struct _AccountCreationWizardClass AccountCreationWizardClass; |
| 40 | |
| 41 | GType account_creation_wizard_get_type (void) G_GNUC_CONST; |
| 42 | GtkWidget *account_creation_wizard_new (bool cancel_button); |
| 43 | |
Hugo Lefeuvre | 24356d4 | 2018-05-11 10:41:41 -0400 | [diff] [blame] | 44 | void account_creation_wizard_show_preview (AccountCreationWizard *win, gboolean show_preview = TRUE); |
| 45 | void account_creation_wizard_cancel (AccountCreationWizard *win); |
Sébastien Blin | 61c19d1 | 2018-05-16 12:55:34 -0400 | [diff] [blame^] | 46 | void account_creation_wizard_account_added (AccountCreationWizard *view, AccountInfoPointer const & accountInfo); |
| 47 | void account_creation_show_error_view (AccountCreationWizard *view, const std::string& id); |
Hugo Lefeuvre | 24356d4 | 2018-05-11 10:41:41 -0400 | [diff] [blame] | 48 | |
aviau | 6aeb485 | 2016-08-18 16:01:09 -0400 | [diff] [blame] | 49 | G_END_DECLS |