summaryrefslogtreecommitdiffstats
path: root/samplehomescreeninterfaceapp
diff options
context:
space:
mode:
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