#include "FApp_RequestManagerT.h"
#include "FApp_LaunchInfo.h"
+#include "FApp_AppArg.h"
namespace Tizen { namespace App
{
+_ResultInfo::~_ResultInfo(void)
+{
+ _AppArg* pArg = &arg;
+ delete pArg;
+}
+
+
template<typename T>
_RequestManagerT<T>::_RequestManagerT(void)
: __reqId(-1)
}
-// partial specialization
+// specialization
+template<>
+_RequestManagerT<_ResultInfo>::~_RequestManagerT(void)
+{
+ // clear 1st request
+ _ResultInfo* pItem = FindItem(0);
+ if (pItem)
+ {
+ __requestList.Remove(0);
+ delete pItem;
+ }
+
+
+ RequestListEnumType* pIter = __requestList.GetMapEnumeratorN();
+ if (pIter == null)
+ {
+ return;
+ }
+
+ while (pIter->MoveNext() == E_SUCCESS)
+ {
+ _ResultInfo* pInfo = null;
+ result r = pIter->GetValue(pInfo);
+
+ if (IsFailed(r))
+ {
+ continue;
+ }
+
+ delete pInfo;
+ }
+
+ delete pIter;
+}
+
+
template<> void
_RequestManagerT<_ResultInfo>::RemoveItem(int reqId)
{
_AppArg* pArg;
const LaunchCbType launchCb;
void* pUserData;
- int property;
+ const int property;
}; // _LaunchInfo
const int property;
Tizen::Base::Runtime::_LibraryImpl* pLib; // non-empty
Tizen::Base::Runtime::IEventListener* pListener;
- bool isLegacy;
+ const bool isLegacy;
}; // _InProcessInfo
{
}
- ~_ResultInfo(void)
- {
- }
+ ~_ResultInfo(void);
private:
_ResultInfo(const _ResultInfo& rhs);