sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include "T_TestFSY1.h" sl@0: sl@0: // EPOC includes sl@0: #include sl@0: sl@0: /*@{*/ sl@0: _LIT(KFileSystemName, "TestFileSystem1"); sl@0: sl@0: const TInt KMajorVersionNumber=1; sl@0: const TInt KMinorVersionNumber=0; sl@0: /*@}*/ sl@0: sl@0: CFileSystem* CTestFileSystem1::NewL() sl@0: // sl@0: // Return File System sl@0: // sl@0: { sl@0: return (new (ELeave) CTestFileSystem1); sl@0: } sl@0: sl@0: CTestFileSystem1::CTestFileSystem1() sl@0: // sl@0: // Constructor sl@0: // sl@0: { sl@0: } sl@0: sl@0: TInt CTestFileSystem1::Install() sl@0: // sl@0: // Install the file system sl@0: // sl@0: { sl@0: iVersion=TVersion(KMajorVersionNumber, KMinorVersionNumber, KF32BuildVersionNumber); sl@0: return(SetName(&KFileSystemName)); sl@0: } sl@0: TBool CTestFileSystem1::IsExtensionSupported() const sl@0: // sl@0: // Return false to disallow mount extension on this file system sl@0: // sl@0: { sl@0: return EFalse; sl@0: } sl@0: sl@0: extern "C" { sl@0: sl@0: EXPORT_C CFileSystem* CreateFileSystem() sl@0: // sl@0: // Create a new file system sl@0: // sl@0: { sl@0: return(CTestFileSystem1::NewL()); sl@0: } sl@0: }