[dali_2.3.25] Merge branch 'devel/master'
[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) 2020 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  * @brief
28  */
29 class ImageLoaderPlugin
30 {
31 public:
32   /**
33    * @brief Constructor.
34    */
35   ImageLoaderPlugin()
36   {
37   }
38
39   /**
40    * @brief Destructor.
41    */
42   virtual ~ImageLoaderPlugin()
43   {
44   }
45
46   /**
47    * @brief Get the image decorder
48    * @param[in] filename The path to the resource.
49    * @return BitmapLoader
50    */
51   virtual const ImageLoader::BitmapLoader* BitmapLoaderLookup(const std::string& filename) const = 0;
52
53   /**
54    * @brief Function pointer called in adaptor to create a image loading plugin instance.
55    * @return Pointer to the newly created plugin object
56    */
57   typedef ImageLoaderPlugin* CreateImageLoaderPlugin(void);
58
59   /**
60    * @brief Function pointer called in adaptor to destory a image loading plugin instance.
61    */
62   typedef void DestroyImageLoaderPlugin(ImageLoaderPlugin* plugin);
63 };
64
65 } // namespace Dali
66
67 #endif