-//\r
-\r
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
-//\r
-// Licensed under the Flora License, Version 1.0 (the License);\r
-// you may not use this file except in compliance with the License.\r
-// You may obtain a copy of the License at\r
-//\r
-// http://floralicense.org/license/\r
-//\r
-// Unless required by applicable law or agreed to in writing, software\r
-// distributed under the License is distributed on an AS IS BASIS,\r
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-// See the License for the specific language governing permissions and\r
-// limitations under the License.\r
-//\r
-//!Internet\r
-/*@file: IntCommonLib.h\r
- *@brief: To define the common method of Internet application\r
- */\r
-\r
-#ifndef _INT_COMMON_LIB_H_\r
-#define _INT_COMMON_LIB_H_\r
-\r
-#include <FGraphics.h>\r
-\r
-/**\r
-* @struct CommonBitmapTable\r
-*\r
-* Defines the table to store a bitmap\r
-*\r
-*/\r
-struct CommonBitmapTable\r
-{\r
- Tizen::Graphics::Bitmap* ptr;\r
- int refcount;\r
- Tizen::Base::String filename;\r
- int width;\r
- int height;\r
-};\r
-\r
-/**\r
-* @enum CommonBitmapId\r
-*\r
-* Defines a ID for a Bitmap path\r
-*\r
-*/\r
-enum CommonBitmapId\r
-{\r
-\r
-};\r
-\r
-/**\r
- * @class CommonUtil\r
- * @brief This file declares common methods to be used\r
- */\r
-class CommonUtil\r
-{\r
-public:\r
-\r
- /**\r
- * Returns a pointer to a bitmap value using ID\r
- *\r
- * @return Pointer to a bitmap value\r
- * @param[in] CommonBitmapId The ID of the Bitmap\r
- * @remarks To work properly, the existing CommonBitmapId has to be passed.\r
- */\r
- static Tizen::Graphics::Bitmap* GetBitmap(uint id);\r
-\r
- /**\r
- * Returns a pointer to a bitmap value using bitmap path, bitmap width and bitmap height\r
- *\r
- * @return Pointer to a bitmap value\r
- * @param[in] strPath The path of the existing bitmap stored in res folder\r
- * @param[in] width The width of the existing bitmap stored in res folder\r
- * @param[in] height The height of the existing bitmap stored in res folder\r
- * @remarks To work properly, the existing strPath, its width and height has to be passed.\r
- */\r
- static Tizen::Graphics::Bitmap* GetBitmapN(const Tizen::Base::String& strPath, const int width, const int height);\r
-\r
- /**\r
- * Gets a bitmap using ID assigned to it.\r
- *\r
- * @return Bitmap\r
- * @param[in] Path\r
- * @param[in] width\r
- * @param[in] height\r
- * @remarks Releases all the bitmaps stored\r
- */\r
- static Tizen::Graphics::Bitmap* GetNinepatchedBitmapN(const Tizen::Base::String& strPath, const int width, const int height);\r
-\r
- /**\r
- * Returns the string value using ID\r
- *\r
- * @return String\r
- * @param[in] resourceId The ID of the resource string\r
- * @remarks To work properly, the existing resourceId has to be passed.\r
- */\r
- static Tizen::Base::String GetString(const Tizen::Base::String& resourceId);\r
-\r
-\r
-private:\r
- static CommonBitmapTable __commonBitmapTable[];\r
-};\r
-\r
-#endif //_INT_COMMON_LIB_H_\r
+//
+
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora License, Version 1.1 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+//!Internet
+/*@file: IntCommonLib.h
+ *@brief: To define the common method of Internet application
+ */
+
+#ifndef _INT_COMMON_LIB_H_
+#define _INT_COMMON_LIB_H_
+
+#include <FGraphics.h>
+
+/**
+* @struct CommonBitmapTable
+*
+* Defines the table to store a bitmap
+*
+*/
+struct CommonBitmapTable
+{
+ Tizen::Graphics::Bitmap* ptr;
+ int refcount;
+ Tizen::Base::String filename;
+ int width;
+ int height;
+};
+
+/**
+* @enum CommonBitmapId
+*
+* Defines a ID for a Bitmap path
+*
+*/
+enum CommonBitmapId
+{
+
+};
+
+/**
+ * @class CommonUtil
+ * @brief This file declares common methods to be used
+ */
+class CommonUtil
+{
+public:
+
+ /**
+ * Returns a pointer to a bitmap value using ID
+ *
+ * @return Pointer to a bitmap value
+ * @param[in] CommonBitmapId The ID of the Bitmap
+ * @remarks To work properly, the existing CommonBitmapId has to be passed.
+ */
+ static Tizen::Graphics::Bitmap* GetBitmap(uint id);
+
+ /**
+ * Returns a pointer to a bitmap value using bitmap path, bitmap width and bitmap height
+ *
+ * @return Pointer to a bitmap value
+ * @param[in] strPath The path of the existing bitmap stored in res folder
+ * @param[in] width The width of the existing bitmap stored in res folder
+ * @param[in] height The height of the existing bitmap stored in res folder
+ * @remarks To work properly, the existing strPath, its width and height has to be passed.
+ */
+ static Tizen::Graphics::Bitmap* GetBitmapN(const Tizen::Base::String& strPath, const int width, const int height);
+
+ /**
+ * Gets a bitmap using ID assigned to it.
+ *
+ * @return Bitmap
+ * @param[in] Path
+ * @param[in] width
+ * @param[in] height
+ * @remarks Releases all the bitmaps stored
+ */
+ static Tizen::Graphics::Bitmap* GetNinepatchedBitmapN(const Tizen::Base::String& strPath, const int width, const int height);
+
+ /**
+ * Returns the string value using ID
+ *
+ * @return String
+ * @param[in] resourceId The ID of the resource string
+ * @remarks To work properly, the existing resourceId has to be passed.
+ */
+ static Tizen::Base::String GetString(const Tizen::Base::String& resourceId);
+
+ /**
+ * Gets the font size from the settings
+ *
+ * @return Int
+ * @param[in] void
+ * @remarks Gets the font size
+ */
+ static int GetFontSize(void);
+
+private:
+ static CommonBitmapTable __commonBitmapTable[];
+};
+
+#endif //_INT_COMMON_LIB_H_