22 #ifndef SYSTEMSERVICE_H
23 #define SYSTEMSERVICE_H
29 #include <lunaservice.h>
58 static std::string
getStrFromJSON(json_object *root,
const char *
id);
61 static bool initiateAppLaunch(LSHandle* lshandle, LSMessage *message, std::string& callerId,
const char *messageStr,
void *user_data,
const char *modalId,
bool isHeadless);
62 static json_object*
buildParamsForAppLaunch(std::string params, std::string& launchId,
bool& success, std::string& errMsg);
86 void vibrate(
const char* soundClass);
109 void postBootFinished();
110 void postDockModeStatus(
bool enabled);
111 void slotModalWindowAdded();
112 void slotModalWindowRemoved();
113 void slotModalDialogTimerFired();
140 static bool msmAvailCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
141 static bool msmProgressCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
142 static bool msmEntryCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
143 static bool msmFsckingCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
144 static bool msmPartitionAvailCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
145 static bool telephonyServiceUpCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
146 static bool telephonyEventsCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
147 static bool touchToShareCanTapStatusCallback(LSHandle* handle, LSMessage* message,
void* ctxt);
149 static void initModalTimerInfo();
151 bool msmAvail(LSMessage* message);
152 bool msmProgress(LSMessage* message);
153 bool msmEntry(LSMessage* message);
154 bool msmFscking(LSMessage* message);
155 bool msmPartitionAvail(LSMessage* message);
156 bool touchToShareCanTapStatus(LSHandle* handle, LSMessage* message,
void* ctxt);
157 void postNovacomStatus();
161 LSMessageToken m_storageDaemonToken;
165 bool m_cardLoadingAnimation;
167 static std::string sTempCaller;
168 static std::string sTempLaunchApp;
169 static std::string sModalWindowSubscriptionId;
170 static QTimer sModalLauchCheckTimer;
171 static int sModalWindowIndex;
172 static bool sIsParentPdkApp;