Add 2017 to copyright
[staging/HomeScreen.git] / HomeScreen / src / homescreencontrolinterface.h
1 /*
2  * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef HOMESCREENCONTROLINTERFACE_H
18 #define HOMESCREENCONTROLINTERFACE_H
19
20 #include <QObject>
21 #include "include/homescreen.hpp"
22 #include "homescreen_adaptor.h"
23 #include <include/appframework.hpp>
24 #include <appframework_proxy.h>
25
26 class HomeScreenControlInterface : public QObject
27 {
28     Q_OBJECT
29 public:
30     explicit HomeScreenControlInterface(QObject *parent = 0);
31     ~HomeScreenControlInterface();
32
33 signals:
34     void newRequestsToBeVisibleApp(int pid);
35
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);
41
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);
50 private:
51     HomescreenAdaptor *mp_homeScreenAdaptor;
52     org::agl::appframework *mp_dBusAppFrameworkProxy;
53 };
54
55 #endif // HOMESCREENCONTROLINTERFACE_H