42 #include "private/qdeclarativeboundsignal_p.h" 44 #include "private/qmetaobjectbuilder_p.h" 45 #include "private/qdeclarativeengine_p.h" 46 #include "private/qdeclarativeexpression_p.h" 47 #include "private/qdeclarativecontext_p.h" 48 #include "private/qdeclarativemetatype_p.h" 51 #include "private/qdeclarativeglobal_p.h" 52 #include "private/qdeclarativedebugtrace_p.h" 54 #include <QtCore/qstringbuilder.h> 55 #include <QtCore/qdebug.h> 100 : m_expression(0), m_signal(signal), m_paramsValid(false), m_isEvaluating(false), m_params(0),
127 data->addBoundSignal(
this);
143 priv->disconnectNotify(signalSignature.
constData());
204 m_isEvaluating =
false;
208 return QObject::qt_metacall(c,
id, a);
235 for (
int ii = 0; ii < paramTypes.
count(); ++ii) {
256 if (scopeIdx != -1) {
257 scope = propType.
left(scopeIdx);
258 name = propType.
mid(scopeIdx + 2);
281 types[ii] = 0x80000000 | t;
315 if (
types[
id - 1] & 0x80000000) {
322 return qt_metacall(c,
id, a);
328 #include <qdeclarativeboundsignal.moc> The QVariant class acts like a union for the most common Qt data types.
QDeclarativeAbstractBoundSignal(QObject *parent=0)
const T * constData() const
void init(QObject *parent)
static QDeclarativeData * get(const QObject *object, bool create=false)
~QDeclarativeBoundSignalParameters()
#define QT_END_NAMESPACE
This macro expands to.
static void signalSignature(const QMetaMethod &signal, QVarLengthArray< char > *result)
void unregisterScopeObject()
QDeclarativeEngine * engine() const
Returns the QDeclarativeEngine this expression is associated with, or 0 if there is no association or...
static void rangeLocation(RangeType, const QString &, int)
Q_CORE_EXPORT void qFree(void *ptr)
static QDeclarativeBoundSignal * cast(QObject *)
The QByteArray class provides an array of bytes.
virtual ~QDeclarativeBoundSignal()
static const QMetaObject staticMetaObject
This variable stores the meta-object for the class.
static bool connect(QObject *sender, int signal_index, const QObject *receiver, int method_index, int type=0, int *types=0)
Connect sender signal_index to receiver method_index with the specified type and types.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
long ASN1_INTEGER_get ASN1_INTEGER * a
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
T * qobject_cast(QObject *object)
The QObject class is the base class of all Qt objects.
QDeclarativeBoundSignalParameters * m_params
QDeclarativeExpression * m_expression
static QObjectPrivate * get(QObject *o)
void setNotifyOnValueChanged(bool)
Sets whether the valueChanged() signal is emitted when the expression's evaluated value changes...
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
QDeclarativeExpression * setExpression(QDeclarativeExpression *)
Sets the signal expression to e.
void removeBoundSignal(QDeclarativeAbstractBoundSignal *signal)
#define QT_BEGIN_NAMESPACE
This macro expands to.
int lastIndexOf(char c, int from=-1) const
Returns the index position of the last occurrence of character ch in the byte array, searching backward from index position from.
int metaCall(QMetaObject::Call, int _id, void **)
const T & at(int i) const
Returns the item at index position i in the list.
QDeclarativeBoundSignal(QObject *scope, const QMetaMethod &signal, QObject *parent)
static const char * data(const QByteArray &arr)
Type
This enum type defines the types of variable that a QVariant can contain.
QByteArray left(int len) const
Returns a byte array that contains the leftmost len bytes of this byte array.
static bool isDebuggingEnabled()
QByteArray mid(int index, int len=-1) const
Returns a byte array containing len bytes from this byte array, starting at position pos...
QDeclarativeExpression * expression() const
Returns the signal expression.
static void endRange(RangeType)
static void startRange(RangeType)
QString expression() const
Returns the expression string.
const char * constData() const
Returns a pointer to the data stored in the byte array.
bool hasError() const
Returns true if the last call to evaluate() resulted in an error, otherwise false.
int lineNumber() const
Returns the source file line number for this expression.
QMetaObject * myMetaObject
void QDeclarative_setParent_noEvent(QObject *object, QObject *parent)
Makes the object a child of parent.
QObject * parent() const
Returns a pointer to the parent object.
QString sourceFile() const
Returns the source file URL for this expression.
virtual int qt_metacall(QMetaObject::Call c, int id, void **a)
static void rangeData(RangeType, const QString &)
static const QMetaObject staticQtMetaObject
The QDeclarativeContext class defines a context within a QML engine.
static QDeclarativeExpressionPrivate * get(QDeclarativeExpression *expr)
QScopedPointer< QObjectData > d_ptr
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
QVariant value(QObject *secondaryScope=0, bool *isUndefined=0)
QDeclarativeError error() const
Return any error from the last call to evaluate().
The QDeclarativeExpression class evaluates JavaScript in a QML context.
void warning(const QDeclarativeError &)
virtual ~QDeclarativeAbstractBoundSignal()=0
QDeclarativeBoundSignalParameters(const QMetaMethod &, QObject *=0)
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.