kjsembed
#include <variant_binding.h>
Public Member Functions | |
VariantBinding (KJS::ExecState *exec, const QVariant &value) | |
virtual | ~VariantBinding () |
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 |
Public Member Functions inherited from KJSEmbed::ProxyBinding | |
ProxyBinding (KJS::ExecState *exec) | |
virtual | ~ProxyBinding () |
bool | implementsCall () const |
bool | implementsConstruct () const |
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.
|
inlinevirtual |
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.
|
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
|
static |
Definition at line 123 of file variant_binding.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.