summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/controller.cxx b/controller.cxx
index d1271b9..015d4ac 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -6,9 +6,15 @@ Controller::Controller()
Worker* worker = new Worker{};
worker->moveToThread(&thread);
connect(&thread, &QThread::finished, worker, &QObject::deleteLater);
+ connect(this, &Controller::credentialsObtained, worker, &Worker::logIn);
thread.start();
}
+void Controller::logIn(QString const& name, QString const& password)
+{
+ emit credentialsObtained(name, password);
+}
+
Controller::~Controller()
{
thread.quit();