This repository was archived by the owner on Mar 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed
Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 11TARGET = QtDataSync
22
3- QT = core jsonserializer sql websockets scxml remoteobjects
3+ QT = core jsonserializer sql websockets scxml remoteobjects remoteobjects-private
44
55HEADERS += \
66 qtdatasync_global.h \
Original file line number Diff line number Diff line change @@ -55,16 +55,22 @@ void ThreadedClientIoDevice::connectToServer()
5555 emit shouldReconnect (this );
5656}
5757
58- bool ThreadedClientIoDevice::isOpen ()
58+ bool ThreadedClientIoDevice::isOpen () const
5959{
6060 return !isClosing () && _buffer->isOpen ();
6161}
6262
63- QIODevice *ThreadedClientIoDevice::connection ()
63+ QIODevice *ThreadedClientIoDevice::connection () const
6464{
6565 return _buffer;
6666}
6767
68+ void ThreadedClientIoDevice::doDisconnectFromServer ()
69+ {
70+ if (_buffer->isOpen ())
71+ _buffer->close ();
72+ }
73+
6874void ThreadedClientIoDevice::doClose ()
6975{
7076 if (_buffer->isOpen ())
Original file line number Diff line number Diff line change 44#include < QtCore/QUrl>
55#include < QtCore/QTimer>
66
7- #include < QtRemoteObjects/QtROServerFactory >
7+ #include < QtRemoteObjects/private/qconnectionfactories_p.h >
88
99#include " qtdatasync_global.h"
1010
@@ -21,10 +21,11 @@ class Q_DATASYNC_EXPORT ThreadedClientIoDevice : public ClientIoDevice
2121 ~ThreadedClientIoDevice ();
2222
2323 void connectToServer () override ;
24- bool isOpen () override ;
25- QIODevice *connection () override ;
24+ bool isOpen () const override ;
25+ QIODevice *connection () const override ;
2626
2727protected:
28+ void doDisconnectFromServer () override ;
2829 void doClose () override ;
2930
3031private Q_SLOTS:
Original file line number Diff line number Diff line change 44#include < QtCore/QUrl>
55#include < QtCore/QMutex>
66
7- #include < QtRemoteObjects/QtROServerFactory >
7+ #include < QtRemoteObjects/private/qconnectionfactories_p.h >
88
99#include " qtdatasync_global.h"
1010#include " exchangebuffer_p.h"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ OTHER_FILES += qmldir
2727
2828generate_qmltypes {
2929 typeextra1.target = qmltypes
30- typeextra1.depends += export LD_LIBRARY_PATH : = " $$shadowed($$dirname(_QMAKE_CONF_))/lib/:$(LD_LIBRARY_PATH)"
30+ typeextra1.depends += export LD_LIBRARY_PATH : = " $$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$ (LD_LIBRARY_PATH)"
3131 typeextra2.target = qmltypes
3232 typeextra2.depends += export QML2_IMPORT_PATH : = " $$shadowed($$dirname(_QMAKE_CONF_))/qml/"
3333 QMAKE_EXTRA_TARGETS += typeextra1 typeextra2
You can’t perform that action at this time.
0 commit comments