|
1 /* |
|
2 * Copyright (c) 2006 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 * Memory Scan Event Receiver |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef CMEMSCANEVENTRECEIVER_H |
|
21 #define CMEMSCANEVENTRECEIVER_H |
|
22 |
|
23 // SYSTEM INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <badesca.h> |
|
26 #include <memscanclient.h> |
|
27 |
|
28 |
|
29 class MMsengUIHandler; |
|
30 |
|
31 |
|
32 NONSHARABLE_CLASS(CMemScanEventReceiver) : public CActive |
|
33 { |
|
34 public: |
|
35 static CMemScanEventReceiver* NewL( MMsengUIHandler& aUIHandler ); |
|
36 ~CMemScanEventReceiver(); |
|
37 |
|
38 private: |
|
39 CMemScanEventReceiver( MMsengUIHandler& aUIHandler ); |
|
40 void ConstructL(); |
|
41 |
|
42 public: // API |
|
43 CDesCArray* DataGroupsL() const; |
|
44 CArrayFix<TInt64>* ScanResultL() const; |
|
45 TBool ScanInProgress() const; |
|
46 TInt ScanL(TDriveNumber aDrive); |
|
47 |
|
48 private: // From CActive |
|
49 void RunL(); |
|
50 void DoCancel(); |
|
51 TInt RunError( TInt aError ); |
|
52 |
|
53 private: // Internal functions |
|
54 void RegisterForScanEvents(); |
|
55 |
|
56 private: // Data members |
|
57 MMsengUIHandler& iUIHandler; |
|
58 RMemScanClient iScanClient; |
|
59 TInt iEventError; |
|
60 }; |
|
61 |
|
62 |
|
63 #endif // CMEMSCANEVENTRECEIVER_H |