• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

result.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 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_SEARCH_RESULT_H_
00021 #define _NEPOMUK_SEARCH_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 
00030 #include <nepomuk/nepomuk_export.h>
00031 
00032 namespace Nepomuk {
00033     namespace Search {
00041         class NEPOMUK_EXPORT Result
00042         {
00043         public:
00044             Result();
00045             Result( const QUrl& uri, double score = 0.0 );
00046             Result( const Result& );
00047             ~Result();
00048 
00049             Result& operator=( const Result& );
00050 
00051             double score() const;
00052             QUrl resourceUri() const;
00053 
00054             void setScore( double score );
00055 
00056             void addRequestProperty( const QUrl& property, const Soprano::Node& value );
00057 
00058             QHash<QUrl, Soprano::Node> requestProperties() const;
00059 
00060             Soprano::Node operator[]( const QUrl& property ) const;
00061             Soprano::Node requestProperty( const QUrl& property ) const;
00062 
00063             bool operator==( const Result& ) const;
00064 
00065         private:
00066             class Private;
00067             QSharedDataPointer<Private> d;
00068         };
00069     }
00070 }
00071 
00072 #endif

NepomukDaemons

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

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.7
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