Soprano  2.9.4
indexqueryhit.h
Go to the documentation of this file.
1 /*
2  * This file is part of Soprano Project.
3  *
4  * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef _SORPANO_INDEX_QUERY_HIT_H_
23 #define _SORPANO_INDEX_QUERY_HIT_H_
24 
25 #include "soprano_export.h"
26 
27 #include <QtCore/QSharedDataPointer>
28 
29 namespace Soprano {
30 
31  class Node;
32 
33  namespace Index {
41  {
42  public:
47 
51  QueryHit( const QueryHit& );
52 
58  QueryHit( const Node& resource, double score );
59 
64 
66 
67  double score() const;
68  Node resource() const;
69 
70  private:
71  class Private;
73  };
74  }
75 }
76 
77 #endif
QueryHit represents a hit from an IndexFilterModel query. It basically is an RDF resource combined wi...
Definition: indexqueryhit.h:41
QueryHit(const QueryHit &)
QueryHit & operator=(const QueryHit &)
QueryHit(const Node &resource, double score)
A Node represents one RDF resource.
Definition: node.h:54
SOPRANO_EXPORT QUrl score()
#define SOPRANO_INDEX_EXPORT