1 /*
2  * Copyright (C) by Klaas Freitag <freitag@owncloud.com>
3  * Copyright (C) by Krzesimir Nowak <krzesimir@endocode.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 2 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, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13  * for more details.
14  */
15 
16 #ifndef MIRALL_OWNCLOUD_WIZARD_COMMON_H
17 #define MIRALL_OWNCLOUD_WIZARD_COMMON_H
18 
19 #include <QString>
20 
21 class QVariant;
22 class QLabel;
23 class QRadioButton;
24 class QSpinBox;
25 class QCheckBox;
26 class QAbstractButton;
27 
28 namespace OCC {
29 
30 namespace WizardCommon {
31 
32     void setupCustomMedia(const QVariant &variant, QLabel *label);
33     QString titleTemplate();
34     QString subTitleTemplate();
35     void initErrorLabel(QLabel *errorLabel);
36     void customizeHintLabel(QLabel *label);
37 
38     enum SyncMode {
39         SelectiveMode,
40         BoxMode
41     };
42 
43     enum Pages {
44         Page_Welcome,
45         Page_ServerSetup,
46         Page_HttpCreds,
47         Page_OAuthCreds,
48         Page_Flow2AuthCreds,
49 #ifdef WITH_WEBENGINE
50         Page_WebView,
51 #endif // WITH_WEBENGINE
52         Page_AdvancedSetup,
53     };
54 
55 } // ns WizardCommon
56 
57 } // namespace OCC
58 
59 #endif // MIRALL_OWNCLOUD_WIZARD_COMMON_H
60