+#ifdef MULTIPROCESS_SERVICE_SUPPORT
+ //services AppControl tag
+ ConfigParserData::AppControlInfoList appControlList =
+ m_context.widgetConfig.configInfo.appControlList;
+ unsigned count = 0;
+
+ FOREACH(it, appControlList) {
+ it->m_index = count;
+ UiApplication uiApp;
+
+ uiApp.setTaskmanage(true);
+ uiApp.setNodisplay(true);
+
+ std::stringstream postfix;
+ postfix << "-__SERVICE_PROCESS__" << count++;
+
+ setWidgetExecPath(uiApp, postfix.str());
+ setWidgetName(manifest, uiApp);
+ setWidgetIds(manifest, uiApp, postfix.str());
+ setWidgetIcons(uiApp);
+ setAppControlInfo(uiApp, *it);
+ setAppCategory(uiApp);
+ setAccount(manifest);
+ setPrivilege(manifest);
+
+ manifest.addUiApplication(uiApp);
+ }
+ //TODO: AppService tag will be removed
+ //services AppService tag
+ WrtDB::ConfigParserData::ServiceInfoList appServiceList =
+ m_context.widgetConfig.configInfo.appServiceList;
+ FOREACH(it, appServiceList) {
+ it->m_index = count;
+ UiApplication uiApp;
+
+ uiApp.setTaskmanage(true);
+ uiApp.setNodisplay(true);
+
+ std::stringstream postfix;
+ postfix << "-__SERVICE_PROCESS__" << count++;
+
+ setWidgetExecPath(uiApp, postfix.str());
+ setWidgetName(manifest, uiApp);
+ setWidgetIds(manifest, uiApp, postfix.str());
+ setWidgetIcons(uiApp);
+ setAppServiceInfo(uiApp, *it);
+ setAppCategory(uiApp);
+ setAccount(manifest);
+ setPrivilege(manifest);
+
+ manifest.addUiApplication(uiApp);
+ }
+#endif