NepomukDaemons
strigicontroller.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _NEPOMUK_STRIGI_CONTROLLER_H_
00020 #define _NEPOMUK_STRIGI_CONTROLLER_H_
00021
00022 #include <QtCore/QObject>
00023 #include <KProcess>
00024
00025
00026 namespace Nepomuk {
00027 class StrigiController : public QObject
00028 {
00029 Q_OBJECT
00030
00031 public:
00032 StrigiController( QObject* parent = 0 );
00033 ~StrigiController();
00034
00035 enum State {
00036 Idle,
00037 StartingUp,
00038 Running,
00039 ShuttingDown
00040 };
00041
00042 State state() const;
00043
00044 public Q_SLOTS:
00045 bool start();
00046 void shutdown();
00047
00048 static bool isRunning();
00049
00050 private Q_SLOTS:
00051 void slotProcessFinished( int exitCode, QProcess::ExitStatus exitStatus );
00052 void slotRunning5Minutes();
00053 void slotStartStrigiIndexing();
00054
00055 private:
00056 KProcess* m_strigiProcess;
00057 bool m_running5Minutes;
00058 State m_state;
00059 };
00060 }
00061
00062 #endif