1 #ifndef __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
2 #define __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/integration-api/core.h>
23 #include <dali/integration-api/gl-abstraction.h>
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
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
50 class AdaptorInternalServices
58 virtual Dali::Integration::Core& GetCore() = 0;
61 * @return platform abstraction
63 virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface() = 0;
66 * @return gles abstraction
68 virtual Dali::Integration::GlAbstraction& GetGlesInterface() = 0;
73 virtual EglFactoryInterface& GetEGLFactoryInterface() const = 0;
76 * @return trigger event
78 virtual TriggerEventInterface& GetTriggerEventInterface() = 0;
81 * @return trigger event factory interface
83 virtual TriggerEventFactoryInterface& GetTriggerEventFactoryInterface() = 0;
86 * @return socket factory interface
88 virtual SocketFactoryInterface& GetSocketFactoryInterface() = 0;
91 * @return render surface
93 virtual RenderSurface* GetRenderSurfaceInterface() = 0;
96 * @return vsync monitor interface
98 virtual VSyncMonitorInterface* GetVSyncMonitorInterface() = 0;
101 * @return performance interface
103 virtual PerformanceInterface* GetPerformanceInterface() = 0;
106 * @return kernel trace interface
108 virtual KernelTraceInterface& GetKernelTraceInterface() = 0;
115 AdaptorInternalServices()
122 virtual ~AdaptorInternalServices()
126 // Undefined copy constructor.
127 AdaptorInternalServices( const AdaptorInternalServices& );
129 // Undefined assignment operator.
130 AdaptorInternalServices& operator=( const AdaptorInternalServices& );
133 } // namespace Internal
135 } // namespace Adaptor
139 #endif // __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__