Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_RadioGroup.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  * @file                FUiCtrl_RadioGroup.h
19  * @brief               This is the header file for the _RadioGroup class.
20  *
21  * This header file contains the declarations of the %_RadioGroup class.
22  */
23 #ifndef _FUI_CTRL_INTERNAL_RADIO_GROUP_H_
24 #define _FUI_CTRL_INTERNAL_RADIO_GROUP_H_
25
26 #include <FBaseColArrayList.h>
27 #include "FUi_Control.h"
28 #include "FUiCtrl_CheckButton.h"
29
30 namespace Tizen { namespace Ui { namespace Controls
31 {
32 class _RadioGroupPresenter;
33
34 /**
35  * @class _RadioGroup
36  * @brief
37  * @since       1.0
38  *
39  *
40  *
41  *
42  */
43
44 class _OSP_EXPORT_ _RadioGroup
45         : public Tizen::Ui::_Control
46         , virtual public Tizen::Base::Runtime::IEventListener
47         , virtual public Tizen::Ui::_IUiEventListener
48         , virtual public Tizen::Ui::_IUiEventPreviewer
49 {
50 public:
51         virtual ~_RadioGroup(void);
52
53 public:
54         static _RadioGroup* CreateRadioGroupN(void);
55
56 public:
57         result CreateCheckList(void);
58         result Add(_CheckButton& checkButton);
59         result Remove(_CheckButton& checkButton);
60         virtual bool OnNotifiedN(const _Control& source, Tizen::Base::Collection::IList* pArgs);
61
62         int GetItemCount(void) const;
63
64         result SetSelectedItem(const _CheckButton& checkButton);
65         const _CheckButton* GetSelectedItem(void) const;
66
67 protected:
68         result SetPresenter(const _RadioGroupPresenter& radioGroupPresenter);
69
70 private:
71         _RadioGroup(void);
72
73         _RadioGroup(const _RadioGroup& rhs);
74         _RadioGroup& operator =(const _RadioGroup& rhs);
75
76 private:
77         _RadioGroupPresenter* __pRadioGroupPresenter;
78         Tizen::Base::Collection::ArrayList* __checkList;
79
80 }; // _RadioGroup
81
82 }}} // Tizen::Ui::Controls
83
84 #endif  // _FUI_CTRL_INTERNAL_RADIO_GROUP_H_