NepomukDaemons
result.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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