diff options
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/telephony.cpp | 9 | ||||
-rw-r--r-- | telephony/telephony.h | 8 |
2 files changed, 11 insertions, 6 deletions
diff --git a/telephony/telephony.cpp b/telephony/telephony.cpp index 716ded7..e0fe2bd 100644 --- a/telephony/telephony.cpp +++ b/telephony/telephony.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Konsulko Group + * Copyright (C) 2017-2020 Konsulko Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,10 +14,13 @@ * limitations under the License. */ +#include <QDebug> + #include "message.h" +#include "telephonymessage.h" #include "messageengine.h" #include "telephony.h" -#include "telephonymessage.h" + Telephony::Telephony (QUrl &url, QObject * parent) : QObject(parent), @@ -88,7 +91,7 @@ void Telephony::onDisconnected() void Telephony::onMessageReceived(MessageType type, Message *message) { - if (type == TelephonyEventMessage) { + if (type == MessageType::TelephonyEventMessage) { TelephonyMessage *tmsg = qobject_cast<TelephonyMessage*>(message); if (tmsg->isEvent()) { diff --git a/telephony/telephony.h b/telephony/telephony.h index 04f55a7..097310f 100644 --- a/telephony/telephony.h +++ b/telephony/telephony.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2017 Konsulko Group + * Copyright (C) 2017-2020 Konsulko Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,10 +17,12 @@ #ifndef TELEPHONY_H #define TELEPHONY_H -#include <QDebug> #include <QObject> -#include "messageengine.h" +class MessageEngine; +class Message; + +enum class MessageType; class Telephony : public QObject { |