2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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 FWebCtrl_WebImpl.cpp
20 * @brief The file contains the definition of _WebImpl class.
22 * The file contains the definition of _WebImpl class.
24 #include <FBaseSysLog.h>
25 #include <FApp_AppImpl.h>
26 #include "FWebCtrl_WebManager.h"
27 #include "FWebCtrl_WebPresenter.h"
30 namespace Tizen { namespace Web { namespace Controls
34 _WebPresenter::_WebPresenter(const Object* callerAddress)
41 , __callerAddress(reinterpret_cast< int >(callerAddress))
43 _WebManager* pWebManager = _WebManager::GetInstance();
44 pWebManager->AddCallback(__callerAddress, reinterpret_cast< int >(this));
48 _WebPresenter::~_WebPresenter(void)
52 _WebManager* pWebManager = _WebManager::GetInstance();
53 pWebManager->RemoveCallback(__callerAddress, reinterpret_cast< int >(this));
58 _WebPresenter::WaitAsyncProcess(bool& result)
67 _WebPresenter::WaitAsyncProcess(Tizen::Base::String& result)
76 _WebPresenter::WaitAsyncProcess(int& result)
85 _WebPresenter::WaitAsyncProcess()
94 _WebPresenter::WaitAsyncProcess(long& result)
98 result = __longInteger;
103 _WebPresenter::ProcessEvent(void)
112 if (Tizen::App::_AppImpl::IsTerminationRequested())
117 ecore_main_loop_iterate();
123 _WebPresenter::EndAsyncProcess(const Tizen::Base::String& result)
125 __string = const_cast< Tizen::Base::String& >(result);
131 _WebPresenter::EndAsyncProcess(bool result)
139 _WebPresenter::EndAsyncProcess(int result)
147 _WebPresenter::EndAsyncProcess(const Eina_List* result)
149 __pIList = const_cast<Eina_List*>(result);
155 _WebPresenter::EndAsyncProcess(long result)
157 __longInteger = result;
162 }}} // Tizen::Web::Controls