Nepomuk
Nepomuk::Tag Class Reference
#include <Nepomuk/Tag>
Inheritance diagram for Nepomuk::Tag:

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.
Definition at line 42 of file tag.h.
Public Member Functions | |
| Tag & | operator= (const Tag &) |
| Tag (const QUrl &uri) | |
| Tag (const QString &uriOrIdentifier) | |
| Tag (const Resource &) | |
| Tag (const Tag &) | |
| Tag () | |
| QList< Resource > | tagOf () const |
| ~Tag () | |
Static Public Member Functions | |
| static QList< Tag > | allTags () |
| static QString | resourceTypeUri () |
Protected Member Functions | |
| Tag (const QUrl &uri, const QUrl &type) | |
| Tag (const QString &uri, const QUrl &type) | |
Constructor & Destructor Documentation
| Nepomuk::Tag::Tag | ( | ) |
Create a new empty and invalid Tag instance.
| Nepomuk::Tag::Tag | ( | const Tag & | ) |
Default copy constructor.
| Nepomuk::Tag::Tag | ( | const Resource & | ) |
| Nepomuk::Tag::Tag | ( | const QString & | uriOrIdentifier | ) |
Create a new Tag instance representing the resource referenced by uriOrIdentifier.
| Nepomuk::Tag::Tag | ( | const QUrl & | uri | ) |
Create a new Tag instance representing the resource referenced by uri.
| Nepomuk::Tag::~Tag | ( | ) |
| Nepomuk::Tag::Tag | ( | const QString & | uri, | |
| const QUrl & | type | |||
| ) | [protected] |
| Nepomuk::Tag::Tag | ( | const QUrl & | uri, | |
| const QUrl & | type | |||
| ) | [protected] |
Member Function Documentation
| static QList<Tag> Nepomuk::Tag::allTags | ( | ) | [static] |
| static QString Nepomuk::Tag::resourceTypeUri | ( | ) | [static] |
- Returns:
- The URI of the resource type that is used in Tag instances.
| QList<Resource> Nepomuk::Tag::tagOf | ( | ) | const |
Get all resources that have this resource set as property 'Tag'.
Each Resource can be tagged with an arbitrary number of Tags. This allows a simple grouping of resources.
The documentation for this class was generated from the following file:
KDE 4.1 API Reference