//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
_AppControlEventArg& operator =(const _AppControlEventArg& rhs);
private:
- int __reqId;
+ const int __reqId;
_AppArg* __pArg;
- int __result;
+ const int __result;
}; // _AppControlEventArg
/**
, public Tizen::Base::Runtime::IEventArg
{
public:
- _NativeAppControlEventArg(int reqId, int res, const Tizen::Base::Collection::IMap* pArgs);
+ _NativeAppControlEventArg(int reqId, int res, Tizen::Base::Collection::IMap* pArgs, int prop);
virtual ~_NativeAppControlEventArg(void);
return __pArgs;
}
+ int GetProperty(void) const
+ {
+ return __property;
+ }
+
private:
- int __reqId;
- int __result;
+ const int __reqId;
+ const int __result;
Tizen::Base::Collection::IMap* __pArgs;
+ const int __property;
}; // _NativeAppControlEventArg
/**
, public Tizen::Base::Runtime::IEventArg
{
public:
- _AppControlResponseEventArg(IAppControlResponseListener* pResponseListener, _AppControlResponseType type, const AppId& appId, const Tizen::Base::String& operationId, result res, AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData, int reqId)
+ _AppControlResponseEventArg(IAppControlResponseListener* pResponseListener, _AppControlResponseType type, const AppId& appId, const Tizen::Base::String& operationId, result res, AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData, int reqId, bool isSubMode)
: __pResponseListener(pResponseListener)
, __type(type)
- , __appId(appId)
- , __operationId(operationId)
+ , __appId(appId.GetPointer())
+ , __operationId(operationId.GetPointer())
, __res(res)
, __appControlResult(appControlResult)
, __pExtraData(pExtraData)
, __reqId(reqId)
+ , __isSubMode(isSubMode)
{
}
virtual ~_AppControlResponseEventArg(void)
{
+ delete __pExtraData;
}
IAppControlResponseListener* GetListener(void) const
return __reqId;
}
+ bool IsSubMode(void) const
+ {
+ return __isSubMode;
+ }
+
private:
_AppControlResponseEventArg(const _AppControlResponseEventArg& rhs);
private:
IAppControlResponseListener* __pResponseListener;
- _AppControlResponseType __type;
- const AppId& __appId;
- const Tizen::Base::String& __operationId;
- result __res;
- AppCtrlResult __appControlResult;
+ const _AppControlResponseType __type;
+ const AppId __appId;
+ const Tizen::Base::String __operationId;
+ const result __res;
+ const AppCtrlResult __appControlResult;
const Tizen::Base::Collection::IMap* __pExtraData;
- int __reqId;
+ const int __reqId;
+ const bool __isSubMode;
}; // _AppControlEventArg
} } // Tizen::App