8fb6b4a74cab48fe343f0e296281a033ea2e2c6e
[apps/osp/Gallery.git] / inc / GlFileMoveTimer.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file                FileMoveTimer.h
19  * @brief               This is the header file for FileMoveTimer class.
20  */
21
22 #ifndef _GL_FILE_MOVE_TIMER_H_
23 #define _GL_FILE_MOVE_TIMER_H_
24
25 #include "GlTimerBase.h"
26
27 class FileListPresentationModel;
28
29 class FileMoveTimer
30         : public GlTimerBase
31 {
32 public :
33         FileMoveTimer(Tizen::Base::String& , Tizen::Base::Collection::IList* , FileListPresentationModel*,
34                         IFileOpInvalidateListener*, bool isCopyOperation = false);
35         virtual ~FileMoveTimer(void);
36
37         void SetCopy(void);
38         void ClearCopy(void);
39
40 private:
41         virtual Tizen::Base::Collection::IList* TimerStart(void);
42         virtual result TimerExpired(const Tizen::Base::Object* contentId);
43         virtual void TimerCancel(int, enum FileActionCancelRes res);
44         virtual void TimerComplete(int, enum FileActionCompleteRes res);
45
46 private :
47         Tizen::Base::Collection::IList* __pMoveIndexList;
48         Tizen::Base::String __moveToDir;
49         bool __isCopyOperation;
50         FileListPresentationModel* __pPresentationModel;
51 };
52
53 #endif //_GL_FILE_MOVE_TIMER_H_