variant.cpp
84 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::String expected, but got %1.").arg(variant.typeName()).latin1()) );
92 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Int expected, but got %1.").arg(variant.typeName()).latin1()) );
100 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::UInt expected, but got %1.").arg(variant.typeName()).latin1()) );
108 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Double expected, but got %1.").arg(variant.typeName()).latin1()) );
116 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::LLONG expected, but got %1.").arg(variant.typeName()).latin1()) );
124 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::ULLONG expected, but got %1.").arg(variant.typeName()).latin1()) );
132 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::Bool expected, but got %1.").arg(variant.typeName()).latin1()) );
149 throw Exception::Ptr( new Exception(TQString("Kross::Api::Variant::StringList expected, but got '%1'.").arg(variant.typeName()).latin1()) );
166 throw Exception::Ptr( new Exception(i18n("Kross::Api::Variant::List expected, but got '%1'.").arg(variant.typeName()).latin1()) );
Common exception class used for representing exceptions in Kross.
Definition exception.h:39
TDESharedPtr< Exception > Ptr
Shared pointer to implement reference-counting.
Definition exception.h:45
The List class implementates Value to handle lists and collections.
Definition list.h:39
static T * fromObject(Object::Ptr object)
Try to convert the Object instance to the template class T.
Definition object.h:140
static TQ_LLONG toLLONG(Object::Ptr object)
Try to convert the given Object into a TQ_LLONG.
Definition variant.cpp:112
static const TQVariant & toVariant(Object::Ptr object)
Try to convert the given Object into a TQVariant.
Definition variant.cpp:75
static uint toUInt(Object::Ptr object)
Try to convert the given Object into a uint.
Definition variant.cpp:96
static TQStringList toStringList(Object::Ptr object)
Try to convert the given Object into a TQStringList.
Definition variant.cpp:136
static int toInt(Object::Ptr object)
Try to convert the given Object into a int.
Definition variant.cpp:88
static TQ_ULLONG toULLONG(Object::Ptr object)
Try to convert the given Object into a TQ_ULLONG.
Definition variant.cpp:120
static TQValueList< TQVariant > toList(Object::Ptr object)
Try to convert the given Object into a TQValueList of TQVariant's.
Definition variant.cpp:153
static double toDouble(Object::Ptr object)
Try to convert the given Object into a uint.
Definition variant.cpp:104
static bool toBool(Object::Ptr object)
Try to convert the given Object into a boolean value.
Definition variant.cpp:128
virtual const TQString getClassName() const
Definition variant.cpp:36
