akonadi
firstrun.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_FIRSTRUN_H
00021 #define AKONADI_FIRSTRUN_H
00022
00023 #include <QObject>
00024 #include <QStringList>
00025 #include <QVariant>
00026
00027 class KConfig;
00028 class KJob;
00029 class KProcess;
00030 class QMetaObject;
00031
00032 namespace Akonadi {
00033
00067 class Firstrun : public QObject
00068 {
00069 Q_OBJECT
00070 public:
00071 Firstrun( QObject * parent = 0 );
00072 ~Firstrun();
00073
00074 private:
00075 void findPendingDefaults();
00076 void setupNext();
00077 void migrateKresType( const QString &resourceFamily );
00078 static QVariant::Type argumentType( const QMetaObject *mo, const QString &method );
00079
00080 private slots:
00081 void instanceCreated( KJob* job );
00082 void migrationFinished( int exitCode );
00083
00084 private:
00085 QStringList mPendingDefaults;
00086 KConfig *mConfig;
00087 KConfig *mCurrentDefault;
00088 KProcess *mProcess;
00089 QString mResourceFamily;
00090 };
00091
00092 }
00093
00094 #endif
00095