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 "T_TestFSY1.h"
|
|
19 |
|
|
20 |
// EPOC includes
|
|
21 |
#include <f32ver.h>
|
|
22 |
|
|
23 |
/*@{*/
|
|
24 |
_LIT(KFileSystemName, "TestFileSystem1");
|
|
25 |
|
|
26 |
const TInt KMajorVersionNumber=1;
|
|
27 |
const TInt KMinorVersionNumber=0;
|
|
28 |
/*@}*/
|
|
29 |
|
|
30 |
CFileSystem* CTestFileSystem1::NewL()
|
|
31 |
//
|
|
32 |
// Return File System
|
|
33 |
//
|
|
34 |
{
|
|
35 |
return (new (ELeave) CTestFileSystem1);
|
|
36 |
}
|
|
37 |
|
|
38 |
CTestFileSystem1::CTestFileSystem1()
|
|
39 |
//
|
|
40 |
// Constructor
|
|
41 |
//
|
|
42 |
{
|
|
43 |
}
|
|
44 |
|
|
45 |
TInt CTestFileSystem1::Install()
|
|
46 |
//
|
|
47 |
// Install the file system
|
|
48 |
//
|
|
49 |
{
|
|
50 |
iVersion=TVersion(KMajorVersionNumber, KMinorVersionNumber, KF32BuildVersionNumber);
|
|
51 |
return(SetName(&KFileSystemName));
|
|
52 |
}
|
|
53 |
TBool CTestFileSystem1::IsExtensionSupported() const
|
|
54 |
//
|
|
55 |
// Return false to disallow mount extension on this file system
|
|
56 |
//
|
|
57 |
{
|
|
58 |
return EFalse;
|
|
59 |
}
|
|
60 |
|
|
61 |
extern "C" {
|
|
62 |
|
|
63 |
EXPORT_C CFileSystem* CreateFileSystem()
|
|
64 |
//
|
|
65 |
// Create a new file system
|
|
66 |
//
|
|
67 |
{
|
|
68 |
return(CTestFileSystem1::NewL());
|
|
69 |
}
|
|
70 |
}
|