Nepomuk
thing.h
Go to the documentation of this file.00001 /* 00002 * This file is part of the Nepomuk KDE project. 00003 * Copyright (C) 2008 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 _NEPOMUK_THING_H_ 00022 #define _NEPOMUK_THING_H_ 00023 00024 #include "resource.h" 00025 #include "nepomuk_export.h" 00026 00027 // FIXME: (Would it even make sense to check in Nepomuk::Resource if a resource is a pimo:Thing and if so, 00028 // use the PIMO context? Or should we handle that through the Nepomuk::PimoThing class?) 00029 00030 namespace Nepomuk { 00057 class NEPOMUK_EXPORT Thing : public Resource 00058 { 00059 public: 00070 Thing( const QUrl& uri = QUrl(), const QUrl& pimoType = QUrl() ); 00071 00084 Thing( const QString& uriOrName, const QUrl& pimoType = QUrl() ); 00085 00089 Thing( const Thing& other ); 00090 00096 Thing( const Resource& other ); 00097 00101 Thing( ResourceData* ); 00102 00106 ~Thing(); 00107 00111 Thing& operator=( const Thing& res ); 00112 00116 Thing& operator=( const Resource& res ); 00117 00121 Thing& operator=( const QUrl& res ); 00122 00134 QList<Resource> groundingOccurrences() const; 00135 00136 QList<Resource> referencingOccurrences() const; 00137 00138 QList<Resource> occurrences() const; 00139 00151 // void merge( Thing other ); 00152 }; 00153 } 00154 00155 #endif