NepomukDaemons
strigiserviceadaptor.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
00020
00021
00022 #ifndef _STRIGISERVICE_ADAPTOR_H_
00023 #define _STRIGISERVICE_ADAPTOR_H_
00024
00025 #include <QtDBus/QDBusAbstractAdaptor>
00026
00027 namespace Nepomuk {
00028
00029 class IndexScheduler;
00030 class StrigiService;
00031
00032 class StrigiServiceAdaptor: public QDBusAbstractAdaptor
00033 {
00034 Q_OBJECT
00035 Q_CLASSINFO("D-Bus Interface", "org.kde.nepomuk.Strigi")
00036 Q_CLASSINFO("D-Bus Introspection", ""
00037 " <interface name=\"org.kde.nepomuk.Strigi\" >\n"
00038 " <method name=\"isIndexing\" >\n"
00039 " <arg direction=\"out\" type=\"b\" />\n"
00040 " </method>\n"
00041 " <method name=\"isSuspended\" >\n"
00042 " <arg direction=\"out\" type=\"b\" />\n"
00043 " </method>\n"
00044 " <method name=\"currentFolder\" >\n"
00045 " <arg direction=\"out\" type=\"s\" />\n"
00046 " </method>\n"
00047 " <method name=\"suspend\" />\n"
00048 " <method name=\"resume\" />\n"
00049 " <method name=\"updateFolder\" >\n"
00050 " <arg name=\"path\" direction=\"in\" type=\"s\" />\n"
00051 " </method>\n"
00052 " <method name=\"updateAllFolders\" />\n"
00053 " <method name=\"analyzeResource\" >\n"
00054 " <arg name=\"uri\" direction=\"in\" type=\"s\" />\n"
00055 " <arg name=\"lastModificationDate\" direction=\"in\" type=\"u\" />\n"
00056 " <arg name=\"data\" direction=\"in\" type=\"ay\" />\n"
00057 " </method>\n"
00058 " <method name=\"analyzeResourceFromTempFileAndDeleteTempFile\" >\n"
00059 " <arg name=\"uri\" direction=\"in\" type=\"s\" />\n"
00060 " <arg name=\"lastModificationDate\" direction=\"in\" type=\"u\" />\n"
00061 " <arg name=\"tmpFileName\" direction=\"in\" type=\"s\" />\n"
00062 " </method>\n"
00063 " <signal name=\"indexingStarted\" />\n"
00064 " <signal name=\"indexingStopped\" />\n"
00065 " <signal name=\"indexingFolder\" >\n"
00066 " <arg type=\"s\" name=\"path\" />\n"
00067 " </signal>\n"
00068 " </interface>\n"
00069 "")
00070
00071 public:
00072 StrigiServiceAdaptor( IndexScheduler* scheduler, StrigiService* parent );
00073 ~StrigiServiceAdaptor();
00074
00075 public Q_SLOTS:
00076 bool isIndexing();
00077 bool isSuspended();
00078 QString currentFolder();
00079 void resume();
00080 void suspend();
00081 void updateFolder( const QString& path );
00082 void updateAllFolders();
00083 void analyzeResource( const QString& uri, uint mTime, const QByteArray& data );
00084 void analyzeResourceFromTempFileAndDeleteTempFile( const QString& uri, uint mTime, const QString& tmpFile );
00085
00086 Q_SIGNALS:
00087 void indexingFolder( const QString& path );
00088 void indexingStarted();
00089 void indexingStopped();
00090
00091 private:
00092 IndexScheduler* m_indexScheduler;
00093 };
00094 }
00095
00096 #endif