• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • sources
  • kde-4.12
  • kdelibs
  • nepomuk-core
  • services
  • storage
  • migrator
wizard.h
Go to the documentation of this file.
1 /*
2  * <one line to give the library's name and an idea of what it does.>
3  * Copyright 2013 Vishesh Handa <me@vhanda.in>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License or (at your option) version 3 or any later version
9  * accepted by the membership of KDE e.V. (or its successor approved
10  * by the membership of KDE e.V.), which shall act as a proxy
11  * defined in Section 14 of version 3 of the license.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef NEPOMUK2_MIGRATIONWIZARD_H
24 #define NEPOMUK2_MIGRATIONWIZARD_H
25 
26 #include "ui_errorpage.h"
27 #include "storageinterface.h"
28 
29 #include <QtGui/QWizard>
30 #include <QtGui/QWizardPage>
31 #include <QRadioButton>
32 #include <QGroupBox>
33 #include <QProgressBar>
34 
35 typedef org::kde::nepomuk::Storage StorageService;
36 
37 namespace Nepomuk2 {
38 
39 class MigrationWizard : public QWizard
40 {
41  Q_OBJECT
42 public:
43  explicit MigrationWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0);
44 
45  enum PageIds {
46  Id_MainPage = 0,
47  Id_MigrationPage,
48  Id_FinishPage,
49  Id_ErrorPage
50  };
51  void showError(const QString& error);
52 };
53 
54 
55 class MainPage : public QWizardPage {
56 public:
57  MainPage(QWidget* parent = 0);
58  virtual int nextId() const;
59 private:
60 };
61 
62 class MigrationPage : public QWizardPage {
63  Q_OBJECT
64 public:
65  MigrationPage(QWidget* parent = 0);
66  virtual int nextId() const;
67 
68  virtual void initializePage();
69  virtual bool isComplete() const;
70 
71 private slots:
72  void slotMigrationDone();
73  void slotMigrationPercent(int percent);
74 
75 private:
76  bool m_done;
77  StorageService* m_storageService;
78  QProgressBar* m_progressBar;
79 };
80 
81 class FinishPage : public QWizardPage {
82 public:
83  FinishPage(QWidget* parent = 0);
84  virtual int nextId() const;
85 };
86 
87 class ErrorPage : public QWizardPage, public Ui::ErrorPage {
88  Q_OBJECT
89  Q_PROPERTY(QString errorMessage READ message WRITE setMessage)
90 public:
91  ErrorPage(QWidget* parent = 0);
92 
93  QString message() const;
94 public slots:
95  void setMessage(const QString& message);
96 };
97 
98 }
99 
100 #endif // NEPOMUK2_MIGRATIONWIZARD_H
Nepomuk2::FinishPage
Definition: wizard.h:81
QWizardPage
Nepomuk2::MigrationWizard::Id_ErrorPage
Definition: wizard.h:49
Nepomuk2::MigrationWizard::Id_MigrationPage
Definition: wizard.h:47
Nepomuk2::ErrorPage::ErrorPage
ErrorPage(QWidget *parent=0)
Definition: backupwizardpages.cpp:282
QWidget
Nepomuk2::FinishPage::FinishPage
FinishPage(QWidget *parent=0)
Definition: wizard.cpp:156
StorageService
org::kde::nepomuk::Storage StorageService
Definition: wizard.h:35
Nepomuk2::MigrationPage::isComplete
virtual bool isComplete() const
Definition: wizard.cpp:141
Nepomuk2::MainPage::nextId
virtual int nextId() const
Definition: wizard.cpp:89
Nepomuk2::MainPage
Definition: wizard.h:55
Nepomuk2::MigrationPage::initializePage
virtual void initializePage()
Definition: wizard.cpp:105
Nepomuk2::MigrationWizard
Definition: wizard.h:39
Nepomuk2::MigrationPage
Definition: wizard.h:62
Nepomuk2::ErrorPage::setMessage
void setMessage(const QString &s)
Definition: backupwizardpages.cpp:296
Nepomuk2::ErrorPage::message
QString message() const
Definition: backupwizardpages.cpp:291
Nepomuk2::MainPage::MainPage
MainPage(QWidget *parent=0)
Definition: wizard.cpp:73
Nepomuk2::MigrationPage::nextId
virtual int nextId() const
Definition: wizard.cpp:146
Nepomuk2::MigrationWizard::Id_MainPage
Definition: wizard.h:46
Nepomuk2::FinishPage::nextId
virtual int nextId() const
Definition: wizard.cpp:161
Nepomuk2::ErrorPage
Definition: backupwizardpages.h:136
StorageService
org::kde::nepomuk::Storage StorageService
Definition: systray.h:29
Nepomuk2::MigrationWizard::showError
void showError(const QString &error)
Definition: wizard.cpp:63
Nepomuk2::MigrationWizard::PageIds
PageIds
Definition: wizard.h:45
Nepomuk2::ErrorPage::errorMessage
QString errorMessage
Definition: backupwizardpages.h:138
Nepomuk2::MigrationPage::MigrationPage
MigrationPage(QWidget *parent=0)
Definition: wizard.cpp:99
Nepomuk2::MigrationWizard::MigrationWizard
MigrationWizard(QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: wizard.cpp:39
Nepomuk2::MigrationWizard::Id_FinishPage
Definition: wizard.h:48
QWizard
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal