1 /* |
|
2 * Copyright (c) 2006 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: Header file for dialog monitor |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CWAITDIALOGMONITOR_H |
|
21 #define CWAITDIALOGMONITOR_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 //#include <etelmm.h> |
|
26 |
|
27 // CONSTANTS |
|
28 //None |
|
29 |
|
30 // MACROS |
|
31 // None |
|
32 |
|
33 // DATA TYPES |
|
34 // None |
|
35 |
|
36 // FUNCTION PROTOTYPES |
|
37 // None |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 |
|
41 class MWaitDialogStatusNotifier; |
|
42 |
|
43 // CLASS DECLARATION |
|
44 |
|
45 /** |
|
46 * CWaitDialogMonitor. |
|
47 * Monitors the dialog status |
|
48 * |
|
49 * @lib Confmanager.app |
|
50 * @since 2.0 |
|
51 */ |
|
52 class CWaitDialogMonitor : public CActive |
|
53 { |
|
54 public: // Constructors and destructor |
|
55 |
|
56 /** |
|
57 * Two-phased constructor. |
|
58 */ |
|
59 static CWaitDialogMonitor* NewL( MWaitDialogStatusNotifier& aNotifier ); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 ~CWaitDialogMonitor(); |
|
65 |
|
66 public: // New functions |
|
67 |
|
68 |
|
69 /** |
|
70 * StartMonitoring. |
|
71 * @since 2.0 |
|
72 * @return void |
|
73 */ |
|
74 void Start(); |
|
75 |
|
76 private: // Functions from base classes |
|
77 |
|
78 /** |
|
79 * From CActive Handles an active object’s request completion event. |
|
80 * @since 2.0 |
|
81 * @return void |
|
82 */ |
|
83 void RunL(); |
|
84 |
|
85 /** |
|
86 * From CActive Cancels any outstanding request. |
|
87 * @since 2.0 |
|
88 * @return void |
|
89 */ |
|
90 void DoCancel(); |
|
91 |
|
92 /** |
|
93 * From CActive Handles a leave occurring in the request completion event handler RunL(). |
|
94 */ |
|
95 //TInt RunError( TInt aError ); |
|
96 private: |
|
97 |
|
98 /** |
|
99 * C++ default constructor. |
|
100 */ |
|
101 CWaitDialogMonitor( MWaitDialogStatusNotifier& aNotifier ); |
|
102 |
|
103 /** |
|
104 * By default Symbian 2nd phase constructor is private. |
|
105 */ |
|
106 void ConstructL(); |
|
107 |
|
108 public: // Data |
|
109 |
|
110 protected: // Data |
|
111 |
|
112 private: // Data |
|
113 MWaitDialogStatusNotifier& iNotifier; |
|
114 |
|
115 }; |
|
116 |
|
117 #endif // CWaitDialogMonitor_H |
|
118 |
|
119 // End of File |
|