aboutsummaryrefslogtreecommitdiffstats
path: root/SampleHomeScreenInterfaceApp/src/sampleclass.cpp
blob: a5e1fac30dada09602e0e9c3bd3752c8aa125304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#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);
}