author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 11 May 2010 17:28:22 +0300 | |
branch | RCL_3 |
changeset 26 | c734af59ce98 |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
0 | 3 |
* All rights reserved. |
4 |
* This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
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 |
* |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
14 |
* Description: |
0 | 15 |
* |
16 |
*/ |
|
17 |
||
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
18 |
|
0 | 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 |
} |