|
1 /* |
|
2 * Copyright (c) 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: Header file for dialog monitor |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPENGAODIALOGMONITOR_H |
|
21 #define CPENGAODIALOGMONITOR_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MPEngAODialogStatusNotifier; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * CPEngAODialogMonitor. |
|
33 * Monitors the dialog status |
|
34 */ |
|
35 class CPEngAODialogMonitor : public CActive |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CPEngAODialogMonitor* NewL( MPEngAODialogStatusNotifier& aNotifier ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CPEngAODialogMonitor(); |
|
47 |
|
48 public: // New functions |
|
49 |
|
50 |
|
51 /** |
|
52 * StartMonitoring. |
|
53 * @return void |
|
54 */ |
|
55 void Start(); |
|
56 |
|
57 |
|
58 private: // Functions from base classes |
|
59 |
|
60 /** |
|
61 * From CActive Handles an active object’s request completion event. |
|
62 * @return void |
|
63 */ |
|
64 void RunL(); |
|
65 |
|
66 /** |
|
67 * From CActive Cancels any outstanding request. |
|
68 * @return void |
|
69 */ |
|
70 void DoCancel(); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 */ |
|
77 CPEngAODialogMonitor( MPEngAODialogStatusNotifier& aNotifier ); |
|
78 |
|
79 /** |
|
80 * By default Symbian 2nd phase constructor is private. |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 private: // Data |
|
85 MPEngAODialogStatusNotifier& iNotifier; |
|
86 }; |
|
87 |
|
88 #endif // CPENGAODIALOGMONITOR_H |
|
89 |
|
90 // End of File |