Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_ListContextItemImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://floralicense.org/license/
10 //
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.
16 //
17
18 /**
19  * @file        FUiCtrl_ListContextItemImpl.h
20  * @brief       This is the header file for the _ListContextItemImpl class.
21  *
22  * This header file contains the declarations of the _ListContextItemImpl
23  * class.
24  */
25
26 #ifndef _FUI_CTRL_LIST_CONTEXT_ITEM_IMPL_H_
27 #define _FUI_CTRL_LIST_CONTEXT_ITEM_IMPL_H_
28
29 #include "FUiCtrl_ListViewImpl.h"
30
31 namespace Tizen { namespace Ui { namespace Controls
32 {
33
34 class ListContextItem;
35 class _ListViewContextItem;
36
37 class _ListContextItemImpl
38         : public Tizen::Base::Object
39 {
40 public:
41         static _ListContextItemImpl* CreateListContextItemImplN(ListContextItem* pPublic);
42
43         virtual ~_ListContextItemImpl(void);
44
45         virtual const char* GetPublicClassName(void) const;
46
47         virtual const ListContextItem& GetPublic(void) const;
48
49         virtual ListContextItem& GetPublic(void);
50
51         result AddElement(int elementId, const Tizen::Base::String& text, bool enable = true);
52
53         result AddElement(int elementId, const Tizen::Graphics::Bitmap& normalBitmap, const Tizen::Graphics::Bitmap& pressedBitmap,
54                         const Tizen::Graphics::Bitmap* pHighlightedBitmap = null, bool enable = true);
55
56         result AddElement(int elementId, const Tizen::Base::String& text, const Tizen::Graphics::Bitmap& normalBitmap,
57                         const Tizen::Graphics::Bitmap& pressedBitmap, const Tizen::Graphics::Bitmap* pHighlightedBitmap = null, bool enable = true);
58
59         Tizen::Graphics::Color GetBackgroundColor(void) const;
60
61         result SetBackgroundColor(const Tizen::Graphics::Color& color);
62
63         result SetBackgroundBitmap(const Tizen::Graphics::Bitmap* pBitmap);
64
65         _ListViewContextItem* GetContextItem(void) const;
66
67 public:
68         static _ListContextItemImpl* GetInstance(ListContextItem& listContextItem);
69
70         static const _ListContextItemImpl* GetInstance(const ListContextItem& listContextItem);
71
72 private:
73         _ListContextItemImpl(ListContextItem* pPublic);
74
75         _ListContextItemImpl(const _ListContextItemImpl& rhs);
76
77         _ListContextItemImpl& operator =(const _ListContextItemImpl& rhs);
78
79         result Construct(void);
80
81 private:
82         ListContextItem* __pPublic;
83         _ListViewContextItem* __pContextItem;
84 }; // _ListContextItemImpl
85
86 }}} // Tizen::Ui::Controls
87
88 #endif  // _FUI_CTRL_LIST_CONTEXT_ITEM_IMPL_H_