2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
19 * @brief This is the header file for GlTimerBase class.
22 #ifndef _GL_TIMER_BASE_H_
23 #define _GL_TIMER_BASE_H_
26 #include "GlFileOpInvalidateListener.h"
31 : public Tizen::Ui::IActionEventListener
32 , public Tizen::Base::Runtime::ITimerEventListener
36 GlTimerBase(IFileOpInvalidateListener*, enum FileActionMode actionId);
37 virtual ~GlTimerBase(void);
39 bool StartTimer(void);
40 void CancelTimer(void);
41 void SetActionMode(const enum FileActionMode actionId);
43 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
45 virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
50 int GetMovedCount() const;
53 virtual Tizen::Base::Collection::IList* TimerStart(void) = 0;
54 virtual result TimerExpired(const Tizen::Base::Object*) = 0;
55 virtual void TimerCancel(int, enum FileActionCancelRes res) = 0;
56 virtual void TimerComplete(int, enum FileActionCompleteRes res) = 0;
59 void OnOpComplete(enum FileActionCompleteRes);
60 void OnOpCancelled(enum FileActionCancelRes res);
63 enum FileActionMode _actionId;
66 Tizen::Base::Runtime::Timer __moveTimer;
67 Tizen::Base::Collection::IList * __pContentIdList;
69 GlProgressBar* __pMoveProBar;
70 IFileOpInvalidateListener* __pInvalidate;
74 #endif //_GL_TIMER_BASE_H_