qint64 write(const QByteArray &data); //send data as binary
public Q_SLOTS:
- void close(QWebSocketProtocol::CloseCode closeCode = QWebSocketProtocol::CC_NORMAL, QString reason = QString());
+ void close(QWebSocketProtocol::CloseCode closeCode = QWebSocketProtocol::CC_NORMAL, const QString &reason = QString());
void open(const QUrl &url, bool mask = true);
void ping();
private:
Q_DISABLE_COPY(QWebSocket)
+ Q_DECLARE_PRIVATE(QWebSocket)
QWebSocket(QTcpSocket *pTcpSocket, QWebSocketProtocol::Version version, QObject *parent = 0);
QWebSocketPrivate * const d_ptr;
-
- friend class QWebSocketPrivate;
};
QT_END_NAMESPACE