NepomukDaemons
nepomukfilewatch.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_FILE_WATCH_H_
00020 #define _NEPOMUK_FILE_WATCH_H_
00021
00022 #include <Nepomuk/Service>
00023
00024 #include <QtCore/QUrl>
00025 #include <QtCore/QVariant>
00026
00027 namespace Soprano {
00028 class Model;
00029 namespace Client {
00030 class DBusClient;
00031 }
00032 }
00033
00034 class KUrl;
00035
00036 namespace Nepomuk {
00037 class FileWatch : public Service
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 FileWatch( QObject* parent, const QVariantList& );
00043 ~FileWatch();
00044
00045 Q_SIGNALS:
00046
00047 void fileMoved( const QString& from, const QString& to );
00048 void filesDeleted( const QStringList& path );
00049
00050 private Q_SLOTS:
00051 void slotFileMoved( const QString& from, const QString& to );
00052 void slotFileDeleted( const QString& path );
00053 void slotFilesDeleted( const QStringList& path );
00054
00055 private:
00056 void removeMetaData( const KUrl& );
00057 void updateMetaData( const KUrl& from, const KUrl& to );
00058
00059 QUrl m_strigiParentUrlUri;
00060 };
00061 }
00062
00063 #endif