summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qremoteobjectsourceio.cpp
diff options
context:
space:
mode:
authorBrett Stottlemyer <bstottle@ford.com>2015-12-01 19:16:08 -0500
committerBrett Stottlemyer <bstottle@ford.com>2015-12-02 23:36:53 +0000
commitd1630009ba36856a7d6e06bda95f01b03fd238a2 (patch)
treed2d367c0b8736c9c1668a4c01b7b47dbf6f133d0 /src/remoteobjects/qremoteobjectsourceio.cpp
parente429db106374e543854de0750057d4a68a9ff284 (diff)
Make connection-factories public
This is a large change, but it is completely a refactoring of code, not code changes. The connectionfactory classes are now public and describe the connection backends (local and tcp/ip). Instead of putting the client code in a set of files and the server code in a set of files, we have local_backend and tcpip_backend which include both client/server code. The packet type enums were moved to the global header file to make them available to additional backends. Change-Id: I83efc9c1f2013f41f97a4350a31a708f484749e4 Reviewed-by: Continuous Integration (KDAB) <build@kdab.com> Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Allen Winter <allen.winter@kdab.com> Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectsourceio.cpp')
-rw-r--r--src/remoteobjects/qremoteobjectsourceio.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/remoteobjects/qremoteobjectsourceio.cpp b/src/remoteobjects/qremoteobjectsourceio.cpp
index 859fd9b..2a7bb5d 100644
--- a/src/remoteobjects/qremoteobjectsourceio.cpp
+++ b/src/remoteobjects/qremoteobjectsourceio.cpp
@@ -50,6 +50,8 @@
QT_BEGIN_NAMESPACE
+using namespace QtRemoteObjects;
+
QRemoteObjectSourceIo::QRemoteObjectSourceIo(const QUrl &address)
: m_server(QtROServerFactory::create(address, this))
{
@@ -151,7 +153,7 @@ void QRemoteObjectSourceIo::onServerRead(QObject *conn)
{
// Assert the invariant here conn is of type QIODevice
ServerIoDevice *connection = qobject_cast<ServerIoDevice*>(conn);
- QRemoteObjectPackets::QRemoteObjectPacketTypeEnum packetType;
+ QRemoteObjectPacketTypeEnum packetType;
do {