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 __MMCOBSERVER_H__ |
|
21 #define __MMCOBSERVER_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class RFs; |
|
26 |
|
27 class MMemoryCardObserver |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * Implement this method to be notified when MMC status |
|
32 * changes. |
|
33 */ |
|
34 virtual void MMCStatusChangedL() = 0; |
|
35 }; |
|
36 |
|
37 class CMmcObserver : public CActive |
|
38 { |
|
39 public: |
|
40 IMPORT_C static CMmcObserver* NewL( MMemoryCardObserver* aObserver, |
|
41 RFs* aFileServerSession ); |
|
42 IMPORT_C void StartObserver(); |
|
43 |
|
44 // TBI |
|
45 IMPORT_C TBool MMCCurrentlyInserted(); |
|
46 |
|
47 void RunL(); |
|
48 void DoCancel(); |
|
49 ~CMmcObserver(); |
|
50 |
|
51 private: |
|
52 void ConstructL( MMemoryCardObserver* aObserver, |
|
53 RFs* aFileServerSession ); |
|
54 CMmcObserver(); |
|
55 MMemoryCardObserver* iObserver; |
|
56 RFs* iFsSession; |
|
57 CAsyncCallBack* iAsyncCallBack; |
|
58 }; |
|
59 |
|
60 #endif // __MMCOBSERVER_H__ |
|
61 |
|
62 // End of File |