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 <trigger-event-interface.h>
27 #include <trigger-event-factory-interface.h>
28 #include <base/interfaces/egl-factory-interface.h>
29 #include <base/interfaces/socket-factory-interface.h>
30 #include <base/interfaces/performance-interface.h>
31 #include <base/interfaces/vsync-monitor-interface.h>
32 #include <base/interfaces/kernel-trace-interface.h>
33 #include <render-surface.h>
46 * A class to contain various interfaces provided by the adaptor which
47 * can be used by the cross platform parts of adaptor.
48 * E.g. any files held in adaptors/base/ directory
51 class AdaptorInternalServices
59 virtual Dali::Integration::Core& GetCore() = 0;
62 * @return platform abstraction
64 virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface() = 0;
67 * @return gles abstraction
69 virtual Dali::Integration::GlAbstraction& GetGlesInterface() = 0;
74 virtual EglFactoryInterface& GetEGLFactoryInterface() const = 0;
77 * @return trigger event
79 virtual TriggerEventInterface& GetTriggerEventInterface() = 0;
82 * @return trigger event factory interface
84 virtual TriggerEventFactoryInterface& GetTriggerEventFactoryInterface() = 0;
87 * @return socket factory interface
89 virtual SocketFactoryInterface& GetSocketFactoryInterface() = 0;
92 * @return render surface
94 virtual RenderSurface* GetRenderSurfaceInterface() = 0;
97 * @return vsync monitor interface
99 virtual VSyncMonitorInterface* GetVSyncMonitorInterface() = 0;
102 * @return performance interface
104 virtual PerformanceInterface* GetPerformanceInterface() = 0;
107 * @return kernel trace interface
109 virtual KernelTraceInterface& GetKernelTraceInterface() = 0;
116 AdaptorInternalServices()
123 virtual ~AdaptorInternalServices()
127 // Undefined copy constructor.
128 AdaptorInternalServices( const AdaptorInternalServices& );
130 // Undefined assignment operator.
131 AdaptorInternalServices& operator=( const AdaptorInternalServices& );
134 } // namespace Internal
136 } // namespace Adaptor
140 #endif // __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__