support image loader extension
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / image-loader-plugin.h
1 #ifndef __DALI_IMAGE_LOADING_PLUGIN_H__
2 #define __DALI_IMAGE_LOADING_PLUGIN_H__
3
4 /*
5  * Copyright (c) 2018 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/devel-api/adaptor-framework/image-loader-input.h>
23
24 namespace Dali
25 {
26
27 /**
28  * @brief
29  */
30 class ImageLoaderPlugin
31 {
32 public:
33
34   /**
35    * @brief Constructor.
36    */
37   ImageLoaderPlugin(){}
38
39   /**
40    * @brief Destructor.
41    */
42   virtual ~ImageLoaderPlugin(){}
43
44   /**
45    * @brief Get the image decorder
46    * @param[in] filename The path to the resource.
47    * @return BitmapLoader
48    */
49   virtual const ImageLoader::BitmapLoader* BitmapLoaderLookup( const std::string& filename ) const = 0;
50
51   /**
52    * @brief Function pointer called in adaptor to create a image loading plugin instance.
53    * @return Pointer to the newly created plugin object
54    */
55   typedef ImageLoaderPlugin* CreateImageLoaderPlugin( void );
56
57   /**
58    * @brief Function pointer called in adaptor to destory a image loading plugin instance.
59    */
60   typedef void DestroyImageLoaderPlugin( ImageLoaderPlugin* plugin );
61
62 };
63
64 } // namespace Dali;
65
66 #endif