diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-12-22 18:24:21 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-23 19:26:09 +0100 |
commit | 23ccec8ce246634799b06f55b85478b3fbbb356d (patch) | |
tree | 7144ceb793362636931c4d26f9cc5f1561672fda /src/imports/qmlwebsockets/qqmlwebsocket.h | |
parent | 19d8d19af44b9075f745790380c3fe663d8e7fd0 (diff) | |
download | qtwebsockets-23ccec8ce246634799b06f55b85478b3fbbb356d.tar.gz |
Add optimizations
Change-Id: Icd293f832e2d7a6272d4953c1994065d16222375
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/imports/qmlwebsockets/qqmlwebsocket.h')
-rw-r--r-- | src/imports/qmlwebsockets/qqmlwebsocket.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/imports/qmlwebsockets/qqmlwebsocket.h b/src/imports/qmlwebsockets/qqmlwebsocket.h index 47cf6fa..b9d7769 100644 --- a/src/imports/qmlwebsockets/qqmlwebsocket.h +++ b/src/imports/qmlwebsockets/qqmlwebsocket.h @@ -48,6 +48,8 @@ #include <QScopedPointer> #include <QWebSocket> +QT_BEGIN_NAMESPACE + class QQmlWebSocket : public QObject, public QQmlParserStatus { Q_OBJECT @@ -81,8 +83,7 @@ public: void setActive(bool active); bool isActive() const; -public Q_SLOTS: - void sendTextMessage(const QString &message); + Q_INVOKABLE qint64 sendTextMessage(const QString &message); Q_SIGNALS: @@ -114,4 +115,6 @@ private: void setErrorString(QString errorString = QString()); }; +QT_END_NAMESPACE + #endif // QQMLWEBSOCKET_H |