Revert "Separating integration-devel from devel package for 2nd party to use adaptor"
[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-factory-interface.h>
28 #include <base/interfaces/socket-factory-interface.h>
29 #include <base/interfaces/performance-interface.h>
30 #include <base/interfaces/vsync-monitor-interface.h>
31 #include <base/interfaces/kernel-trace-interface.h>
32 #include <render-surface-impl.h> // @todo move to base/interfaces
33
34
35 namespace Dali
36 {
37
38 namespace Internal
39 {
40
41 namespace Adaptor
42 {
43
44 /**
45  * A class to contain various interfaces provided by the adaptor which
46  * can be used by the cross platform parts of adaptor.
47  * E.g. any files held in adaptors/base/ directory
48  *
49  */
50 class AdaptorInternalServices
51 {
52
53 public:
54
55   /**
56    * @return core
57    */
58   virtual Dali::Integration::Core& GetCore() = 0;
59
60   /**
61    * @return platform abstraction
62    */
63   virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface()  = 0;
64
65   /**
66    * @return gles abstraction
67    */
68   virtual Dali::Integration::GlAbstraction& GetGlesInterface()  = 0;
69
70   /**
71    * @return egl factory
72    */
73   virtual EglFactoryInterface& GetEGLFactoryInterface() const  = 0;
74
75   /**
76    * @return trigger event
77    */
78   virtual TriggerEventInterface& GetTriggerEventInterface()  = 0;
79
80   /**
81    * @return trigger event factory interface
82    */
83   virtual TriggerEventFactoryInterface& GetTriggerEventFactoryInterface() = 0;
84
85   /**
86    * @return socket factory interface
87    */
88   virtual SocketFactoryInterface& GetSocketFactoryInterface() = 0;
89
90   /**
91    * @return render surface
92    */
93   virtual RenderSurface* GetRenderSurfaceInterface()  = 0;
94
95   /**
96    * @return vsync monitor interface
97    */
98   virtual VSyncMonitorInterface* GetVSyncMonitorInterface()  = 0;
99
100   /**
101    * @return performance interface
102    */
103   virtual PerformanceInterface* GetPerformanceInterface()  = 0;
104
105   /**
106    * @return kernel trace interface
107    */
108   virtual KernelTraceInterface& GetKernelTraceInterface()  = 0;
109
110 protected:
111
112   /**
113    * constructor
114    */
115   AdaptorInternalServices()
116   {
117   };
118
119   /**
120    * virtual destructor
121    */
122   virtual ~AdaptorInternalServices()
123   {
124   };
125
126   // Undefined copy constructor.
127   AdaptorInternalServices( const AdaptorInternalServices& );
128
129   // Undefined assignment operator.
130   AdaptorInternalServices& operator=( const AdaptorInternalServices& );
131 };
132
133 } // namespace Internal
134
135 } // namespace Adaptor
136
137 } // namespace Dali
138
139 #endif // __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__