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.
19 * @file FUiCtrl_SearchBarModel.h
20 * @brief This is the header file for the _SearchBarModel class.
22 * This header file contains the declarations of the %_SearchBarModel class.
25 #ifndef _FUI_CTRL_INTERNAL_SEARCH_BAR_MODEL_H_
26 #define _FUI_CTRL_INTERNAL_SEARCH_BAR_MODEL_H_
28 #include <FBaseObject.h>
29 #include "FUiCtrl_SearchBarPresenter.h"
31 namespace Tizen { namespace Ui { namespace Controls
34 * @class _SearchBarModel
39 : public Tizen::Base::Object
44 * This is default constructor for this class.
48 _SearchBarModel(void);
51 * This is the destructor for this class.
55 virtual ~_SearchBarModel(void);
58 virtual result Construct(void);
61 * Sets the visibility state of the content area.
64 * @return An error code
65 * @param[in] visible The visibility state of the content area.
66 * @exception E_SUCCESS The method was successful.
67 * @exception E_SYSTEM A system error occurred.
68 * @see IsContentAreaVisible()
70 result SetContentAreaVisible(bool visible);
73 * Checks whether the content area is visible.
76 * @return The visibility state of the content area.
77 * @exception E_SUCCESS The method was successful.
78 * @see SetContentAreaVisible()
80 bool IsContentAreaVisible(void) const;
83 * Gets the search bar mode.
86 * @return The search bar mode
87 * @exception E_SUCCESS The method was successful.
88 * @exception E_SYSTEM A system error occurred.
89 * @remarks The specific error code can be accessed using the GetLastResult() method.
92 SearchBarMode GetMode(void) const;
95 * Determines whether the search bar mode is locked.
98 * @return @c true if the mode is locked, @n
100 * @exception E_SUCCESS The method was successful.
101 * @exception E_SYSTEM A system error occurred.
102 * @remarks The specific error code can be accessed using the GetLastResult() method.
105 bool IsModeLocked(void) const;
108 * Sets the search bar mode.
111 * @return An error code
112 * @exception E_SUCCESS The method was successful.
113 * @exception E_INVALID_OPERATION The current state of the instance prohibits the execution of the specified operation, or the mode is locked.
114 * @exception E_SYSTEM A system error occurred.
118 result SetMode(SearchBarMode mode);
121 * Locks or unlocks the search bar mode.
124 * @return An error code
125 * @param[in] modeLocked The mode lock
126 * @exception E_SUCCESS The method was successful.
127 * @exception E_SYSTEM A system error occurred.
130 result SetModeLocked(bool modeLocked);
134 _SearchBarModel(const _SearchBarModel& value);
136 _SearchBarModel& operator =(const _SearchBarModel& value);
139 bool __isContentAreaVisible;
141 SearchBarMode __searchBarMode;
143 }; // _SearchBarModel
145 }}} // Tizen::Ui::Controls
147 #endif // _FUI_CTRL_INTERNAL_SEARCH_BAR_MODEL_H_