|
1 /* |
|
2 * Copyright (c) 2010 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 * CMsgErrorSmsDiskSpaceObserver declaration file |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __MSGERROREXTSMSDISKSPACEOBSERVER_H |
|
22 #define __MSGERROREXTSMSDISKSPACEOBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <e32property.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMsgErrorWatcherPrivate; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * CMsgErrorSmsDiskSpaceObserver |
|
35 * |
|
36 * @lib msgerrorwatcher.dll |
|
37 * @since 5.0 |
|
38 */ |
|
39 class CMsgErrorExtSmsDiskSpaceObserver : public CActive |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * |
|
46 * @param aWatcher A pointer to CMsgErrorWatcherPrivate |
|
47 */ |
|
48 static CMsgErrorExtSmsDiskSpaceObserver* NewL( CMsgErrorWatcherPrivate& aWatcher); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CMsgErrorExtSmsDiskSpaceObserver(); |
|
54 |
|
55 private: |
|
56 |
|
57 /** |
|
58 * By default Symbian OS constructor is private. |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 /** |
|
63 * Private C++ constructor. |
|
64 * |
|
65 * @param aWatcher A pointer to CMsgErrorWatcherPrivate |
|
66 */ |
|
67 CMsgErrorExtSmsDiskSpaceObserver( CMsgErrorWatcherPrivate& aWatcher); |
|
68 |
|
69 private: |
|
70 |
|
71 /** |
|
72 * From CActive |
|
73 */ |
|
74 void DoCancel(); |
|
75 |
|
76 /** |
|
77 * From CActive |
|
78 */ |
|
79 void RunL(); |
|
80 |
|
81 private: // Data |
|
82 |
|
83 /* |
|
84 * Reference to watcher |
|
85 * Doesn't own |
|
86 */ |
|
87 CMsgErrorWatcherPrivate& iWatcher; |
|
88 |
|
89 /* |
|
90 * Diskspace property |
|
91 */ |
|
92 RProperty iSmsDiskSpaceProperty; |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // __MSGERROREXTSMSDISKSPACEOBSERVER_H |
|
97 |
|
98 // End of File |