equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2007 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 pause handling control for the slideshow |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef SHWTICKER_H |
|
23 #define SHWTICKER_H |
|
24 |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <e32std.h> |
|
28 |
|
29 |
|
30 |
|
31 class MShwTickObserver; |
|
32 |
|
33 NONSHARABLE_CLASS(CShwTicker) : public CActive |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * NewL |
|
40 * 2phased constructor |
|
41 * @param MShwTickObserver& |
|
42 */ |
|
43 static CShwTicker* NewL(MShwTickObserver& aObserver); |
|
44 |
|
45 /** |
|
46 * StartTicking |
|
47 * set the ticker |
|
48 * @param interval in seconds |
|
49 */ |
|
50 void StartTicking(TInt aAfter); |
|
51 |
|
52 /** |
|
53 * CancelTicking |
|
54 * Cancel a tick |
|
55 */ |
|
56 void CancelTicking(); |
|
57 |
|
58 /** |
|
59 * ~CShwTicker |
|
60 * Standard c++ destructor |
|
61 */ |
|
62 ~CShwTicker(); |
|
63 |
|
64 private: |
|
65 |
|
66 /** |
|
67 * CShwTicker |
|
68 * C++ constructor |
|
69 */ |
|
70 CShwTicker(MShwTickObserver& aObserver); |
|
71 |
|
72 /** |
|
73 * ConstructL |
|
74 * 2nd Phase constructor |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 /** |
|
79 * RunL |
|
80 * see @ref CActive |
|
81 */ |
|
82 void RunL(); |
|
83 |
|
84 /** |
|
85 * DoCancel |
|
86 * see @ref CActive |
|
87 */ |
|
88 void DoCancel(); |
|
89 |
|
90 private: |
|
91 |
|
92 /** */ |
|
93 MShwTickObserver& iObserver; |
|
94 |
|
95 RTimer iTimer; |
|
96 |
|
97 |
|
98 }; |
|
99 |
|
100 #endif//SHWTICKER_H |
|
101 |
|
102 |