summaryrefslogtreecommitdiffstats
path: root/src/qlibhomescreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qlibhomescreen.cpp')
-rw-r--r--src/qlibhomescreen.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qlibhomescreen.cpp b/src/qlibhomescreen.cpp
index 248dd72..b2f6751 100644
--- a/src/qlibhomescreen.cpp
+++ b/src/qlibhomescreen.cpp
@@ -17,6 +17,7 @@
#include "qlibhomescreen.h"
#include <QJsonDocument>
#include <QJsonObject>
+#include "hmi-debug.h"
using namespace std;
#define _POPUPREPLY "on_screen_reply"
@@ -44,7 +45,7 @@ QLibHomeScreen::QLibHomeScreen(QObject *parent) :
QObject(parent),
mp_hs(NULL)
{
-
+ HMI_DEBUG("qlibhomescreen", "called.");
}
/**
@@ -59,6 +60,7 @@ QLibHomeScreen::QLibHomeScreen(QObject *parent) :
*/
QLibHomeScreen::~QLibHomeScreen()
{
+ HMI_DEBUG("qlibhomescreen", "called.");
if (mp_hs != NULL) {
delete mp_hs;
}
@@ -79,6 +81,7 @@ QLibHomeScreen::~QLibHomeScreen()
*/
void QLibHomeScreen::init(int port, const QString &token)
{
+ HMI_DEBUG("qlibhomescreen", "called.");
string ctoken = token.toStdString();
mp_hs = new LibHomeScreen();
mp_hs->init(port, ctoken.c_str());
@@ -101,6 +104,7 @@ void QLibHomeScreen::init(int port, const QString &token)
*/
int QLibHomeScreen::onScreenMessage(const QString &message)
{
+ HMI_DEBUG("qlibhomescreen", "called.");
string str = message.toStdString();
return mp_hs->onScreenMessage(str.c_str());
}
@@ -119,6 +123,7 @@ int QLibHomeScreen::onScreenMessage(const QString &message)
*/
int QLibHomeScreen::subscribe(const QString &evetName)
{
+ HMI_DEBUG("qlibhomescreen", "called.");
string str = evetName.toStdString();
return mp_hs->subscribe(str);
}
@@ -137,6 +142,7 @@ int QLibHomeScreen::subscribe(const QString &evetName)
*/
int QLibHomeScreen::unsubscribe(const QString &evetName)
{
+ HMI_DEBUG("qlibhomescreen", "called.");
string str = evetName.toStdString();
return mp_hs->unsubscribe(str);
}
@@ -154,6 +160,7 @@ int QLibHomeScreen::unsubscribe(const QString &evetName)
*/
void QLibHomeScreen::set_event_handler(enum QEventType et, handler_fun f)
{
+ HMI_DEBUG("qlibhomescreen", "called.");
LibHomeScreen::EventType hs_et = (LibHomeScreen::EventType)et;
return this->mp_hs->set_event_handler(hs_et, std::move(f));
}