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_MessageBoxImpl.h
20 * @brief This is the header file for the _MessageBoxImpl class.
22 * This header file contains the declarations of the %_MessageBoxImpl class.
25 #ifndef _FUI_CTRL_MESSAGEBOX_IMPL_H_
26 #define _FUI_CTRL_MESSAGEBOX_IMPL_H_
30 #include <FUiCtrlMessageBox.h>
31 #include "FUi_WindowImpl.h"
32 #include "FUiCtrl_MessageBox.h"
35 namespace Tizen { namespace Ui { namespace Controls
43 _MessageBoxImpl(MessageBox* pPublic, _MessageBox* pCore);
44 virtual ~_MessageBoxImpl(void);
46 virtual const char* GetPublicClassName(void) const;
47 virtual const MessageBox& GetPublic(void) const;
48 virtual MessageBox& GetPublic(void);
49 virtual const _MessageBox& GetCore(void) const;
50 virtual _MessageBox& GetCore(void);
53 static _MessageBoxImpl* CreateMessageBoxImplN(MessageBox* pControl);
54 result Initialize(const Tizen::Base::String& title, const Tizen::Base::String& text, MessageBoxStyle style, unsigned long timeout);
56 virtual result ShowAndWait(int& modalResult);
58 Tizen::Graphics::Rectangle GetCenterAlignRect(int width, int height) const;
60 virtual void OnChangeLayout(Tizen::Ui::_ControlOrientation orientation);
63 void SetColor(const Tizen::Graphics::Color& color);
64 Tizen::Graphics::Color GetColor(void) const;
66 void SetTitleTextColor(const Tizen::Graphics::Color& color);
67 Tizen::Graphics::Color GetTitleTextColor(void) const;
69 void SetTextColor(const Tizen::Graphics::Color& color);
70 Tizen::Graphics::Color GetTextColor(void) const;
72 MessageBoxStyle GetMessageBoxStyle(void) const;
73 Tizen::Base::String GetTitleText(void) const;
74 Tizen::Base::String GetText(void) const;
75 unsigned long GetTimeout(void) const;
76 int GetMaxTextLength(void) const;
79 static _MessageBoxImpl* GetInstance(MessageBox& pMessageBox);
80 static const _MessageBoxImpl* GetInstance(const MessageBox& pMessageBox);
83 _MessageBoxImpl(const _MessageBoxImpl& rhs);
84 _MessageBoxImpl& operator =(const _MessageBoxImpl& rhs);
89 }}} // Tizen::Ui::Controls
91 #endif //_FUI_CTRL_MESSAGEBOX_IMPL_H_