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 namespace Nepomuk {
00025 class Resource;
00026 }
00027
00028 #include "resource.h"
00029 #include <nepomuk/nepomuk_export.h>
00030
00031 namespace Nepomuk {
00032
00042 class NEPOMUK_EXPORT Tag : public Resource
00043 {
00044 public:
00048 Tag();
00052 Tag( const Tag& );
00053 Tag( const Resource& );
00058 Tag( const QString& uriOrIdentifier );
00063 Tag( const QUrl& uri );
00064 ~Tag();
00065
00066 Tag& operator=( const Tag& );
00067
00073 QList<Resource> tagOf() const;
00074
00082 static QList<Tag> allTags();
00083
00084
00088 static QString resourceTypeUri();
00089
00090 protected:
00091 Tag( const QString& uri, const QUrl& type );
00092 Tag( const QUrl& uri, const QUrl& type );
00093 };
00094 }
00095
00096 #endif