diff options
Diffstat (limited to 'src/webchannel/qwebchannel.h')
-rw-r--r-- | src/webchannel/qwebchannel.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/webchannel/qwebchannel.h b/src/webchannel/qwebchannel.h index bf9c5fd..f6965e0 100644 --- a/src/webchannel/qwebchannel.h +++ b/src/webchannel/qwebchannel.h @@ -51,24 +51,17 @@ QT_BEGIN_NAMESPACE struct QWebChannelPrivate; +class QWebChannelTransportInterface; class Q_WEBCHANNEL_EXPORT QWebChannel : public QObject { Q_OBJECT Q_DISABLE_COPY(QWebChannel) - Q_PROPERTY(QString baseUrl READ baseUrl NOTIFY baseUrlChanged) - Q_PROPERTY(bool useSecret READ useSecret WRITE setUseSecret) Q_PROPERTY(bool blockUpdates READ blockUpdates WRITE setBlockUpdates NOTIFY blockUpdatesChanged); - public: QWebChannel(QObject *parent = 0); ~QWebChannel(); - QString baseUrl() const; - - void setUseSecret(bool); - bool useSecret() const; - /** * Register a map of string ID to QObject* objects. * @@ -96,21 +89,15 @@ public: */ void setBlockUpdates(bool block); -signals: - void baseUrlChanged(const QString& baseUrl); - void rawMessageReceived(const QString& rawMessage); - void pongReceived(); - void initialized(); - - void failed(const QString& reason); + void connectTo(QWebChannelTransportInterface *transport); + void disconnectFrom(QWebChannelTransportInterface *transport); +signals: void blockUpdatesChanged(bool block); public slots: void sendMessage(const QJsonValue& id, const QJsonValue& data = QJsonValue()) const; void respond(const QJsonValue& messageId, const QJsonValue& data = QJsonValue()) const; - void sendRawMessage(const QString& rawMessage) const; - void ping() const; private: QScopedPointer<QWebChannelPrivate> d; |