+/*
+ * 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>
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()
{
qDebug("makeMeVisible %d", pid);
+#if 0
// if app does not request to be visible
if (-1 == m_requestsToBeVisiblePids.indexOf(pid))
{
{
checkToDoQueue();
}
+#endif
}
void LayoutHandler::checkToDoQueue()
{
+#if 0
if ((-1 != m_secondsTimerId) && (0 == m_requestsToBeVisiblePids.size()))
{
killTimer(m_secondsTimerId);
}
}
}
+#endif
}
+#if 0
QList<int> LayoutHandler::requestGetAllSurfacesOfProcess(int pid)
{
qDebug("requestGetAllSurfacesOfProcess %d", pid);
return mp_dBusWindowManagerProxy->getAllSurfacesOfProcess(pid);
}
+#endif
int LayoutHandler::requestGetSurfaceStatus(int surfaceId)
{