2 * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef HOMESCREENCONTROLINTERFACE_H
18 #define HOMESCREENCONTROLINTERFACE_H
21 #include "include/homescreen.hpp"
22 #include "homescreen_adaptor.h"
23 #include <include/appframework.hpp>
24 #include <appframework_proxy.h>
26 class HomeScreenControlInterface : public QObject
30 explicit HomeScreenControlInterface(QObject *parent = 0);
31 ~HomeScreenControlInterface();
34 void newRequestsToBeVisibleApp(int pid);
36 QList<int> newRequestGetAllSurfacesOfProcess(int pid);
37 int newRequestGetSurfaceStatus(int surfaceId);
38 void newRequestRenderSurfaceToArea(int surfaceId, int layoutArea);
39 bool newRequestRenderSurfaceToAreaAllowed(int surfaceId, int layoutArea);
40 void newRequestSurfaceIdToFullScreen(int surfaceId);
42 //from homescreen_adaptor.h
43 public Q_SLOTS: // METHODS
44 QList<int> getAllSurfacesOfProcess(int pid);
45 int getSurfaceStatus(int surfaceId);
46 void hardKeyPressed(int key);
47 void renderSurfaceToArea(int surfaceId, int layoutArea);
48 bool renderAppToAreaAllowed(int appCategory, int layoutArea);
49 void requestSurfaceIdToFullScreen(int surfaceId);
51 HomescreenAdaptor *mp_homeScreenAdaptor;
52 org::agl::appframework *mp_dBusAppFrameworkProxy;
55 #endif // HOMESCREENCONTROLINTERFACE_H