2
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB
|
|
3 |
*
|
|
4 |
* All rights reserved.
|
|
5 |
* This component and the accompanying materials are made available
|
|
6 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
7 |
* which accompanies this distribution, and is available
|
|
8 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
9 |
*
|
|
10 |
* Initial Contributors:
|
|
11 |
* EmbedDev AB - initial contribution.
|
|
12 |
*
|
|
13 |
* Contributors:
|
|
14 |
*
|
|
15 |
* Description:
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef FEEDTIMER_H
|
|
20 |
#define FEEDTIMER_H
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
|
|
24 |
class CFeedEngine;
|
|
25 |
|
|
26 |
class CFeedTimer : public CTimer
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
CFeedTimer(CFeedEngine *aFeedEngine);
|
|
30 |
~CFeedTimer();
|
|
31 |
void ConstructL();
|
|
32 |
void RunL();
|
|
33 |
void RunPeriodically();
|
|
34 |
void SetPeriod(TInt aPeriodMinutes);
|
|
35 |
void SetSyncTime(TTime aTime);
|
|
36 |
|
|
37 |
private:
|
|
38 |
TInt iPeriodMinutes;
|
129
|
39 |
TTime iTriggerTime;
|
2
|
40 |
CFeedEngine *iFeedEngine;
|
|
41 |
};
|
|
42 |
#endif
|
|
43 |
|