X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Flayouthandler.cpp;h=c0fa620ec2bc8d1365b97f707a0a4e4cc54aa91f;hb=09f2f0036f122e49aa49e6c446d723850192a725;hp=4738f8ed647795fb235219b328c85ab85a49c106;hpb=da604bd27fd3a7b6838b57b8b4c79647ca12722a;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/layouthandler.cpp b/HomeScreen/src/layouthandler.cpp index 4738f8e..c0fa620 100644 --- a/HomeScreen/src/layouthandler.cpp +++ b/HomeScreen/src/layouthandler.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "layouthandler.h" #include @@ -70,10 +86,9 @@ LayoutHandler::~LayoutHandler() delete mp_dBusWindowManagerProxy; } -void LayoutHandler::showAppLayer() +void LayoutHandler::showAppLayer(int pid) { - // POPUP=0, HOMESCREEN_OVERLAY=1, APPS=2, HOMESCREEN=3 - mp_dBusWindowManagerProxy->showLayer(2); // TODO: enum + mp_dBusWindowManagerProxy->showAppLayer(pid); } void LayoutHandler::hideAppLayer() @@ -86,6 +101,7 @@ void LayoutHandler::makeMeVisible(int pid) { qDebug("makeMeVisible %d", pid); +#if 0 // if app does not request to be visible if (-1 == m_requestsToBeVisiblePids.indexOf(pid)) { @@ -103,10 +119,12 @@ void LayoutHandler::makeMeVisible(int pid) { checkToDoQueue(); } +#endif } void LayoutHandler::checkToDoQueue() { +#if 0 if ((-1 != m_secondsTimerId) && (0 == m_requestsToBeVisiblePids.size())) { killTimer(m_secondsTimerId); @@ -181,14 +199,17 @@ void LayoutHandler::checkToDoQueue() } } } +#endif } +#if 0 QList LayoutHandler::requestGetAllSurfacesOfProcess(int pid) { qDebug("requestGetAllSurfacesOfProcess %d", pid); return mp_dBusWindowManagerProxy->getAllSurfacesOfProcess(pid); } +#endif int LayoutHandler::requestGetSurfaceStatus(int surfaceId) {