|
1 /* |
|
2 * Copyright (c) 2007-2008 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: The timer control for the slideshow |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __CSHWTIMERCONTROL_H__ |
|
22 #define __CSHWTIMERCONTROL_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 #include "shweventobserver.h" |
|
29 #include "shweventpublisherbase.h" |
|
30 |
|
31 // FORWARD DECLARATION |
|
32 class CShwTimer; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CShwTimerControl |
|
38 * |
|
39 * @lib shwslideshowengine.lib |
|
40 * @internal reviewed 07/06/2007 by Loughlin |
|
41 */ |
|
42 NONSHARABLE_CLASS( CShwTimerControl ) |
|
43 : public CShwEventPublisherBase, public MShwEventObserver |
|
44 { |
|
45 public: // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Constructor. |
|
49 */ |
|
50 static CShwTimerControl* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CShwTimerControl(); |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 * Constructor |
|
61 */ |
|
62 CShwTimerControl(); |
|
63 |
|
64 /** |
|
65 * 2nd stage constructor |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 public: // API |
|
70 |
|
71 /** |
|
72 * This method is called when the time tick occurs |
|
73 */ |
|
74 TInt SendTimerBeatL(); |
|
75 |
|
76 public: // From MShwEventObserver |
|
77 |
|
78 /// @ref MShwEventObserver::NotifyL |
|
79 void NotifyL( MShwEvent* aEvent ); |
|
80 |
|
81 private: |
|
82 |
|
83 /// Own: the timer |
|
84 CShwTimer* iTimer; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // __CSHWTIMERCONTROL_H__ |