|
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: |
|
15 * CMsgErrorCommDbObserver declaration file |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MSGERRORCOMMDBOBSERVER_H |
|
22 #define MSGERRORCOMMDBOBSERVER_H |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CMsgErrorWatcher; |
|
26 class CCommsDatabase; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CMsgErrorCommDbObserver |
|
32 * |
|
33 * @lib msgerrorwatcher.dll |
|
34 * @since 2.0 |
|
35 */ |
|
36 class CMsgErrorCommDbObserver : public CActive |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * |
|
43 * @param aWatcher A pointer to CMsgErrorWatcher |
|
44 */ |
|
45 static CMsgErrorCommDbObserver* NewL( CMsgErrorWatcher* aWatcher ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CMsgErrorCommDbObserver(); |
|
51 |
|
52 /** |
|
53 * For external reactivating the active object. |
|
54 */ |
|
55 void Restart(); |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 * By default Symbian OS constructor is private. |
|
61 */ |
|
62 void ConstructL(); |
|
63 |
|
64 /** |
|
65 * Private C++ constructor. |
|
66 * |
|
67 * @param aWatcher A pointer to CMsgErrorWatcher |
|
68 */ |
|
69 CMsgErrorCommDbObserver( CMsgErrorWatcher* aWatcher ); |
|
70 |
|
71 private: // from CActive |
|
72 |
|
73 /** |
|
74 * For starting the active object. |
|
75 */ |
|
76 void Start(); |
|
77 |
|
78 /** |
|
79 * From CActive |
|
80 */ |
|
81 void DoCancel(); |
|
82 |
|
83 /** |
|
84 * From CActive |
|
85 */ |
|
86 void RunL(); |
|
87 |
|
88 private: // Data |
|
89 |
|
90 CCommsDatabase* iDb; |
|
91 CMsgErrorWatcher* iWatcher; |
|
92 }; |
|
93 |
|
94 #endif // MSGERRORCOMMDBOBSERVER_H |
|
95 |
|
96 // End of File |