|
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 * Active object for getting notification when there is enough |
|
16 * free disk space to regain the original size of the reserve file. |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef SHARED_DATA_FILE_SYSTEM_NOTIFIER_H |
|
23 #define SHARED_DATA_FILE_SYSTEM_NOTIFIER_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 #include <s32file.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CDosServer; |
|
31 class CDosSharedDataBase; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Active object for getting notification when there is enough free disk space |
|
37 * to regain the original size of the reserve file. |
|
38 */ |
|
39 NONSHARABLE_CLASS(CSharedDataFileSystemNotifier) : public CActive |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor |
|
45 */ |
|
46 static CSharedDataFileSystemNotifier* NewL( CDosServer& aServer ); |
|
47 |
|
48 ~CSharedDataFileSystemNotifier(); |
|
49 |
|
50 public: |
|
51 |
|
52 void Start( TInt aTreshold, RFs& aFs, CDosSharedDataBase* sdBase ); |
|
53 CDosServer& iServer; |
|
54 |
|
55 protected: // From CActive |
|
56 |
|
57 void RunL(); |
|
58 void DoCancel(); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * C++ default constructors. |
|
64 */ |
|
65 CSharedDataFileSystemNotifier( CDosServer& aServer ); |
|
66 |
|
67 private: // Data |
|
68 |
|
69 RFs iFs; |
|
70 CDosSharedDataBase* iSDBase; |
|
71 }; |
|
72 |
|
73 #endif // SHARED_DATA_FILE_SYSTEM_NOTIFIER_H |
|
74 |
|
75 // End of File |