3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.1 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 /*@file: IntFaviconManager.h
20 *@brief: This is the header file for FaviconManager class
24 #ifndef _FAVICON_MANAGER_H
25 #define _FAVICON_MANAGER_H
30 #include <FGraphics.h>
35 #include "IntPresentationModelBase.h"
38 * @class FaviconManager
39 * @brief This class declares functions which will manage Favicon
42 :public PresentationModelBase
47 * @brief The method used to get the already created instance of the FaviconManager
49 static FaviconManager* GetInstance(void);
52 * This function selects the favicons from the table
54 * @return A Bitmap Pointer
55 * @param no parameters
57 Tizen::Graphics::Bitmap* GetDefaultFaviconN(void);
60 * This function selects the favicons from the table
62 * @return A Bitmap Pointer
63 * @param ID the Favicon ID
65 Tizen::Graphics::Bitmap* GetFaviconN(Tizen::Base::String& ID);
68 * This function adds the favicons to the Favicon table
71 * @param bitmap The bitmap for favicon
72 * @param URL The URL for the corresponding favicon
74 Tizen::Base::String SaveFavicon(Tizen::Graphics::Bitmap& bitmap, Tizen::Base::String& URL);
79 * @brief The Default Constructor
84 * @brief The Default Destructor
86 ~FaviconManager(void);
91 FaviconManager(const FaviconManager& settingModelObj);
97 FaviconManager& operator=(const FaviconManager& settingModelObj);
100 *@brief Initialize storage service
102 result Construct(void);
105 * @brief The method used to create the instance of the SettingsManager class
107 static void CreateInstance(void);
110 * @brief The method used to remove the already created instance of the SettingsManager
112 static void DestroyInstance(void);
115 * This function generates the filename
120 Tizen::Base::String GenerateFileName(void);
123 * This function generates the filename
126 * @param bitmap The bitmap
127 * filePath The path where bitmap is supposed to be saved
129 void SaveBitmapToFile(Tizen::Graphics::Bitmap& bitmap, Tizen::Base::String& filePath);
133 static Tizen::Graphics::Bitmap* __pDefaultBitmap;
134 static FaviconManager* __pFaviconManagerInstance;
137 #endif // _FAVICON_MANAGER_H