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 <runnable_widget_object.h>
26 #include "widget_state.h"
28 DECLARE_GENERIC_EVENT_0(NextStepEvent)
31 public DPL::Application,
32 private DPL::Event::Controller<DPL::TypeListDecl<NextStepEvent>::Type>,
33 public DPL::TaskDecl<WrtClient>
50 ReturnStatus::Type getReturnStatus() const;
53 virtual void OnStop();
54 virtual void OnCreate();
55 virtual void OnResume();
56 virtual void OnPause();
57 virtual void OnReset(bundle *b);
58 virtual void OnTerminate();
63 void showHelpAndQuit();
65 void setSdkLauncherDebugData();
68 virtual void OnEventReceived(const NextStepEvent& event);
75 static void LaunchCallback(bool success, void *data);
84 unsigned short m_debuggerPort;
85 ReturnStatus::Type m_returnStatus;
86 WRT::RunnableWidgetObjectPtr m_widget;
87 WidgetState m_widgetState;
90 #endif // WRT_CLIENT_H