Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / runtime / nepomuk / strigibackend / util.h
blobe8e67b1e452b45be3219ac94746ae9c7078e358f
1 /*
2 $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
4 This file is part of the Strigi project.
5 Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of
10 the License, or (at your option) any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with this library; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #ifndef _STRIGI_SOPRNOA_UTIL_H_
24 #define _STRIGI_SOPRNOA_UTIL_H_
26 #include <string>
27 #include "tstring.h"
29 class QUrl;
30 namespace Soprano {
31 class Model;
32 class Node;
35 namespace Strigi {
37 class Variant;
39 namespace Soprano {
40 namespace Util {
41 QUrl fieldUri( const std::string& s );
42 QUrl fileUrl( const std::string& filename );
43 std::string fieldName( const QUrl& uri );
44 TString convertSearchField( const std::string& field );
45 QUrl uniqueUri( const QString& ns, ::Soprano::Model* model );
46 Strigi::Variant nodeToVariant( const ::Soprano::Node& node );
51 #endif