Nepomuk
Go to the documentation of this file.
21 #ifndef _NEPOMUK_VARIANT_H_
22 #define _NEPOMUK_VARIANT_H_
24 #include "nepomuk_export.h"
27 #include <QtCore/QDateTime>
28 #include <QtCore/QUrl>
29 #include <QtCore/QVariant>
111 Variant& operator=( qlonglong i );
113 Variant& operator=( qulonglong i );
115 Variant& operator=(
double d );
139 void append(
int i );
140 void append( qlonglong i );
141 void append( uint i );
142 void append( qulonglong i );
143 void append(
bool b );
144 void append(
double d );
145 void append(
const QString&
string );
146 void append(
const QDate& date );
147 void append(
const QTime& time );
148 void append(
const QDateTime& datetime );
149 void append(
const QUrl& url );
158 void append(
const Variant& v );
165 bool operator==(
const Variant& other )
const;
170 bool operator!=(
const Variant& other )
const;
172 bool isValid()
const;
183 int simpleType()
const;
201 bool isInt64()
const;
202 bool isUnsignedInt()
const;
203 bool isUnsignedInt64()
const;
205 bool isDouble()
const;
206 bool isString()
const;
209 bool isDateTime()
const;
211 bool isResource()
const;
213 bool isIntList()
const;
214 bool isInt64List()
const;
215 bool isUnsignedIntList()
const;
216 bool isUnsignedInt64List()
const;
217 bool isBoolList()
const;
218 bool isDoubleList()
const;
219 bool isStringList()
const;
220 bool isDateList()
const;
221 bool isTimeList()
const;
222 bool isDateTimeList()
const;
223 bool isUrlList()
const;
224 bool isResourceList()
const;
242 qlonglong toInt64()
const;
250 uint toUnsignedInt()
const;
258 qulonglong toUnsignedInt64()
const;
272 double toDouble()
const;
289 QDate toDate()
const;
296 QTime toTime()
const;
353 Soprano::Node toNode()
const;
374 static Variant fromNode(
const Soprano::Node& node );
393 Q_DECLARE_METATYPE(
QList<Nepomuk::Resource>)
394 Q_DECLARE_METATYPE(
QList<
int>)
395 Q_DECLARE_METATYPE(
QList<qlonglong>)
396 Q_DECLARE_METATYPE(
QList<uint>)
397 Q_DECLARE_METATYPE(
QList<qulonglong>)
398 Q_DECLARE_METATYPE(
QList<
double>)
399 Q_DECLARE_METATYPE(
QList<
bool>)
Resource is the central object type in Nepomuk.
The Nepomuk Variant extends over QVariant by introducing direct support for Resource embedding...
QDebug operator<<(QDebug dbg, const DateRange &range)
Debug streaming operator.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:05 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.