~ubuntu-branches/ubuntu/oneiric/soprano/oneiric-proposed

« back to all changes in this revision

Viewing changes to .pc/redland_raptor2_support.h/backends/redland/redlandqueryresult.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-08-05 12:08:04 UTC
  • mfrom: (1.1.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20110805120804-6pixm5dccrh1rvbt
Tags: 2.7.0+dfsg.1-0ubuntu1
* New upstream release.
* Refresh symbols.
* Build-depend on libraptor2-dev >= 2.0.4 instead of libraptor1-dev.
* Drop redland_raptor2_support.h patch, not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
2
 
 * This file is part of Soprano Project.
3
 
 *
4
 
 * Copyright (C) 2006 Daniele Galdi <daniele.galdi@gmail.com>
5
 
 * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Library General Public
9
 
 * License as published by the Free Software Foundation; either
10
 
 * version 2 of the License, or (at your option) any later version.
11
 
 *
12
 
 * This library is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
 * Library General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU Library General Public License
18
 
 * along with this library; see the file COPYING.LIB.  If not, write to
19
 
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
 
 * Boston, MA 02110-1301, USA.
21
 
 */
22
 
 
23
 
#ifndef SOPRANO_BACKEND_REDLAND_QUERY_RESULT_H
24
 
#define SOPRANO_BACKEND_REDLAND_QUERY_RESULT_H
25
 
 
26
 
#include <redland.h>
27
 
#include <QString>
28
 
 
29
 
#include "queryresultiteratorbackend.h"
30
 
 
31
 
namespace Soprano {
32
 
    class Node;
33
 
    class Model;
34
 
 
35
 
    namespace Redland {
36
 
    class RedlandModel;
37
 
 
38
 
    class RedlandQueryResult: public Soprano::QueryResultIteratorBackend
39
 
        {
40
 
        public:
41
 
        RedlandQueryResult( const RedlandModel* model, librdf_query_results *result );
42
 
 
43
 
        ~RedlandQueryResult();
44
 
 
45
 
        bool next();
46
 
    
47
 
        Statement currentStatement() const;
48
 
 
49
 
        Soprano::Node binding( const QString &name ) const;
50
 
 
51
 
        Soprano::Node binding( int offset ) const;
52
 
 
53
 
        int bindingCount() const;
54
 
 
55
 
        QStringList bindingNames() const;
56
 
 
57
 
        bool isGraph() const;
58
 
 
59
 
        bool isBinding() const;
60
 
 
61
 
        bool isBool() const;
62
 
 
63
 
        bool boolValue() const;
64
 
 
65
 
        void close();
66
 
 
67
 
        private:
68
 
        class Private;
69
 
        Private *d;
70
 
        };
71
 
 
72
 
    }
73
 
}
74
 
 
75
 
#endif // SOPRANO_BACKEND_REDLAND_QUERY_RESULT_H
76