virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+ void Cancel(void);
+ bool IsStarted(void);
+
int GetMovedCount() const;
protected:
int __moveToCount;
GlProgressBar* __pMoveProBar;
IFileOpInvalidateListener* __pInvalidate;
+ bool __isStarted;
};
#endif //_GL_TIMER_BASE_H_
if (deviceType == DEVICE_TYPE_STORAGE_CARD && state == DEVICE_STORAGE_CARD_UNMOUNTED)
{
+ if ( __pFileMove && __pFileMove->IsStarted() )
+ {
+ __pFileMove->Cancel();
+ delete __pFileMove;
+ __pFileMove = null;
+ }
__mountState = false;
SceneManager* pSceneManager = SceneManager::GetInstance();
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
, __moveToCount(0)
, __pMoveProBar(null)
, __pInvalidate(invalidateListener)
+ , __isStarted(false)
{
AppLogDebug("ENTER");
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
{
AppLogDebug("ENTER");
__pInvalidate = null;
- if (__pContentIdList != null && __pContentIdList->GetCount() > 0)
+ if (__pContentIdList != null && __pContentIdList->GetCount() > 0 && __isStarted)
{
__moveTimer.Cancel();
+ __isStarted = false;
}
delete __pContentIdList;
+ __pMoveProBar->HideFileProgressingPopup();
+ delete __pMoveProBar;
AppLogDebug("ENTER");
}
__moveToCount = 0;
__moveTimer.Construct(*this);
__moveTimer.Start(1);
+ __isStarted = true;
ContentUpdateEventListener* pContentListener = ContentUpdateEventListener::GetInstance();
pContentListener->RemoveContentListener();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
{
AppLogDebug("ENTER");
__moveTimer.Cancel();
+ __isStarted = false;
OnOpCancelled(CANCEL_USER);
__moveToCount = 0;
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
__pInvalidate->OnFileOpInvalidate(_actionId);
}
__moveTimer.Start(1);
+ __isStarted = true;
}
else
{
__moveTimer.Cancel();
+ __isStarted = false;
OnOpComplete(COMPLETE_SUCCESS);
__moveToCount = 0;
}
{
_actionId = actionId;
}
+
+
+bool GlTimerBase::IsStarted(void)
+{
+ return __isStarted;
+}
+
+void GlTimerBase::Cancel(void)
+{
+ if ( __isStarted )
+ {
+ __pMoveProBar->HideFileProgressingPopup();
+ __moveTimer.Cancel();
+ __isStarted = false;
+ }
+
+}