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_HeaderItemImpl.h
19 * @brief This is the header file for the %_HeaderItemImpl class.
21 * This header file contains the declarations of the %_HeaderItemImpl class.
24 #ifndef _FUI_CTRL_INTERNAL_HEADER_ITEM_IMPL_H_
25 #define _FUI_CTRL_INTERNAL_HEADER_ITEM_IMPL_H_
28 #include <FUiCtrlHeaderItem.h>
31 namespace Tizen { namespace Ui { namespace Controls
34 static const int HEADER_ITEM_ACTION_ID_MIN = 0;
35 static const int HEADER_ITEM_ACTION_ID_MAX = INT_MAX;
36 static const int HEADER_ITEM_MAX_STATE_COUNT = 5;
39 : public Tizen::Base::Object
42 _HeaderItemImpl(HeaderItem* pPublic);
44 virtual ~_HeaderItemImpl(void);
46 static const _HeaderItemImpl* GetInstance(const HeaderItem& headerItem);
48 static _HeaderItemImpl* GetInstance(HeaderItem& headerItem);
50 result Construct(int actionId);
52 int GetActionId(void) const;
54 const Tizen::Graphics::Bitmap* GetBackgroundBitmap(HeaderItemStatus status) const;
56 const Tizen::Graphics::Bitmap* GetIcon(HeaderItemStatus status) const;
58 Tizen::Base::String GetText(void) const;
60 result SetActionId(int actionId);
62 result SetBackgroundBitmap(HeaderItemStatus status, const Tizen::Graphics::Bitmap* pBitmap);
64 result SetIcon(HeaderItemStatus status, const Tizen::Graphics::Bitmap* pIcon);
66 result SetText(const Tizen::Base::String& text);
70 _HeaderItemImpl(const _HeaderItemImpl& headerItem);
72 _HeaderItemImpl& operator =(const _HeaderItemImpl& headerItem);
77 Tizen::Base::String __itemText;
78 const Tizen::Graphics::Bitmap* __pIconBitmap[HEADER_ITEM_MAX_STATE_COUNT];
79 const Tizen::Graphics::Bitmap* __pHeaderItemBackgroundBitmap[HEADER_ITEM_MAX_STATE_COUNT];
81 friend class _HeaderImpl;
85 }}} // Tizen::Ui::Controls
87 #endif // _FUI_CTRL_INTERNAL_HEADER_ITEM_IMPL_H_