Soprano  2.9.2
sopranotypes.h
Go to the documentation of this file.
1 /* This file is part of Soprano
2  *
3  * Copyright (C) 2006 Daniele Galdi <daniele.galdi@gmail.com>
4  * Copyright (C) 2007-2012 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 _SOPRANO_TYPES_H_
23 #define _SOPRANO_TYPES_H_
24 
25 #include "soprano_export.h"
26 
27 #include <QtCore/QFlags>
28 #include <QtCore/QString>
29 
30 namespace Soprano
31 {
37  // FIXME: what about the used charsets? Should we and if so, how should we include them?
38  // FIXME: SerializationUnknown and SerializationUser should become the same, i.e. one should become deprecated
48  };
49  Q_DECLARE_FLAGS(RdfSerializations, RdfSerialization)
50 
51 
61  SOPRANO_EXPORT QString serializationMimeType( RdfSerialization serialization, const QString& userSerialization = QString() );
62 
69  SOPRANO_EXPORT RdfSerialization mimeTypeToSerialization( const QString& mimetype );
70 
87  };
88  Q_DECLARE_FLAGS( BackendOptions, BackendOption )
89 
90 
117  };
118  Q_DECLARE_FLAGS( BackendFeatures, BackendFeature )
119 
120 
121  namespace Query {
139  QueryLanguageUser = 0x1000,
145  };
146  Q_DECLARE_FLAGS( QueryLanguages, QueryLanguage )
147 
148 
158  SOPRANO_EXPORT QString queryLanguageToString( Soprano::Query::QueryLanguage lang, const QString& userQueryLanguage = QString() );
159 
167  SOPRANO_EXPORT QueryLanguage queryLanguageFromString( const QString& queryLanguage );
168  }
169 }
170 
171 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::RdfSerializations)
172 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::BackendOptions)
173 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::BackendFeatures)
174 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::Query::QueryLanguages)
175 
176 #endif
RdfSerialization
Definition: sopranotypes.h:39
SOPRANO_EXPORT QString serializationMimeType(RdfSerialization serialization, const QString &userSerialization=QString())
SOPRANO_EXPORT RdfSerialization mimeTypeToSerialization(const QString &mimetype)
SOPRANO_EXPORT QString queryLanguageToString(Soprano::Query::QueryLanguage lang, const QString &userQueryLanguage=QString())
SOPRANO_EXPORT QueryLanguage queryLanguageFromString(const QString &queryLanguage)
#define SOPRANO_EXPORT