LayerManagerControl: refactored helper.cpp to feature specific implementation files
[profile/ivi/layer-management.git] / LayerManagerExamples / LayerManagerControl / include / LMControl.h
1 /***************************************************************************
2  *
3  * Copyright 2012 BMW Car IT GmbH
4  *
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  ****************************************************************************/
19
20 #ifndef __LMCONTROL_H__
21 #define __LMCONTROL_H__
22
23 #include <map>
24 using std::map;
25
26 #include <vector>
27 using std::vector;
28
29 #include <set>
30 using std::set;
31
32 #include <string>
33 using std::string;
34 //=============================================================================
35 //print.cpp
36 //=============================================================================
37
38 /*
39  * Functions for printing arrays, vector and maps
40  */
41 void printArray(const char* text, unsigned int* array, int count);
42
43 template<typename T>
44 void printArray(const char* text, T* array, int count);
45
46 template<typename T>
47 void printVector(const char* text, vector<T> v);
48
49 template<typename K, typename V>
50 void printMap(const char* text, std::map<K, V> m);
51
52 /*
53  * Prints information about the specified screen
54  */
55 void printScreenProperties(unsigned int screenid, const char* prefix = "");
56
57 /*
58  * Prints information about the specified layer
59  */
60 void printLayerProperties(unsigned int layerid, const char* prefix = "");
61
62 /*
63  * Prints information about the specified surface
64  */
65 void printSurfaceProperties(unsigned int surfaceid, const char* prefix = "");
66
67 /*
68  * Prints information about rendered scene
69  * (All screens, all rendered layers, all rendered surfaces)
70  */
71 void printScene();
72
73
74 //=============================================================================
75 //control.cpp
76 //=============================================================================
77 void getCommunicatorPerformance();
78 void setSurfaceKeyboardFocus(t_ilm_surface surface);
79 void getKeyboardFocus();
80 void setSurfaceAcceptsInput(t_ilm_surface surfaceId, string kbdPointerTouch, t_ilm_bool acceptance);
81 void testNotificationLayer(t_ilm_layer layerid);
82 void watchLayer(unsigned int* layerids, unsigned int layeridCount);
83 void watchSurface(unsigned int* surfaceids, unsigned int surfaceidCount);
84 void setOptimization(t_ilm_uint id, t_ilm_uint mode);
85 void getOptimization(t_ilm_uint id);
86 #endif