diff options
author | Scott Murray <scott.murray@konsulko.com> | 2021-11-04 14:35:55 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2021-11-04 14:44:37 -0400 |
commit | 2b7ca7a6eeb79e03507abb7a16b0503591d2b064 (patch) | |
tree | d372e518e3eae711d9c867de1c1731154d069400 /homescreen/src/homescreenhandler.cpp | |
parent | 187fffa9f0a05359678887f30b58091cf7c5fc47 (diff) |
Initial rework to run without the app framework
Changes:
- Remove application framework build scripts, and update the
application qmake file to just build a "homescreen" binary
and support installing it to /usr/bin.
- Remove voice API related code. Some of the associated QML
and images for the UI have been retained in case equivalent
functionality is re-added in the future.
- Remove or stub out various app framework API access for the
homescreen and launcher bindings, and comment out usage of
the Qt wrappers from libqtappfw (e.g. Bluetooth). The aim is
to provide a replacement library or libraries for the latter
that provide the same functionality.
- Remove the old homescreen API documentation and do an initial
update of the build instructions in README.md.
Bug-AGL: SPEC-4121
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Iab979c8e1341f2da0384f88f163a977b03664600
Diffstat (limited to 'homescreen/src/homescreenhandler.cpp')
-rw-r--r-- | homescreen/src/homescreenhandler.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp index e31f122..836ed47 100644 --- a/homescreen/src/homescreenhandler.cpp +++ b/homescreen/src/homescreenhandler.cpp @@ -33,19 +33,22 @@ HomescreenHandler::HomescreenHandler(Shell *_aglShell, ApplicationLauncher *laun HomescreenHandler::~HomescreenHandler() { +#if 0 if (mp_hs != NULL) { delete mp_hs; } +#endif } -void HomescreenHandler::init(int port, const char *token) +void HomescreenHandler::init(void) { +#if 0 mp_hs = new LibHomeScreen(); mp_hs->init(port, token); - +#endif myThis = this; - +#if 0 mp_hs->registerCallback(nullptr, HomescreenHandler::onRep_static); mp_hs->set_event_handler(LibHomeScreen::Event_OnScreenMessage, [this](json_object *object){ @@ -83,6 +86,7 @@ void HomescreenHandler::init(int port, const char *token) emit showInformation(QString(QLatin1String(info))); }); +#endif } static struct wl_output * @@ -95,7 +99,7 @@ getWlOutput(QPlatformNativeInterface *native, QScreen *screen) void HomescreenHandler::tapShortcut(QString application_id) { HMI_DEBUG("HomeScreen","tapShortcut %s", application_id.toStdString().c_str()); - +#if 0 struct json_object* j_json = json_object_new_object(); struct json_object* value; @@ -117,8 +121,10 @@ void HomescreenHandler::tapShortcut(QString application_id) if (mp_launcher) { mp_launcher->setCurrent(application_id); } +#endif } +#if 0 void HomescreenHandler::onRep_static(struct json_object* reply_contents) { static_cast<HomescreenHandler*>(HomescreenHandler::myThis)->onRep(reply_contents); @@ -148,3 +154,4 @@ void HomescreenHandler::onEv(const string& event, struct json_object* event_cont HMI_DEBUG("HomeScreen","display_message = %s", display_message); } } +#endif |