summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index c0f9d5f..e2eaf7c 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -28,6 +28,7 @@
#endif
#include <telephony.h>
+#include "phone.h"
int main(int argc, char *argv[])
{
@@ -68,6 +69,8 @@ int main(int argc, char *argv[])
context->setContextProperty(QStringLiteral("bindingAddress"), bindingAddress);
Telephony *telephony = new Telephony(bindingAddress);
context->setContextProperty("telephony", telephony);
+ Phone *phone = new Phone(telephony);
+ QObject::connect(telephony, &Telephony::callStateChanged, phone, &Phone::onCallStateChanged);
}
engine.load(QUrl(QStringLiteral("qrc:/Phone.qml")));