2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (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
8 // http://floralicense.org/license/
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.
18 * @file PhnAppUtility.h
19 * @brief This is the header file for the %AppUtility class.
21 * This header file contains the declarations for %AppUtility class.
23 #ifndef _PHN_APP_UTILITY_H_
24 #define _PHN_APP_UTILITY_H_
29 enum KeypadTextPosition
37 POSITION_BOTTOM_CENTER
42 * @brief This class provides common functionalities across application through static member functions.
43 * Its instance cannot needed.
50 AppUtility(const AppUtility& obj);
51 virtual ~AppUtility(void);
55 * Fetches the String from resources based on
56 * resource id provided by "stringId".
58 static Tizen::Base::String GetResourceString(const Tizen::Base::String& stringId);
61 * Fetches the Bitmap from resources and
62 * scales it to specified width and height, if provided.
64 static Tizen::Graphics::Bitmap* GetBitmapFromResourcesN(const Tizen::Base::String& imagePath, int imgWidth = 0, int imgHeight = 0);
67 #endif // _PHN_APP_UTILITY_H_