equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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: Declaration of a CActive base class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __ACTIVEBASE_H__ |
|
21 #define __ACTIVEBASE_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CActiveBase class, an active object for selection plugin |
|
32 */ |
|
33 NONSHARABLE_CLASS( CActiveBase ) : public CActive |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * NewL function |
|
38 */ |
|
39 static CActiveBase* NewL(); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 virtual ~CActiveBase(); |
|
45 |
|
46 /** |
|
47 * Cancels the active object |
|
48 */ |
|
49 void Cancel(); |
|
50 |
|
51 /** |
|
52 * Timer callback of iPeridoc. |
|
53 */ |
|
54 static TInt Tick( TAny* aObject ); |
|
55 |
|
56 |
|
57 protected: |
|
58 /** |
|
59 * ConstructL |
|
60 */ |
|
61 void ConstructL(); |
|
62 |
|
63 /** |
|
64 * Constructor |
|
65 */ |
|
66 CActiveBase(); |
|
67 |
|
68 /** |
|
69 * DoCancel from CActive |
|
70 */ |
|
71 virtual void DoCancel(); |
|
72 |
|
73 /** |
|
74 * RunL from CActive |
|
75 */ |
|
76 virtual void RunL(); |
|
77 |
|
78 /** |
|
79 * Starts Timer |
|
80 * @param aTickInterval refersh interval |
|
81 */ |
|
82 void StartTimerL( TInt aTickInterval ); |
|
83 |
|
84 /** |
|
85 * Stops Timer |
|
86 */ |
|
87 void StopTimer(); |
|
88 |
|
89 |
|
90 protected: |
|
91 |
|
92 // Timer, to refresh iaps of networks. Owned. |
|
93 CPeriodic* iPeriodic; |
|
94 |
|
95 // used for complete runl, not owned. |
|
96 TRequestStatus* iClientStatus; |
|
97 }; |
|
98 |
|
99 |
|
100 #endif |
|
101 |
|
102 // End of File |