os/kernelhwsrv/baseapitest/basesvs/FileSystemPlugins/src/T_TestFSY1.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 "T_TestFSY1.h"
    20 
    21 //	EPOC includes
    22 #include <f32ver.h>
    23 
    24 /*@{*/
    25 _LIT(KFileSystemName,	"TestFileSystem1");
    26 
    27 const TInt	KMajorVersionNumber=1;
    28 const TInt	KMinorVersionNumber=0;
    29 /*@}*/
    30 
    31 CFileSystem* CTestFileSystem1::NewL()
    32 //
    33 // Return File System
    34 //
    35 	{
    36 	return (new (ELeave) CTestFileSystem1);
    37 	}
    38 
    39 CTestFileSystem1::CTestFileSystem1()
    40 //
    41 // Constructor
    42 //
    43 	{
    44 	}
    45 
    46 TInt CTestFileSystem1::Install()
    47 //
    48 // Install the file system
    49 //
    50 	{
    51 	iVersion=TVersion(KMajorVersionNumber, KMinorVersionNumber, KF32BuildVersionNumber);
    52 	return(SetName(&KFileSystemName));
    53 	}
    54 TBool CTestFileSystem1::IsExtensionSupported() const
    55 //
    56 //	Return false to disallow mount extension on this file system
    57 //
    58 	{
    59 	return EFalse;
    60 	}
    61 
    62 extern "C" {
    63 
    64 EXPORT_C CFileSystem* CreateFileSystem()
    65 //
    66 // Create a new file system
    67 //
    68 	{
    69 	return(CTestFileSystem1::NewL());
    70 	}
    71 }