• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk

  • sources
  • kde-4.12
  • kdelibs
  • nepomuk
  • core
thing.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Nepomuk KDE project.
3  * Copyright (C) 2008-2009 Sebastian Trueg <trueg@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef _NEPOMUK_THING_H_
22 #define _NEPOMUK_THING_H_
23 
24 #include "resource.h"
25 #include "nepomuk_export.h"
26 
27 // FIXME: (Would it even make sense to check in Nepomuk::Resource if a resource is a pimo:Thing and if so,
28 // use the PIMO context? Or should we handle that through the Nepomuk::PimoThing class?)
29 
30 namespace Nepomuk {
57  class NEPOMUK_EXPORT Thing : public Resource
58  {
59  public:
70  Thing( const QUrl& uri = QUrl(), const QUrl& pimoType = QUrl() );
71 
80  Thing( const QUrl& uri, const QUrl& pimoType, ResourceManager* manager );
81 
94  Thing( const QString& uriOrName, const QUrl& pimoType = QUrl() );
95 
104  Thing( const QString& uriOrName, const QUrl& pimoType, ResourceManager* manager );
105 
109  Thing( const Thing& other );
110 
116  Thing( const Resource& other );
117 
121  Thing( ResourceData* );
122 
126  ~Thing();
127 
131  Thing& operator=( const Thing& res );
132 
136  Thing& operator=( const Resource& res );
137 
141  Thing& operator=( const QUrl& res );
142 
154  QList<Resource> groundingOccurrences() const;
155 
156  QList<Resource> referencingOccurrences() const;
157 
158  QList<Resource> occurrences() const;
159 
171  void addGroundingOccurrence( const Resource &res );
172 
184 // void merge( Thing other );
185  };
186 }
187 
188 #endif
Nepomuk::Resource
Resource is the central object type in Nepomuk.
Definition: resource.h:94
Nepomuk::ResourceManager
The ResourceManager is the central Nepomuk configuration point.
Definition: resourcemanager.h:55
resource.h
Nepomuk::Thing
A Nepomuk PIMO Thing resource.
Definition: thing.h:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

Skip menu "Nepomuk"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal