22 #ifndef WEBAPPMGRPROXY_H
23 #define WEBAPPMGRPROXY_H
27 #include <PIpcChannelListener.h>
31 #include "CustomEvents.h"
32 #include <NewContentIndicatorEvent.h>
33 #include <BannerMessageEvent.h>
34 #include "ActiveCallBannerEvent.h"
63 const char* appDesc=
"",
const char* procId=
"",
64 const char* params=
"",
const char* launchingAppId=
"",
65 const char* launchingProcId=
"");
66 void relaunchApp(
const char* procId,
const char* params,
const char* launchingAppId,
67 const char* launchingProcId);
69 std::string
appLaunch(
const std::string& appId,
70 const std::string& params,
71 const std::string& launchingAppId,
72 const std::string& launchingProcId,
76 const std::string& params,
77 const std::string& launchingAppId,
78 const std::string& launchingProcId,
81 bool isParentTypePdk);
86 const std::string& params,
87 const std::string& launchingAppId,
88 const std::string& launchingProcId,
89 std::string& errMsg );
94 void resizeEvent(
Window* win,
int newWidth,
int newHeight,
bool resizeBuffer=
false);
98 OrientationEvent::Orientation
orientation()
const {
return m_orientation; }
102 void inspect(
const char* procId);
130 virtual void onMessageReceived(
const PIpcMessage& msg);
132 void onPrepareAddWindow(
int key,
int type,
int width,
int height);
133 void onPrepareAddWindowWithMetaData(
int key,
int metaDataKey,
int type,
int width,
int height);
134 void onPasteToActiveWindow();
135 void onBootupFinished();
136 void onNewContentEvent(
const NewContentIndicatorEventWrapper &wrapper);
137 void onBannerMessageEvent(
const BannerMessageEventWrapper &wrapper);
138 void onEnableDockMode(
bool enable);
139 void onCancelVibrations();
140 void onActiveCallBannerEvent(
const ActiveCallBannerEventWrapper &wrapper);
141 void onAddPhoneActiveCallBanner(uint32_t ipcHandle,
const std::string& iconFile,
const std::string& message,uint32_t startTime);
142 void onRemovePhoneActiveCallBanner(uint32_t ipcHandle);
143 void onUpdatePhoneActiveCallBanner(uint32_t ipcHandle,
const std::string& iconFile,
const std::string& message,uint32_t resetTime);
144 void onApplyLaunchFeedback(
int cx,
int cy);
145 void onListOfRunningAppsResponse(
const std::string& runnigAppsJsonArray);
146 void onAppLaunchPreventedUnderLowMemory();
147 void onLowMemoryActionsRequested(
bool allowExpensive);
148 void onModalDismissPreCreate(
int errorCode);
152 static void webKitDiedCallback(GPid pid, gint status, gpointer data);
153 void webKitDied(GPid pid, gint status);
158 void clientConnected(
int pid, PIpcChannel* channel);
164 std::queue<PIpcMessage*> m_discMsgQueue;
165 OrientationEvent::Orientation m_orientation;
167 PIpcBuffer* m_ipcImgDragBuffer;
168 QPixmap* m_dragPixmap;