Nepomuk
tag.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _TAG_H_
00022 #define _TAG_H_
00023
00024 #include "resource.h"
00025 #include "nepomuk_export.h"
00026
00027 namespace Nepomuk {
00028
00038 class NEPOMUK_EXPORT Tag : public Resource
00039 {
00040 public:
00044 Tag();
00045
00054 Tag( ResourceManager* manager );
00055
00059 Tag( const Tag& );
00060
00064 Tag( const Resource& );
00065
00070 Tag( const QString& uriOrIdentifier );
00071
00081 Tag( const QString& uriOrIdentifier, ResourceManager* manager );
00082
00087 Tag( const QUrl& uri );
00088
00098 Tag( const QUrl& uri, ResourceManager* manager );
00099
00103 ~Tag();
00104
00105 Tag& operator=( const Tag& );
00106
00112 QList<Resource> tagOf() const;
00113
00121 static QList<Tag> allTags();
00122
00123
00127 static QString resourceTypeUri();
00128
00129 protected:
00130 Tag( const QString& uri, const QUrl& type );
00131 Tag( const QUrl& uri, const QUrl& type );
00132
00136 Tag( const QString& uri, const QUrl& type, ResourceManager* manager );
00137
00141 Tag( const QUrl& uri, const QUrl& type, ResourceManager* manager );
00142 };
00143 }
00144
00145 #endif