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