Eneboo - Documentación para desarrolladores
|
#include <qsclass.h>
Métodos públicos | |
QSBooleanClass (QSClass *b) | |
void | init () |
QString | name () const |
bool | toBoolean (const QSObject *obj) const |
double | toNumber (const QSObject *obj) const |
QString | toString (const QSObject *) const |
QSObject | toPrimitive (const QSObject *obj, const QSClass *preferred=0) const |
QVariant | toVariant (const QSObject *obj, QVariant::Type) const |
QSObject | construct (bool b) const |
QSObject | construct (const QSList &args) const |
virtual QSObject | cast (const QSList &args) const |
virtual ValueType | valueType () const |
Métodos protegidos | |
virtual QSEqualsResult | isEqual (const QSObject &a, const QSObject &b) const |
QSBooleanClass::QSBooleanClass | ( | QSClass * | b | ) |
Reimplementado de QSClass.
void QSBooleanClass::init | ( | ) |
Reimplementado de QSClass.
QSEqualsResult QSBooleanClass::isEqual | ( | const QSObject & | a, |
const QSObject & | b | ||
) | const [protected, virtual] |
Checks if the two objects are equal. Returns positive if equal, 0 if not equal and negative if the class is unable to determine.
Reimplementado de QSClass.
Returns obj converted to a boolean value.
The default implementation returns TRUE.
Reimplementado de QSClass.
double QSBooleanClass::toNumber | ( | const QSObject * | obj | ) | const [virtual] |
Return obj converted to a floating point number; NaN if the conversion failed.
The default implementation returns NaN.
Reimplementado de QSClass.
QSObject QSBooleanClass::toPrimitive | ( | const QSObject * | obj, |
const QSClass * | preferred = 0 |
||
) | const [virtual] |
Reimplementado de QSClass.
QVariant QSBooleanClass::toVariant | ( | const QSObject * | obj, |
QVariant::Type | pref | ||
) | const [virtual] |