lib
Kross::Api::Variant Class Reference
#include <variant.h>
Inheritance diagram for Kross::Api::Variant:

Detailed Description
Variant value to wrap a QVariant into a Kross::Api::Value to enable primitive types like strings or numerics.
Definition at line 37 of file variant.h.
Public Member Functions | |
Variant (const QVariant &value, const QString &name="variant") | |
operator bool () | |
operator int () | |
operator uint () | |
operator double () | |
operator const char * () | |
operator QString () | |
operator const QString () | |
operator const QString & () | |
operator QCString () | |
operator const QCString () | |
operator const QCString & () | |
operator const QVariant & () | |
virtual | ~Variant () |
virtual const QString | getClassName () const |
virtual const QString | toString () |
Static Public Member Functions | |
static const QString | getVariantType (Object::Ptr object) |
static const QVariant & | toVariant (Object::Ptr object) |
static const QString | toString (Object::Ptr object) |
static int | toInt (Object::Ptr object) |
static uint | toUInt (Object::Ptr object) |
static double | toDouble (Object::Ptr object) |
static Q_LLONG | toLLONG (Object::Ptr object) |
static Q_ULLONG | toULLONG (Object::Ptr object) |
static bool | toBool (Object::Ptr object) |
static QValueList< QVariant > | toList (Object::Ptr object) |
Friends | |
class | Value< Variant, QVariant > |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 28 of file variant.cpp. |
|
Destructor.
Definition at line 33 of file variant.cpp. |
Member Function Documentation
|
Implements Kross::Api::Object. Definition at line 37 of file variant.cpp. |
|
Definition at line 47 of file variant.cpp. |
|
Try to convert the given Object into a boolean value.
Definition at line 132 of file variant.cpp. |
|
Try to convert the given Object into a uint.
Definition at line 108 of file variant.cpp. |
|
Try to convert the given Object into a int.
Definition at line 92 of file variant.cpp. |
|
Try to convert the given Object into a QValueList of QVariant's.
Definition at line 140 of file variant.cpp. |
|
Try to convert the given Object into a Q_LLONG.
Definition at line 116 of file variant.cpp. |
|
Try to convert the given Object into a QString.
Definition at line 84 of file variant.cpp. |
|
Reimplemented from Kross::Api::Object. Definition at line 42 of file variant.cpp. |
|
Try to convert the given Object into a uint.
Definition at line 100 of file variant.cpp. |
|
Try to convert the given Object into a Q_ULLONG.
Definition at line 124 of file variant.cpp. |
|
Try to convert the given Object into a QVariant.
Definition at line 79 of file variant.cpp. |
The documentation for this class was generated from the following files: