summaryrefslogtreecommitdiffstats
path: root/samplehomescreeninterfaceapp
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-23 14:29:20 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-10-23 14:29:20 +0900
commite33fb7867a36b803f7ae2a1cb8f1a3b4f9076e08 (patch)
treeef2972d4b72a7a1cc63ac69155574278b2e0be8c /samplehomescreeninterfaceapp
parentf5c14333d2170ae9babed53ea530828569a830ff (diff)
Split libhomescreen from agl-homescreen-service-2017
Split libhomescreen library from agl-homescreen-service-2017. Relative commit: https://gerrit.automotivelinux.org/gerrit/#/c/11413/ Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'samplehomescreeninterfaceapp')
-rw-r--r--samplehomescreeninterfaceapp/samplehomescreeninterfaceapp.pro13
-rw-r--r--samplehomescreeninterfaceapp/src/main.cpp31
-rw-r--r--samplehomescreeninterfaceapp/src/sampleclass.cpp42
-rw-r--r--samplehomescreeninterfaceapp/src/sampleclass.hpp24
4 files changed, 0 insertions, 110 deletions
diff --git a/samplehomescreeninterfaceapp/samplehomescreeninterfaceapp.pro b/samplehomescreeninterfaceapp/samplehomescreeninterfaceapp.pro
deleted file mode 100644
index 92268a0..0000000
--- a/samplehomescreeninterfaceapp/samplehomescreeninterfaceapp.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = app
-TARGET = SampleHomeScreenInterfaceApp
-CONFIG -= qt
-
-SOURCES += src/main.cpp \
- src/sampleclass.cpp
-
-HEADERS += \
- src/sampleclass.hpp
-
-INCLUDEPATH += $$PWD/../libhomescreen/include/
-
-LIBS += -L$$OUT_PWD/../libhomescreen -lhomescreen
diff --git a/samplehomescreeninterfaceapp/src/main.cpp b/samplehomescreeninterfaceapp/src/main.cpp
deleted file mode 100644
index 5b48855..0000000
--- a/samplehomescreeninterfaceapp/src/main.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <iostream>
-#include "sampleclass.hpp"
-
-using namespace std;
-
-int main()
-{
- cout << "SampleHomeScreenInterfaceApp" << endl;
- cout << "v0.6.0" << endl;
-
- SampleClass *sampleClass = new SampleClass();
-
- //sRectangle test = sampleClass->getLayoutRenderAreaForSurfaceId(1);
-
- sampleClass->hardKeyPressed(100);
- sampleClass->hardKeyPressed(101);
- sampleClass->hardKeyPressed(102);
-
- /*sRectangle renderArea;
- renderArea.x = 0;
- renderArea.y = 1;
- renderArea.width = 12;
- renderArea.height = 13;
- sampleClass->renderSurfaceToArea(1, renderArea);*/
-
- //sampleClass->requestSurfaceIdToFullScreen(1);
-
- delete sampleClass;
-
- return 0;
-}
diff --git a/samplehomescreeninterfaceapp/src/sampleclass.cpp b/samplehomescreeninterfaceapp/src/sampleclass.cpp
deleted file mode 100644
index a5e1fac..0000000
--- a/samplehomescreeninterfaceapp/src/sampleclass.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "sampleclass.hpp"
-
-SampleClass::SampleClass() :
- mp_libHomeScreen(0)
-{
- mp_libHomeScreen = new LibHomeScreen();
-}
-
-SampleClass::~SampleClass()
-{
- delete mp_libHomeScreen;
-}
-
-std::vector<int> SampleClass::getAllSurfacesOfProcess(int pid)
-{
- return mp_libHomeScreen->getAllSurfacesOfProcess(pid);
-}
-
-void SampleClass::hardKeyPressed(int key)
-{
- mp_libHomeScreen->hardKeyPressed(key);
-}
-
-int SampleClass::getSurfaceStatus(int surfaceId)
-{
- return mp_libHomeScreen->getSurfaceStatus(surfaceId);
-}
-
-void SampleClass::renderSurfaceToArea(int surfaceId, int layoutArea)
-{
- mp_libHomeScreen->renderSurfaceToArea(surfaceId, layoutArea);
-}
-
-bool SampleClass::renderAppToAreaAllowed(int appCategory, int layoutArea)
-{
- return mp_libHomeScreen->renderAppToAreaAllowed(appCategory, layoutArea);
-}
-
-void SampleClass::requestSurfaceIdToFullScreen(int surfaceId)
-{
- mp_libHomeScreen->requestSurfaceIdToFullScreen(surfaceId);
-}
diff --git a/samplehomescreeninterfaceapp/src/sampleclass.hpp b/samplehomescreeninterfaceapp/src/sampleclass.hpp
deleted file mode 100644
index fd00afe..0000000
--- a/samplehomescreeninterfaceapp/src/sampleclass.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef SAMPLECLASS_HPP
-#define SAMPLECLASS_HPP
-
-#include "libhomescreen.hpp"
-#include <vector>
-
-class SampleClass
-{
-public:
- SampleClass();
- ~SampleClass();
-
- std::vector<int> getAllSurfacesOfProcess(int pid);
- int getSurfaceStatus(int surfaceId);
- void hardKeyPressed(int key);
- void renderSurfaceToArea(int surfaceId, int layoutArea);
- bool renderAppToAreaAllowed(int appCategory, int layoutArea);
- void requestSurfaceIdToFullScreen(int surfaceId);
-
-private:
- LibHomeScreen *mp_libHomeScreen;
-};
-
-#endif // SAMPLECLASS_HPP