1 /* |
|
2 * Copyright (c) 2008 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: Acts on MMC card insertion/removal |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef WIDGETMMCHANDLER_H |
|
20 #define WIDGETMMCHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 #include <apgnotif.h> |
|
27 #include "WidgetRegistryLog.h" |
|
28 |
|
29 // FORWARD DECLARATION |
|
30 class CWidgetRegistry; |
|
31 |
|
32 /* |
|
33 * Inherited CActive, performs a asynchronous conversion operation |
|
34 * |
|
35 * @since 3.1 |
|
36 */ |
|
37 class CWidgetMMCHandler : public CActive, public MApaAppListServObserver |
|
38 { |
|
39 public: |
|
40 |
|
41 static CWidgetMMCHandler* NewL( CWidgetRegistry& aRegistry, RFs& aFs ); |
|
42 |
|
43 virtual ~CWidgetMMCHandler(); |
|
44 |
|
45 void Start(); |
|
46 |
|
47 //from MApaAppListServObserver |
|
48 void HandleAppListEvent(TInt aEvent); |
|
49 |
|
50 protected: |
|
51 |
|
52 void RunL(); |
|
53 |
|
54 TInt RunError( TInt aError ); |
|
55 |
|
56 void DoCancel(); |
|
57 |
|
58 private: |
|
59 |
|
60 // no copy constructor |
|
61 CWidgetMMCHandler( const CWidgetMMCHandler& ); |
|
62 // no assignment |
|
63 CWidgetMMCHandler& operator=( const CWidgetMMCHandler& ); |
|
64 |
|
65 CWidgetMMCHandler( CWidgetRegistry& aRegistry, RFs& aFs ); |
|
66 |
|
67 void ConstructL(); |
|
68 |
|
69 TInt ScanDrives( TInt& aDriveFlags ); |
|
70 |
|
71 CWidgetRegistry* iRegistry; // not owned |
|
72 RFs iFs; |
|
73 |
|
74 TInt iDriveFlags; |
|
75 |
|
76 TInt iDeltaDriveFlags; |
|
77 |
|
78 CApaAppListNotifier* iApaAppListNotifier; |
|
79 |
|
80 public: |
|
81 |
|
82 LOG_MEMBER_VARS |
|
83 }; |
|
84 |
|
85 #endif // #ifndef WIDGETMMCHANDLER_H |
|