2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dpl/application.h>
20 #include <dpl/generic_event.h>
21 #include <dpl/event/controller.h>
22 #include <dpl/type_list.h>
25 #include <i_runnable_widget_object.h>
26 #include "widget_state.h"
27 #include <common_error.h>
28 #include <launch_user_data.h>
29 #include <widget_model.h>
31 DECLARE_GENERIC_EVENT_0(NextStepEvent)
34 public DPL::Application,
35 private DPL::Event::Controller<DPL::TypeListDecl<NextStepEvent>::Type>,
36 public DPL::TaskDecl<WrtClient>
53 ReturnStatus::Type getReturnStatus() const;
56 virtual void OnStop();
57 virtual void OnCreate();
58 virtual void OnResume();
59 virtual void OnPause();
60 virtual void OnReset(bundle *b);
61 virtual void OnTerminate();
66 void showHelpAndQuit();
68 void setSdkLauncherDebugData();
71 SDKDebugData* debugData);
72 bool checkWACTestCertififedWidget();
73 void localizeWidgetModel();
76 virtual void OnEventReceived(const NextStepEvent& event);
82 static int languageChangedCallback(void *data);
83 static void loadFinishCallback(bool success, void* data);
92 unsigned short m_debuggerPort;
93 ReturnStatus::Type m_returnStatus;
94 WRT::RunnableWidgetObjectPtr m_widget;
95 WRT::UserCallbacksPtr m_cbs;
96 WidgetState m_widgetState;
99 #endif // WRT_CLIENT_H