|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: 3AM geo tagger handler |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __MYLOCATIONGEOTAGTIMERAO_H__ |
|
19 #define __MYLOCATIONGEOTAGTIMERAO_H__ |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 /* |
|
27 * MyLocationTimerObserver class |
|
28 * observer class to notify the mylocation engine about the 3AM timer expiry. |
|
29 */ |
|
30 class MyLocationTimerObserver |
|
31 { |
|
32 public: |
|
33 virtual void MyLocationThreeAMTimerExpiredL() = 0; |
|
34 }; |
|
35 |
|
36 /* |
|
37 * CLocationGeoTagTimerAO class |
|
38 * Class to handle 3AM timer expiry. |
|
39 */ |
|
40 class CLocationGeoTagTimerAO : public CTimer |
|
41 { |
|
42 |
|
43 public: |
|
44 /** |
|
45 * 1st phase constructor. |
|
46 * @param aObserver, 3AM timer observer |
|
47 */ |
|
48 static CLocationGeoTagTimerAO* NewL( |
|
49 MyLocationTimerObserver& aObserver ); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~CLocationGeoTagTimerAO(); |
|
55 |
|
56 /** |
|
57 * Start 3AM timer |
|
58 */ |
|
59 void StartTimer(); |
|
60 |
|
61 |
|
62 #ifdef MYLOCATIONENGINE_UNIT_TEST |
|
63 public: |
|
64 #else |
|
65 protected: |
|
66 #endif |
|
67 /* |
|
68 * @see CActive::RunL() |
|
69 */ |
|
70 void RunL(); |
|
71 |
|
72 /** |
|
73 * 2nd Phase constructor |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 /** |
|
78 * CLocationGeoTagTimerAO |
|
79 * Constructor |
|
80 * @param aObserver, 3AM timer observer |
|
81 */ |
|
82 CLocationGeoTagTimerAO( MyLocationTimerObserver& aObserver ); |
|
83 |
|
84 private: |
|
85 MyLocationTimerObserver* iTimerObserver; |
|
86 }; |
|
87 |
|
88 |
|
89 #endif /*__MYLOCATIONGEOTAGTIMERAO_H__*/ |
|
90 |
|
91 // End of file |