equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003 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 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef DEVENCDISKSTATUSOBSERVER_H_ |
|
21 #define DEVENCDISKSTATUSOBSERVER_H_ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32property.h> |
|
25 #include <f32file.h> |
|
26 |
|
27 class MDiskStatusObserver |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * Implement this method to be notified when disk status |
|
32 * changes. |
|
33 */ |
|
34 IMPORT_C virtual void DiskStatusChangedL( TInt aNfeStatus ) = 0; |
|
35 }; |
|
36 |
|
37 class CDiskStatusObserver : public CActive |
|
38 { |
|
39 public: |
|
40 IMPORT_C static CDiskStatusObserver* NewL( MDiskStatusObserver* aObserver, TDriveNumber aDriveNumber ); |
|
41 |
|
42 void RunL(); |
|
43 void DoCancel(); |
|
44 ~CDiskStatusObserver(); |
|
45 |
|
46 private: |
|
47 void ConstructL( MDiskStatusObserver* aObserver, TDriveNumber aDriveNumber ); |
|
48 CDiskStatusObserver(); |
|
49 TBool IsEncryptionOperationOngoing(); |
|
50 |
|
51 private: |
|
52 MDiskStatusObserver* iObserver; |
|
53 RProperty iNfeStatus; |
|
54 TDriveNumber iDrive; |
|
55 }; |
|
56 |
|
57 #endif /*DEVENCDISKSTATUSOBSERVER_H_*/ |