_AppImpl* _AppImpl::__pAppImpl = null;
bool _AppImpl::__isTerminationRequested = false;
+
+static const char TIZEN_APPCONTROL_DATA_MULTI_WINDOW[] = "http://tizen.org/appcontrol/data/multiwindow";
+
#if 0
static const int _DATACONTROL_PACKET_INDEX_APPID = 0;
static const int _DATACONTROL_PACKET_INDEX_REQUESTTYPE = 1;
_AppInfo::SetParentWindowHandle(winId);
SysLog(NID_APP, "Saving window handle 0x%x.", winId);
}
+
+ // set an appinfo value for multi-window mode
+ char* pBuf = null;
+ int errVal = service_get_extra_data(service, TIZEN_APPCONTROL_DATA_MULTI_WINDOW, &pBuf);
+ if (errVal == SERVICE_ERROR_NONE)
+ {
+ if (!strcmp(pBuf, "on"))
+ {
+ _AppInfo::SetMultiWindow(true);
+ }
+ free(pBuf);
+ }
+ else
+ {
+ SysLog(NID_APP, "It is failed to get multi-window value: %d", errVal);
+ }
+
// call for callbacks
// ptr to member function
SysLogTag(NID_APP, "LAUNCH","[%ls:<RequestHandler and OnAppInitialized>:start]", _AppInfo::GetAppExecutableName().GetPointer());
, __isPackageInfoInitialized(false)
, __isSubMode(false)
, __isVirtualRoot(false)
+ , __isMultiWindow(false)
{
SysStaticAssert(sizeof(pid_t) == sizeof(int));
GetInstance()->__isPackageInfoInitialized = !update;
}
+bool
+_AppInfo::IsMultiWindow(void)
+{
+ return GetInstance()->__isMultiWindow;
+}
+
+void
+_AppInfo::SetMultiWindow(bool enable)
+{
+ GetInstance()->__isMultiWindow = enable;
+}
+
}} // Tizen::App
*/
static void UpdatePackageInfo(bool update);
+ /**
+ * Checkes whether the application is a multi-window mode or not.
+ *
+ * @return @true if the multi-window mode is on else false
+ */
+ static bool IsMultiWindow(void);
+
+ /**
+ * Sets the multi-window mode.
+ */
+ static void SetMultiWindow(bool enable);
+
_OSP_LOCAL_ result Construct(void);
_OSP_LOCAL_ result Construct(const char* appId, const char* appRoot, _AppType type = _APP_TYPE_UI_APP);
bool __isPackageInfoInitialized;
bool __isSubMode;
bool __isVirtualRoot;
+ bool __isMultiWindow;
}; // _AppInfo
}} // Tizen::App