Nepomuk
resourcemanager.h
Go to the documentation of this file.
180 KDE_DEPRECATED QList<Resource> allResourcesWithProperty( const QString& uri, const Variant& v );
270 void slotPropertyAdded(const Nepomuk::Resource &res, const Nepomuk::Types::Property &prop, const QVariant &value);
271 void slotPropertyRemoved(const Nepomuk::Resource &res, const Nepomuk::Types::Property &prop, const QVariant &value);
The ResourceManager is the central Nepomuk configuration point.
Definition: resourcemanager.h:56
QList< Resource > allResourcesWithProperty(const QUrl &uri, const Variant &v)
Retrieve a list of all resources that have property uri defined with a value of v.
void error(const QString &uri, int errorCode)
Whenever a problem occurs (like for example failed resource syncing) this signal is emitted.
Resource createResourceFromUri(const QString &uri)
static ResourceManager * instance()
QList< Resource > allResourcesOfType(const QUrl &type)
Retrieve a list of all resources of the specified type.
QList< Resource > allResources()
Retrieve a list of all resource managed by this manager.
void removeResource(const QString &uri)
Remove the resource denoted by uri completely.
void resourceModified(const QString &uri)
This signal gets emitted whenever a Resource changes due to a sync procedure.
void deleteInstance()
In KDE 4.3 support for multiple ResourceManager instances has been introduced.
QUrl generateUniqueUri(const QString &label)
Generates a unique URI that is not used in the store yet.
QString generateUniqueUri()
QList< Resource > allResourcesOfType(const QString &type)
void setOverrideMainModel(Soprano::Model *model)
Override the main model used for all storage.
void clearCache()
ResourceManager caches resource locally so subsequent access is faster.
static ResourceManager * createManagerForModel(Soprano::Model *model)
Create a new ResourceManager instance which uses model as its override model.
Soprano::Model * mainModel()
Retrieve the main data storage model.
void nepomukSystemStopped()
Emitted once the Nepomuk system goes down.
bool initialized() const
void nepomukSystemStarted()
Emitted once the Nepomuk system is up and can be used.
void notifyError(const QString &uri, int errorCode)
QList< Resource > allResourcesWithProperty(const QString &uri, const Variant &v)
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: property.h:53
The Nepomuk Variant extends over QVariant by introducing direct support for Resource embedding,...
Definition: variant.h:66
Definition: nepomukservice.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.