Move more public-api headers to devel-api. PART 3
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / buttons / radio-button-impl.h
1 #ifndef __DALI_TOOLKIT_INTERNAL_RADIO_BUTTON_H__
2 #define __DALI_TOOLKIT_INTERNAL_RADIO_BUTTON_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/actors/image-actor.h>
23 #include <dali/public-api/common/dali-vector.h>
24
25 // INTERNAL INCLUDES
26 #include <dali-toolkit/public-api/controls/buttons/radio-button.h>
27 #include <dali-toolkit/devel-api/controls/table-view/table-view.h>
28 #include "button-impl.h"
29
30 namespace Dali
31 {
32 namespace Toolkit
33 {
34 namespace Internal
35 {
36
37 /**
38  * RadioButton implementation class.
39  *
40  * \sa Dali::Toolkit::RadioButton
41  */
42 class RadioButton: public Button
43 {
44 public:
45
46   /**
47    * Create a new RadioButton.
48    *
49    * @return A smart-pointer to the newly allocated RadioButton.
50    */
51   static Dali::Toolkit::RadioButton New();
52
53 private:
54
55   /**
56    * Construct a new RadioButton.
57    */
58   RadioButton();
59
60   /**
61    * A reference counted object may only be deleted by calling Unreference()
62    */
63   virtual ~RadioButton();
64
65 private: // From Button
66
67   /**
68    * @copydoc Toolkit::Internal::Button::OnButtonInitialize()
69    */
70   virtual void OnButtonInitialize();
71
72   /**
73    * @copydoc Toolkit::Internal::Button::OnButtonUp()
74    */
75   virtual void OnButtonUp();
76
77   /**
78    * @copydoc Toolkit::Internal::Button::OnSelected()
79    */
80   virtual bool OnSelected();
81
82   /**
83    * @copydoc Toolkit::Internal::Button::OnLabelSet()
84    */
85   virtual void OnLabelSet();
86
87 private:
88
89   // Undefined
90   RadioButton( const RadioButton& origin );
91
92   // Undefined
93   RadioButton& operator=( const RadioButton& origin );
94 };
95
96 } // namespace Internal
97
98 // Helpers for public-api forwarding methods
99
100 inline Toolkit::Internal::RadioButton& GetImplementation(Toolkit::RadioButton& button)
101 {
102   DALI_ASSERT_ALWAYS(button);
103
104   Dali::RefObject& handle = button.GetImplementation();
105
106   return static_cast<Toolkit::Internal::RadioButton&> (handle);
107 }
108
109 inline const Toolkit::Internal::RadioButton& GetImplementation(const Toolkit::RadioButton& button)
110 {
111   DALI_ASSERT_ALWAYS(button);
112
113   const Dali::RefObject& handle = button.GetImplementation();
114
115   return static_cast<const Toolkit::Internal::RadioButton&> (handle);
116 }
117
118 } // namespace Toolkit
119 } // namespace Dali
120
121 #endif // __DALI_TOOLKIT_INTERNAL_RADIO_BUTTON_H__