Add 2017 to copyright
[staging/HomeScreen.git] / HomeScreen / src / layouthandler.cpp
index 4738f8e..c0fa620 100644 (file)
@@ -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 <QTimerEvent>
 
@@ -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<int> LayoutHandler::requestGetAllSurfacesOfProcess(int pid)
 {
     qDebug("requestGetAllSurfacesOfProcess %d", pid);
 
     return mp_dBusWindowManagerProxy->getAllSurfacesOfProcess(pid);
 }
+#endif
 
 int LayoutHandler::requestGetSurfaceStatus(int surfaceId)
 {