owncloudwizardcommon.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #ifndef MIRALL_OWNCLOUD_WIZARD_COMMON_H
  16. #define MIRALL_OWNCLOUD_WIZARD_COMMON_H
  17. class QVariant;
  18. class QLabel;
  19. class QRadioButton;
  20. class QSpinBox;
  21. class QCheckBox;
  22. class QAbstractButton;
  23. namespace OCC {
  24. namespace WizardCommon {
  25. void setupCustomMedia(const QVariant &variant, QLabel *label);
  26. QString titleTemplate();
  27. QString subTitleTemplate();
  28. void initErrorLabel(QLabel *errorLabel);
  29. void customizeHintLabel(QLabel *label);
  30. enum SyncMode {
  31. SelectiveMode,
  32. BoxMode
  33. };
  34. enum Pages {
  35. Page_Welcome,
  36. Page_ServerSetup,
  37. Page_HttpCreds,
  38. Page_ShibbolethCreds,
  39. Page_OAuthCreds,
  40. Page_Flow2AuthCreds,
  41. Page_WebView,
  42. Page_AdvancedSetup,
  43. Page_Result
  44. };
  45. } // ns WizardCommon
  46. } // namespace OCC
  47. #endif // MIRALL_OWNCLOUD_WIZARD_COMMON_H