1 /* |
|
2 * Copyright (c) 2005-2009 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 #include <f32fsys.h> |
|
20 |
|
21 |
|
22 class CEmptyExtProxyDrive : public CBaseExtProxyDrive |
|
23 { |
|
24 public: |
|
25 static CEmptyExtProxyDrive* NewL(CProxyDrive* aProxyDrive, CMountCB* aMount); |
|
26 ~CEmptyExtProxyDrive(); |
|
27 |
|
28 private: |
|
29 CEmptyExtProxyDrive(CProxyDrive* aProxyDrive, CMountCB* aMount); |
|
30 }; |
|
31 |
|
32 class CEmptyProxyDriveFactory : public CProxyDriveFactory |
|
33 { |
|
34 public: |
|
35 CEmptyProxyDriveFactory(); |
|
36 virtual TInt Install(); |
|
37 virtual CProxyDrive* NewProxyDriveL(CProxyDrive* aProxy,CMountCB* aMount); |
|
38 }; |
|
39 |
|
40 CEmptyExtProxyDrive* CEmptyExtProxyDrive::NewL(CProxyDrive* aProxyDrive, CMountCB* aMount) |
|
41 { |
|
42 CEmptyExtProxyDrive* temp=new(ELeave) CEmptyExtProxyDrive(aProxyDrive,aMount); |
|
43 return(temp); |
|
44 } |
|
45 |
|
46 |
|
47 CEmptyExtProxyDrive::CEmptyExtProxyDrive(CProxyDrive* aProxyDrive, CMountCB* aMount):CBaseExtProxyDrive(aProxyDrive,aMount) |
|
48 { |
|
49 } |
|
50 |
|
51 CEmptyExtProxyDrive::~CEmptyExtProxyDrive() |
|
52 { |
|
53 } |
|
54 |
|
55 CEmptyProxyDriveFactory::CEmptyProxyDriveFactory() |
|
56 { |
|
57 } |
|
58 |
|
59 TInt CEmptyProxyDriveFactory::Install() |
|
60 { |
|
61 _LIT(KEmptyName,"TestFileExtension"); |
|
62 return(SetName(&KEmptyName)); |
|
63 } |
|
64 |
|
65 CProxyDrive* CEmptyProxyDriveFactory::NewProxyDriveL(CProxyDrive* aProxy,CMountCB* aMount) |
|
66 { |
|
67 return(CEmptyExtProxyDrive::NewL(aProxy,aMount)); |
|
68 } |
|
69 |
|
70 extern "C" { |
|
71 |
|
72 EXPORT_C CProxyDriveFactory* CreateFileSystem() |
|
73 // |
|
74 // Create a new file system |
|
75 // |
|
76 { |
|
77 return(new CEmptyProxyDriveFactory()); |
|
78 } |
|
79 } |
|