Nepomuk-Core
resourcewatcher.cpp
Go to the documentation of this file.
101 // Watch for the RW service to (re-)appear and then re-connect to make sure we always get updates
102 // We create this watcher even if we fail to connect below. Thus, once the rw service comes up we
110 QDBusPendingReply<QDBusObjectPath> reply = d->m_watchManagerInterface->watch( uris, props, types_ );
131 d->m_connectionInterface = new org::kde::nepomuk::ResourceWatcherConnection( "org.kde.NepomukStorage",
134 connect( d->m_connectionInterface, SIGNAL(propertyChanged(QString,QString,QVariantList,QVariantList)),
275 void Nepomuk2::ResourceWatcher::setProperties(const QList< Nepomuk2::Types::Property >& properties_)
311 void Nepomuk2::ResourceWatcher::slotResourceCreated(const QString &res, const QStringList &types)
316 void Nepomuk2::ResourceWatcher::slotResourceRemoved(const QString &res, const QStringList &types)
321 void Nepomuk2::ResourceWatcher::slotResourceTypesAdded(const QString &res, const QStringList &types)
328 void Nepomuk2::ResourceWatcher::slotResourceTypesRemoved(const QString &res, const QStringList &types)
346 void Nepomuk2::ResourceWatcher::slotPropertyChanged(const QString& res_, const QString& prop_, const QVariantList& addedObjs, const QVariantList& removedObjs)
QList< Nepomuk2::Resource > resources() const
The resources that have been configured via addResource() and setResources().
Definition: resourcewatcher.cpp:243
QList< Types::Property > properties() const
The properties that have been configured via addProperty() and setProperties().
Definition: resourcewatcher.cpp:235
void setProperties(const QList< Types::Property > &properties_)
Set the properties to be watched.
Definition: resourcewatcher.cpp:275
void removeResource(const Nepomuk2::Resource &res)
Remove a resource to be watched.
Definition: resourcewatcher.cpp:214
void setResources(const QList< Nepomuk2::Resource > &resources_)
Set the resources to be watched.
Definition: resourcewatcher.cpp:287
QList< Types::Class > types() const
The types that have been configured via addType() and setTypes().
Definition: resourcewatcher.cpp:251
void addProperty(const Types::Property &property)
Add a property to be watched.
Definition: resourcewatcher.cpp:176
Literal literalRangeType()
If the rage of this property is a literal (i.e.
Definition: libnepomukcore/types/property.cpp:271
int propertyCount() const
Return the number of properties that are being watched.
Definition: resourcewatcher.cpp:259
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: libnepomukcore/types/property.h:52
static ResourceManager * instance()
Definition: resourcemanager.cpp:270
static Resource fromResourceUri(const KUrl &uri, const Nepomuk2::Types::Class &type=Nepomuk2::Types::Class())
Allows to quickly load a resource from its resource URI without any additional checks.
Definition: resource.cpp:743
void removeProperty(const Types::Property &property)
Remove a property to be watched.
Definition: resourcewatcher.cpp:206
void removeType(const Types::Class &type)
Remove a type to be watched.
Definition: resourcewatcher.cpp:227
void addResource(const Nepomuk2::Resource &res)
Add a resource to be watched.
Definition: resourcewatcher.cpp:184
void setTypes(const QList< Types::Class > &types_)
Set the types to be watched.
Definition: resourcewatcher.cpp:299
int resourceCount() const
Return the number of resources that are being watched.
Definition: resourcewatcher.cpp:264
int typeCount() const
Return the number of types that are being watched.
Definition: resourcewatcher.cpp:269
ResourceWatcher(QObject *parent=0)
Create a new ResourceWatcher instance.
Definition: resourcewatcher.cpp:72
This file is part of the KDE documentation.
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
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.