2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (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.
18 * @file FUiCtrl_FooterItemImpl.h
19 * @brief This is the header file for the %_FooterItemImpl class.
21 * This header file contains the declarations of the %_FooterItemImpl class.
24 #ifndef _FUI_CTRL_INTERNAL_FOOTER_ITEM_IMPL_H_
25 #define _FUI_CTRL_INTERNAL_FOOTER_ITEM_IMPL_H_
28 #include <FUiCtrlFooterItem.h>
31 namespace Tizen { namespace Ui { namespace Controls
34 static const int FOOTER_ITEM_ACTION_ID_MIN = 0;
35 static const int FOOTER_ITEM_ACTION_ID_MAX = INT_MAX;
36 static const int FOOTER_ITEM_MAX_STATE_COUNT = 5;
39 : public Tizen::Base::Object
43 _FooterItemImpl(FooterItem* pPublic);
45 virtual ~_FooterItemImpl(void);
47 static const _FooterItemImpl* GetInstance(const FooterItem& footerItem);
49 static _FooterItemImpl* GetInstance(FooterItem& footerItem);
51 result Construct(int actionId);
53 int GetActionId(void) const;
55 const Tizen::Graphics::Bitmap* GetBackgroundBitmap(FooterItemStatus status) const;
57 const Tizen::Graphics::Bitmap* GetIcon(FooterItemStatus status) const;
59 Tizen::Base::String GetText(void) const;
61 result SetActionId(int actionId);
63 result SetBackgroundBitmap(FooterItemStatus status, const Tizen::Graphics::Bitmap* pBitmap);
65 result SetIcon(FooterItemStatus status, const Tizen::Graphics::Bitmap* pIcon);
67 result SetText(const Tizen::Base::String& text);
71 _FooterItemImpl(const _FooterItemImpl& footerItem);
73 _FooterItemImpl& operator =(const _FooterItemImpl& footerItem);
78 Tizen::Base::String __itemText;
79 const Tizen::Graphics::Bitmap* __pIconBitmap[FOOTER_ITEM_MAX_STATE_COUNT];
80 const Tizen::Graphics::Bitmap* __pFooterItemBackgroundBitmap[FOOTER_ITEM_MAX_STATE_COUNT];
82 friend class _FooterImpl;
86 }}} // Tizen::Ui::Controls
88 #endif // _FUI_CTRL_INTERNAL_FOOTER_ITEM_IMPL_H_