Nepomuk
tag.h
Go to the documentation of this file.
00001 /* 00002 * This file is part of the Nepomuk KDE project. 00003 * Copyright (C) 2007-2009 Sebastian Trueg <trueg@kde.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public License 00016 * along with this library; see the file COPYING.LIB. If not, write to 00017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 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 00124 static QList<Tag> allTags(); 00125 00126 00130 static QString resourceTypeUri(); 00131 00132 protected: 00133 Tag( const QString& uri, const QUrl& type ); 00134 Tag( const QUrl& uri, const QUrl& type ); 00135 00139 Tag( const QString& uri, const QUrl& type, ResourceManager* manager ); 00140 00144 Tag( const QUrl& uri, const QUrl& type, ResourceManager* manager ); 00145 }; 00146 } 00147 00148 #endif
KDE 4.6 API Reference