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-26 04:36:02 +0000 |
commit | 5bc5f80436ef7d2f3c4f674548d2ba2e7aaa7194 (patch) | |
tree | 58c89207507009526a8dd69a16742d199f3fe30e /sample/template/wmhandler.cpp | |
parent | 2f5d8b003df780114093a02f801502cbca440ccf (diff) |
Modified functional argument from char to json
Change libhomescreen event api from char to json.
Also modify sample who use this.
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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sample/template/wmhandler.cpp b/sample/template/wmhandler.cpp index 761915f..83af256 100644 --- a/sample/template/wmhandler.cpp +++ b/sample/template/wmhandler.cpp @@ -25,7 +25,10 @@ void WmHandler::init(LibWindowmanager *p_wm, std::string 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) |