|
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 __MSGERRORSMSDISKSPACEOBSERVER_H |
|
22 #define __MSGERRORSMSDISKSPACEOBSERVER_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 class CMsgErrorSmsDiskSpaceObserver : public CActive |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * |
|
43 * @param aWatcher A pointer to CMsgErrorWatcherPrivate |
|
44 */ |
|
45 static CMsgErrorSmsDiskSpaceObserver* NewL( CMsgErrorWatcherPrivate& aWatcher); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CMsgErrorSmsDiskSpaceObserver(); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * By default Symbian OS constructor is private. |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * Private C++ constructor. |
|
61 * |
|
62 * @param aWatcher A pointer to CMsgErrorWatcherPrivate |
|
63 */ |
|
64 CMsgErrorSmsDiskSpaceObserver( CMsgErrorWatcherPrivate& aWatcher); |
|
65 |
|
66 private: |
|
67 |
|
68 /** |
|
69 * From CActive |
|
70 */ |
|
71 void DoCancel(); |
|
72 |
|
73 /** |
|
74 * From CActive |
|
75 */ |
|
76 void RunL(); |
|
77 |
|
78 private: // Data |
|
79 |
|
80 CMsgErrorWatcherPrivate& iWatcher; |
|
81 RProperty iSmsDiskSpaceProperty; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // __MSGERRORSMSDISKSPACEOBSERVER_H |
|
86 |
|
87 // End of File |