+++ /dev/null
-//
-// Tizen C++ SDK
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-#ifndef _COMMON_POPUP_H_
-#define _COMMON_POPUP_H_
-
-#include <FBase.h>
-#include <FUi.h>
-
-class CommonPopup
- : public Tizen::Ui::Controls::Popup
-{
-public:
- CommonPopup(void);
- ~CommonPopup(void);
-
- result OnInitializing(void);
- bool Initialize(void);
- virtual result Show(void);
- void SetMessage(const Tizen::Base::String& text);
- result Show(int millisec);
- result Hide(void);
-
-private:
- Tizen::Ui::Controls::Label* __pLbText;
- Tizen::Base::String __text;
-};
-
-#endif // _COMMON_POPUP_H_
+++ /dev/null
-//
-// Tizen C++ SDK
-// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-
-#include "AppResourceId.h"
-#include "CommonPopup.h"
-
-using namespace Tizen::Base;
-using namespace Tizen::Ui;
-using namespace Tizen::Ui::Controls;
-using namespace Tizen::Base::Runtime;
-
-CommonPopup::CommonPopup(void)
- : __pLbText(null)
- , __text(L"")
-{
-}
-
-CommonPopup::~CommonPopup(void)
-{
-}
-
-bool
-CommonPopup::Initialize(void)
-{
- // Construct an XML form
- Popup::Construct(IDP_POPUPOK);
-
- return true;
-}
-
-result
-CommonPopup::OnInitializing(void)
-{
- result r = E_SUCCESS;
-
- return r;
-}
-
-void
-CommonPopup::SetMessage(const String& text)
-{
- __text = text;
-}
-
-result
-CommonPopup::Show(void)
-{
- result r = E_SUCCESS;
-
- __pLbText = static_cast<Label *>(GetControl(IDC_LABEL1));
- TryReturn(__pLbText != null, r = E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] GetControl(IDC_LABEL1) failed.");
-
- __pLbText->SetText(__text);
-
- r = Popup::SetShowState(true);
- TryReturn(E_SUCCESS == r, r, "SetShowState() is failed by %s.", GetErrorMessage(r));
-
- Popup::Show();
-
- return r;
-}
-
-result
-CommonPopup::Hide(void)
-{
- return this->SetShowState(false);
-}
-
-result
-CommonPopup::Show(int millisec)
-{
- result r = E_SUCCESS;
-
- __pLbText = static_cast<Label *>(GetControl(IDC_LABEL1));
- TryReturn(__pLbText != null, r = E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] GetControl(IDC_LABEL1) failed.");
-
- __pLbText->SetText(__text);
-
- r = Popup::SetShowState(true);
- TryReturn(E_SUCCESS == r, r, "SetShowState() failed by %s.", GetErrorMessage(r));
-
- r = Popup::Show();
- TryReturn(E_SUCCESS == r, r, "Show() failed by %s.", GetErrorMessage(r));
-
- r = Thread::Sleep(millisec);
- TryReturn(E_SUCCESS == r, r, "Sleep() failed by %s.", GetErrorMessage(r));
- return r;
-}
-