560 } |
560 } |
561 |
561 |
562 return query; |
562 return query; |
563 } |
563 } |
564 |
564 |
|
565 bool QDeclarativeEngineDebug::setBindingForObject(int objectDebugId, const QString &propertyName, |
|
566 const QVariant &bindingExpression, |
|
567 bool isLiteralValue) |
|
568 { |
|
569 Q_D(QDeclarativeEngineDebug); |
|
570 |
|
571 if (d->client->isConnected() && objectDebugId != -1) { |
|
572 QByteArray message; |
|
573 QDataStream ds(&message, QIODevice::WriteOnly); |
|
574 ds << QByteArray("SET_BINDING") << objectDebugId << propertyName << bindingExpression << isLiteralValue; |
|
575 d->client->sendMessage(message); |
|
576 return true; |
|
577 } else { |
|
578 return false; |
|
579 } |
|
580 } |
|
581 |
|
582 bool QDeclarativeEngineDebug::resetBindingForObject(int objectDebugId, const QString &propertyName) |
|
583 { |
|
584 Q_D(QDeclarativeEngineDebug); |
|
585 |
|
586 if (d->client->isConnected() && objectDebugId != -1) { |
|
587 QByteArray message; |
|
588 QDataStream ds(&message, QIODevice::WriteOnly); |
|
589 ds << QByteArray("RESET_BINDING") << objectDebugId << propertyName; |
|
590 d->client->sendMessage(message); |
|
591 return true; |
|
592 } else { |
|
593 return false; |
|
594 } |
|
595 } |
|
596 |
|
597 bool QDeclarativeEngineDebug::setMethodBody(int objectDebugId, const QString &methodName, |
|
598 const QString &methodBody) |
|
599 { |
|
600 Q_D(QDeclarativeEngineDebug); |
|
601 |
|
602 if (d->client->isConnected() && objectDebugId != -1) { |
|
603 QByteArray message; |
|
604 QDataStream ds(&message, QIODevice::WriteOnly); |
|
605 ds << QByteArray("SET_METHOD_BODY") << objectDebugId << methodName << methodBody; |
|
606 d->client->sendMessage(message); |
|
607 return true; |
|
608 } else { |
|
609 return false; |
|
610 } |
|
611 } |
|
612 |
565 QDeclarativeDebugWatch::QDeclarativeDebugWatch(QObject *parent) |
613 QDeclarativeDebugWatch::QDeclarativeDebugWatch(QObject *parent) |
566 : QObject(parent), m_state(Waiting), m_queryId(-1), m_client(0), m_objectDebugId(-1) |
614 : QObject(parent), m_state(Waiting), m_queryId(-1), m_client(0), m_objectDebugId(-1) |
567 { |
615 { |
568 } |
616 } |
569 |
617 |