aboutsummaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-28 04:12:57 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2020-07-28 04:20:10 +0200
commitbff841139a36892603361ef02de2d48ea5798dea (patch)
treec0e5db4759ec80c4b1e08df4c8c7869f2f429df2 /src/session.cpp
parenta4de2a1cdae7fb3c8ff993cc473a4bb24509f57b (diff)
downloadRWA.Support.DesktopApp-bff841139a36892603361ef02de2d48ea5798dea.tar.gz
RWA.Support.DesktopApp-bff841139a36892603361ef02de2d48ea5798dea.tar.bz2
RWA.Support.DesktopApp-bff841139a36892603361ef02de2d48ea5798dea.zip
Fully remove 'session' out of QML context
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/session.cpp b/src/session.cpp
index f0d18f3..c87ff71 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -10,6 +10,23 @@ Session::Session(QObject *parent, MainQMLAdaptor* main_gui) : QObject(parent) {
statusTimer = new QTimer(this);
connect(statusTimer, &QTimer::timeout, this, &Session::statusTimerEvent);
+ // QML -> MainQMLAdaptor::handleConnectButtonClick --onConnectButtonClick--> this::handleConnectButtonClick
+ QObject::connect(_main_gui,
+ SIGNAL(onConnectButtonClick(bool)),
+ this,
+ SLOT(handleConnectButtonClick(bool)));
+
+ // session::setPin --pinChanged--> MainQMLAdaptor::setPin --pinChanged--> QML
+ QObject::connect(this,
+ SIGNAL(pinChanged(QString)),
+ main_gui,
+ SLOT(setPin(QString)));
+ // session::setURL --urlChanged--> MainQMLAdaptor::setURL --urlChanged--> QML
+ QObject::connect(this,
+ SIGNAL(urlChanged(QString)),
+ main_gui,
+ SLOT(setURL(QString)));
+
this->init_vars();
}