diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-10-23 14:46:17 +0900 |
---|---|---|
committer | Zheng Wenlong <wenlong_zheng@nexty-ele.com> | 2017-10-30 04:26:09 +0000 |
commit | eabd10ffe2f9cb5c31262ad3152b037eb2286857 (patch) | |
tree | f8885ee5a8990a9fe9bdc88d03c96e48989f06dd /sample/template/wmhandler.cpp | |
parent | 06a2777ce769346ba85aee9f38ccb237a2d72915 (diff) |
Modify function argument from char to json
Change libhomescreen event api from char to json.
Also modify samples who use this.
BUG-AGL: SPEC-992
Change-Id: Id3986d413f9494019f6b175488dd73de226ba020
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'sample/template/wmhandler.cpp')
-rw-r--r-- | sample/template/wmhandler.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sample/template/wmhandler.cpp b/sample/template/wmhandler.cpp index 761915f..9972104 100644 --- a/sample/template/wmhandler.cpp +++ b/sample/template/wmhandler.cpp @@ -18,17 +18,20 @@ #include <unistd.h> -void WmHandler::init(LibWindowmanager *p_wm, std::string applabel) +void WmHandler::init(LibWindowmanager *p_wm, std::string applabel) { mp_wm = p_wm; m_applabel = applabel; } void WmHandler::slotActivateSurface() { - mp_wm->activateSurface(m_applabel.c_str()); + json_object *obj = json_object_new_object(); + json_object_object_add(obj, wm->kKeyDrawingName, json_object_new_string(m_applabel.c_str())); + json_object_object_add(obj, wm->kKeyDrawingArea, json_object_new_string("normal.full")); + mp_wm->activateSurface(obj); } -WmHandler::WmHandler(QObject *parent) +WmHandler::WmHandler(QObject *parent) :QObject(parent) { } |