Nepomuk-Core
#include <resourcewatchermanager.h>
Public Slots | |
ResourceWatcherConnection * | createConnection (const QList< QUrl > &resources, const QList< QUrl > &properties, const QList< QUrl > &types) |
Q_SCRIPTABLE QDBusObjectPath | watch (const QStringList &resources, const QStringList &properties, const QStringList &types) |
Signals | |
Q_SCRIPTABLE void | somethingChanged () |
Public Member Functions | |
ResourceWatcherManager (DataManagementModel *parent=0) | |
~ResourceWatcherManager () | |
void | changeProperty (const QUrl &res, const QUrl &property, const QList< Soprano::Node > &addedValues, const QList< Soprano::Node > &removedValues) |
void | changeProperty (const QMultiHash< QUrl, Soprano::Node > &oldValues, const QUrl &property, const QList< Soprano::Node > &nodes) |
void | changeSomething () |
void | createResource (const QUrl &uri, const QSet< QUrl > &types) |
void | removeResource (const QUrl &uri, const QList< QUrl > &types) |
Detailed Description
Definition at line 38 of file resourcewatchermanager.h.
Constructor & Destructor Documentation
Nepomuk2::ResourceWatcherManager::ResourceWatcherManager | ( | DataManagementModel * | parent = 0 | ) |
Definition at line 101 of file resourcewatchermanager.cpp.
Nepomuk2::ResourceWatcherManager::~ResourceWatcherManager | ( | ) |
Definition at line 111 of file resourcewatchermanager.cpp.
Member Function Documentation
void Nepomuk2::ResourceWatcherManager::changeProperty | ( | const QUrl & | res, |
const QUrl & | property, | ||
const QList< Soprano::Node > & | addedValues, | ||
const QList< Soprano::Node > & | removedValues | ||
) |
Definition at line 125 of file resourcewatchermanager.cpp.
void Nepomuk2::ResourceWatcherManager::changeProperty | ( | const QMultiHash< QUrl, Soprano::Node > & | oldValues, |
const QUrl & | property, | ||
const QList< Soprano::Node > & | nodes | ||
) |
Definition at line 221 of file resourcewatchermanager.cpp.
void Nepomuk2::ResourceWatcherManager::changeSomething | ( | ) |
to be called whenever something changes (preferably after calling any of the above)
Definition at line 279 of file resourcewatchermanager.cpp.
|
slot |
Used internally by watch() and by the unit tests to create watcher connections.
Definition at line 286 of file resourcewatchermanager.cpp.
void Nepomuk2::ResourceWatcherManager::createResource | ( | const QUrl & | uri, |
const QSet< QUrl > & | types | ||
) |
Definition at line 233 of file resourcewatchermanager.cpp.
void Nepomuk2::ResourceWatcherManager::removeResource | ( | const QUrl & | uri, |
const QList< QUrl > & | types | ||
) |
Definition at line 252 of file resourcewatchermanager.cpp.
|
signal |
A special signal which is emitted whenever something changes in the store.
Normally specifying in detail what to watch for by creating a connection is recommended. However, if one really wants to watch for any changes at all this signal is more efficient than a connection since it wraps several changes done with one command into one notification.
|
slot |
The main DBus methods exposed by the ResourceWatcher.
Definition at line 313 of file resourcewatchermanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.