32
32
namespace Nepomuk {
34
34
class ResourceWatcherConnection;
36
36
class ResourceWatcherManager : public QObject, protected QDBusContext
39
39
Q_CLASSINFO( "D-Bus Interface", "org.kde.nepomuk.ResourceWatcher" )
42
ResourceWatcherManager( QObject* parent=0 );
42
ResourceWatcherManager( QObject* parent = 0 );
43
~ResourceWatcherManager();
45
void addStatement(const Soprano::Statement &st);
44
46
void addProperty(const Soprano::Node res, const QUrl& property, const Soprano::Node& value);
45
47
void removeProperty(const Soprano::Node res, const QUrl& property, const Soprano::Node& value);
46
48
void createResource(const QUrl& uri, const QList<QUrl>& types);
47
49
void removeResource(const QUrl& uri, const QList<QUrl>& types);
53
* Used internally by watch() and by the unit tests to create watcher connections.
55
ResourceWatcherConnection* createConnection(const QList<QUrl>& resources,
56
const QList<QUrl>& properties,
57
const QList<QUrl>& types );
60
* The main DBus methods exposed by the ResourceWatcher
50
62
Q_SCRIPTABLE QDBusObjectPath watch( const QStringList& resources,
51
63
const QStringList& properties,
52
64
const QStringList& types );