diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-06-01 15:25:01 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-06-17 16:01:57 +0200 |
commit | dd1a09d3a2406736e76bf3065b1895b24d9b402e (patch) | |
tree | 0b2647f7e033838cd914d5e0aeff4f1a23019ee9 /src/remoteobjects/qconnection_qnx_backend.cpp | |
parent | bf1356479b3b2be598b3f46e8be2c05b29af945c (diff) |
Rename the classes for adding a custom transport support
Added QtRO prefix to IoDeviceBase, ServerIoDevice and ClientIoDevice
classes. These classes are exported and can be used externally for
supporting a custom transport by deriving from them and implementing
the virtual methods. Added the prefix also to ExternalIoDevice, to keep
the naming consistent.
Pick-to: 6.2
Change-Id: I64845cff55687a127d2c43de03ecc65ac9bd321b
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Reviewed-by: MΓ₯rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/remoteobjects/qconnection_qnx_backend.cpp')
-rw-r--r-- | src/remoteobjects/qconnection_qnx_backend.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/remoteobjects/qconnection_qnx_backend.cpp b/src/remoteobjects/qconnection_qnx_backend.cpp index d9bd9c5..e7c85be 100644 --- a/src/remoteobjects/qconnection_qnx_backend.cpp +++ b/src/remoteobjects/qconnection_qnx_backend.cpp @@ -42,10 +42,10 @@ QT_BEGIN_NAMESPACE QnxClientIo::QnxClientIo(QObject *parent) - : ClientIoDevice(parent) + : QtROClientIoDevice(parent) , m_socket(new QQnxNativeIo(this)) { - connect(m_socket, &QQnxNativeIo::readyRead, this, &ClientIoDevice::readyRead); + connect(m_socket, &QQnxNativeIo::readyRead, this, &QtROClientIoDevice::readyRead); connect(m_socket, static_cast<void(QQnxNativeIo::*)(QAbstractSocket::SocketError)>(&QQnxNativeIo::error), this, @@ -119,10 +119,10 @@ void QnxClientIo::onStateChanged(QAbstractSocket::SocketState state) } QnxServerIo::QnxServerIo(QSharedPointer<QIOQnxSource> conn, QObject *parent) - : ServerIoDevice(parent), m_connection(conn) + : QtROServerIoDevice(parent), m_connection(conn) { - connect(conn.data(), &QIODevice::readyRead, this, &ServerIoDevice::readyRead); - connect(conn.data(), &QIOQnxSource::disconnected, this, &ServerIoDevice::disconnected); + connect(conn.data(), &QIODevice::readyRead, this, &QtROServerIoDevice::readyRead); + connect(conn.data(), &QIOQnxSource::disconnected, this, &QtROServerIoDevice::disconnected); } QIODevice *QnxServerIo::connection() const @@ -149,7 +149,7 @@ QnxServerImpl::~QnxServerImpl() m_server.close(); } -ServerIoDevice *QnxServerImpl::configureNewConnection() +QtROServerIoDevice *QnxServerImpl::configureNewConnection() { if (!m_server.isListening()) return nullptr; |