Nepomuk-Core
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
Nepomuk2::Tag Class Reference
#include <Nepomuk2/Tag>
Inheritance diagram for Nepomuk2::Tag:
Public Member Functions | |
Tag () | |
Tag (const Tag &) | |
Tag (const Resource &) | |
Tag (const QString &uriOrIdentifier) | |
Tag (const QUrl &uri) | |
~Tag () | |
Tag & | operator= (const Tag &) |
QList< Resource > | tagOf () const |
Public Member Functions inherited from Nepomuk2::Resource | |
Resource () | |
Resource (const Resource &) | |
Resource (const QString &pathOrIdentifier, const QUrl &type=QUrl()) | |
Resource (const QUrl &uri, const QUrl &type=QUrl()) | |
Resource (ResourceData *) | |
virtual | ~Resource () |
void | addIdentifier (const QString &value) |
void | addIsRelated (const Resource &value) |
void | addProperty (const QUrl &uri, const Variant &value) |
void | addSymbol (const QString &value) |
void | addTag (const Tag &value) |
void | addType (const QUrl &type) |
QString | description () const |
bool | exists () const |
QString | genericDescription () const |
QString | genericIcon () const |
QString | genericLabel () const |
bool | hasProperty (const QUrl &uri) const |
bool | hasProperty (const Types::Property &p, const Variant &v) const |
bool | hasType (const QUrl &typeUri) const |
QStringList | identifiers () const |
void | increaseUsageCount () |
bool | isFile () const |
QList< Resource > | isRelatedOf () const |
QList< Resource > | isRelateds () const |
bool | isValid () const |
QString | label () const |
bool | operator!= (const Resource &) const |
Resource & | operator= (const Resource &other) |
Resource & | operator= (const QUrl &uri) |
bool | operator== (const Resource &) const |
QHash< QUrl, Variant > | properties () const |
Variant | property (const QUrl &uri) const |
quint32 | rating () const |
void | remove () |
void | removeProperty (const QUrl &uri) |
void | removeProperty (const QUrl &uri, const Variant &value) |
void | setDescription (const QString &value) |
void | setIdentifiers (const QStringList &value) |
void | setIsRelateds (const QList< Resource > &value) |
void | setLabel (const QString &value) |
void | setProperty (const QUrl &uri, const Variant &value) |
void | setRating (const quint32 &value) |
void | setSymbols (const QStringList &value) |
void | setTags (const QList< Tag > &value) |
void | setTypes (const QList< QUrl > &types) |
void | setWatchEnabled (bool status) |
QStringList | symbols () const |
QList< Tag > | tags () const |
File | toFile () const |
QUrl | type () const |
QList< QUrl > | types () const |
QUrl | uri () const |
int | usageCount () const |
bool | watchEnabled () |
Static Public Member Functions | |
static QList< Tag > | allTags () |
Static Public Member Functions inherited from Nepomuk2::Resource | |
static Resource | fromResourceUri (const KUrl &uri, const Nepomuk2::Types::Class &type=Nepomuk2::Types::Class()) |
Protected Member Functions | |
Tag (const QString &uri, const QUrl &type) | |
Tag (const QUrl &uri, const QUrl &type) | |
Detailed Description
A Tag can be assigned to any Thing.
This allows simple grouping of resources. Each Tag is identifed by its label which should be unique.
Constructor & Destructor Documentation
Nepomuk2::Tag::Tag | ( | ) |
Nepomuk2::Tag::Tag | ( | const Tag & | res | ) |
Nepomuk2::Tag::Tag | ( | const Resource & | res | ) |
Nepomuk2::Tag::Tag | ( | const QString & | uriOrIdentifier | ) |
Nepomuk2::Tag::Tag | ( | const QUrl & | uri | ) |
|
protected |
|
protected |
Member Function Documentation
|
static |
Retrieve a list of all available Tag resources.
This list consists of all resource of type Tag that are stored in the local Nepomuk meta data storage and any changes made locally. Be aware that in some cases this list can get very big.
In those cases it might be better to use the asyncronous approach via Query::QueryServiceClient and a Query::ResourceTypeTerm with type Soprano::Vocabulary::NAO::Tag().
Nepomuk2::Tag & Nepomuk2::Tag::operator= | ( | const Tag & | res | ) |
QList< Nepomuk2::Resource > Nepomuk2::Tag::tagOf | ( | ) | const |
The documentation for this class was generated from the following files:
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.