Follow the include-order coding conventions
[platform/core/uifw/dali-adaptor.git] / adaptors / base / interfaces / adaptor-internal-services.h
1 #ifndef __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
2 #define __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/core.h>
23 #include <dali/integration-api/gl-abstraction.h>
24
25 // INTERNAL INCLUDES
26 #include <base/interfaces/egl-factory-interface.h>
27 #include <base/interfaces/trigger-event-interface.h>
28 #include <base/interfaces/performance-interface.h>
29 #include <base/interfaces/vsync-monitor-interface.h>
30 #include <base/interfaces/kernel-trace-interface.h>
31 #include <render-surface-impl.h> // @todo move to base/interfaces
32
33
34 namespace Dali
35 {
36
37 namespace Internal
38 {
39
40 namespace Adaptor
41 {
42
43 /**
44  * A class to contain various interfaces provided by the adaptor which
45  * can be used by the cross platform parts of adaptor.
46  * E.g. any files held in adaptors/base/ directory
47  *
48  */
49 class AdaptorInternalServices
50 {
51
52 public:
53
54   /**
55    * @return core
56    */
57   virtual Dali::Integration::Core& GetCore() = 0;
58
59   /**
60    * @return platform abstraction
61    */
62   virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface()  = 0;
63
64   /**
65    * @return gles abstraction
66    */
67   virtual Dali::Integration::GlAbstraction& GetGlesInterface()  = 0;
68
69   /**
70    * @return egl factory
71    */
72   virtual EglFactoryInterface& GetEGLFactoryInterface() const  = 0;
73
74   /**
75    * @return trigger event
76    */
77   virtual TriggerEventInterface& GetTriggerEventInterface()  = 0;
78
79   /**
80    * @return render surface
81    */
82   virtual RenderSurface* GetRenderSurfaceInterface()  = 0;
83
84   /**
85    * @return vsync monitor interface
86    */
87   virtual VSyncMonitorInterface* GetVSyncMonitorInterface()  = 0;
88
89   /**
90    * @return performance interface
91    */
92   virtual PerformanceInterface* GetPerformanceInterface()  = 0;
93
94   /**
95    * @return kernel trace interface
96    */
97   virtual KernelTraceInterface& GetKernelTraceInterface()  = 0;
98
99 protected:
100
101   /**
102    * constructor
103    */
104   AdaptorInternalServices()
105   {
106   };
107
108   /**
109    * virtual destructor
110    */
111   virtual ~AdaptorInternalServices()
112   {
113   };
114
115   // Undefined copy constructor.
116   AdaptorInternalServices( const AdaptorInternalServices& );
117
118   // Undefined assignment operator.
119   AdaptorInternalServices& operator=( const AdaptorInternalServices& );
120 };
121
122 } // namespace Internal
123
124 } // namespace Adaptor
125
126 } // namespace Dali
127
128 #endif // __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__