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

Nepomuk

result.h

Go to the documentation of this file.
00001 /*
00002    This file is part of the Nepomuk KDE project.
00003    Copyright (C) 2008-2010 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 version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef _NEPOMUK_QUERY_RESULT_H_
00021 #define _NEPOMUK_QUERY_RESULT_H_
00022 
00023 #include <QtCore/QSharedDataPointer>
00024 #include <QtCore/QUrl>
00025 #include <QtCore/QList>
00026 #include <QtCore/QHash>
00027 
00028 #include <Soprano/Statement>
00029 #include <Soprano/BindingSet>
00030 
00031 #include "nepomukquery_export.h"
00032 
00033 namespace Nepomuk {
00034 
00035     class Resource;
00036     class Variant;
00037     namespace Types {
00038         class Property;
00039     }
00040 
00041     namespace Query {
00057         class NEPOMUKQUERY_EXPORT Result
00058         {
00059         public:
00063             Result();
00064 
00071             Result( const Nepomuk::Resource& resource, double score = 0.0 );
00072 
00076             Result( const Result& );
00077 
00081             ~Result();
00082 
00086             Result& operator=( const Result& );
00087 
00097             double score() const;
00098 
00102             Resource resource() const;
00103 
00112             void setScore( double score );
00113 
00119             void addRequestProperty( const Types::Property& property, const Soprano::Node& value );
00120 
00126             QHash<Types::Property, Soprano::Node> requestProperties() const;
00127 
00133             Soprano::Node operator[]( const Types::Property& property ) const;
00134 
00140             Soprano::Node requestProperty( const Types::Property& property ) const;
00141 
00151             void setAdditionalBindings( const Soprano::BindingSet& bindings );
00152 
00159             Soprano::BindingSet additionalBindings() const;
00160 
00183             Variant additionalBinding( const QString& name ) const;
00184 
00193             void setExcerpt( const QString& text );
00194 
00207             QString excerpt() const;
00208 
00212             bool operator==( const Result& ) const;
00213 
00214         private:
00215             class Private;
00216             QSharedDataPointer<Private> d;
00217         };
00218     }
00219 }
00220 
00221 #endif

Nepomuk

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal