kjsembed
KJSEmbed::VariantBinding Class Reference
QVariant based binding. More...
#include <variant_binding.h>

Public Member Functions | |
QGenericArgument | arg (const char *type) const |
KJS::UString | className () const |
void * | pointer () |
void | setValue (const QVariant &val) |
KJS::UString | toString (KJS::ExecState *) const |
template<typename T > | |
T | value () const |
QVariant | variant () const |
VariantBinding (KJS::ExecState *exec, const QVariant &value) | |
virtual | ~VariantBinding () |
Static Public Attributes | |
static const KJS::ClassInfo | info = { "VariantBinding", 0, 0, 0 } |
Detailed Description
QVariant based binding.
This class wraps the implementation. You should never have to use this class directly instead use KJSEmbed::createVariant. QVariant bindinging implementation.
Definition at line 88 of file variant_binding.h.
Constructor & Destructor Documentation
VariantBinding::VariantBinding | ( | KJS::ExecState * | exec, | |
const QVariant & | value | |||
) |
Create a new binding implementation with a QVariant to wrap.
Definition at line 47 of file variant_binding.cpp.
virtual KJSEmbed::VariantBinding::~VariantBinding | ( | ) | [inline, virtual] |
Definition at line 95 of file variant_binding.h.
Member Function Documentation
QGenericArgument VariantBinding::arg | ( | const char * | type | ) | const |
Constructs a QGenericArgument that is used with QMetaObject::invokeMember.
Definition at line 78 of file variant_binding.cpp.
KJS::UString VariantBinding::className | ( | ) | const |
Definition at line 63 of file variant_binding.cpp.
void * VariantBinding::pointer | ( | ) |
Definition at line 53 of file variant_binding.cpp.
void VariantBinding::setValue | ( | const QVariant & | val | ) |
Set the internal value of the QVariant.
Definition at line 73 of file variant_binding.cpp.
KJS::UString VariantBinding::toString | ( | KJS::ExecState * | ) | const |
Definition at line 58 of file variant_binding.cpp.
T KJSEmbed::VariantBinding::value | ( | ) | const [inline] |
Extract the actual value from the wrapper.
This method wraps QVariant::value, so it will support some aspects of casting. If the cast fails a default value of T will be returned.
Definition at line 112 of file variant_binding.h.
QVariant VariantBinding::variant | ( | ) | const |
Return the wrapped QVariant.
Definition at line 68 of file variant_binding.cpp.
Member Data Documentation
const KJS::ClassInfo VariantBinding::info = { "VariantBinding", 0, 0, 0 } [static] |
Reimplemented in KJSEmbed::BrushBinding, KJSEmbed::ColorBinding, KJSEmbed::FontBinding, KJSEmbed::ImageBinding, KJSEmbed::PixmapBinding, KJSEmbed::PointBinding, KJSEmbed::QBrushBinding, KJSEmbed::SizeBinding, and KJSEmbed::UrlBinding.
Definition at line 123 of file variant_binding.h.
The documentation for this class was generated from the following files: