Keyboard settings Blank screen issue fixed
[framework/uifw/ise-default.git] / mcf / include / mcfimageproxy.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.tizenopensource.org/license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #ifndef __MCF_IMAGE_PROXY_H__
19 #define __MCF_IMAGE_PROXY_H__
20
21 namespace mcf
22 {
23 class CMCFImageProxy
24 {
25 private:
26         static CMCFImageProxy* sInstance; /* For singleton */
27         CMCFImageProxy();
28 public :
29     ~CMCFImageProxy();
30     
31     static CMCFImageProxy* get_instance();
32
33     mcfimage get_image(const mcfchar* imgPath);
34     void free_images();
35
36 private:
37     static const mcfint MAX_IMAGE_PATH_LEN = 255;
38     typedef struct _McfImageCacheItem {
39         mcfchar imgPath[MAX_IMAGE_PATH_LEN + 1];
40         mcfimage imgData;
41     } McfImageCacheItem;
42
43     static const mcfint IMAGE_PROXY_SIZE = 1;
44     McfImageCacheItem mImageCacheItems[IMAGE_PROXY_SIZE];
45 };
46 } /* End of mcf namespace */
47 #endif