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 sl@0: sl@0: sl@0: class CEmptyExtProxyDrive : public CBaseExtProxyDrive sl@0: { sl@0: public: sl@0: static CEmptyExtProxyDrive* NewL(CProxyDrive* aProxyDrive, CMountCB* aMount); sl@0: ~CEmptyExtProxyDrive(); sl@0: sl@0: private: sl@0: CEmptyExtProxyDrive(CProxyDrive* aProxyDrive, CMountCB* aMount); sl@0: }; sl@0: sl@0: class CEmptyProxyDriveFactory : public CProxyDriveFactory sl@0: { sl@0: public: sl@0: CEmptyProxyDriveFactory(); sl@0: virtual TInt Install(); sl@0: virtual CProxyDrive* NewProxyDriveL(CProxyDrive* aProxy,CMountCB* aMount); sl@0: }; sl@0: sl@0: CEmptyExtProxyDrive* CEmptyExtProxyDrive::NewL(CProxyDrive* aProxyDrive, CMountCB* aMount) sl@0: { sl@0: CEmptyExtProxyDrive* temp=new(ELeave) CEmptyExtProxyDrive(aProxyDrive,aMount); sl@0: return(temp); sl@0: } sl@0: sl@0: sl@0: CEmptyExtProxyDrive::CEmptyExtProxyDrive(CProxyDrive* aProxyDrive, CMountCB* aMount):CBaseExtProxyDrive(aProxyDrive,aMount) sl@0: { sl@0: } sl@0: sl@0: CEmptyExtProxyDrive::~CEmptyExtProxyDrive() sl@0: { sl@0: } sl@0: sl@0: CEmptyProxyDriveFactory::CEmptyProxyDriveFactory() sl@0: { sl@0: } sl@0: sl@0: TInt CEmptyProxyDriveFactory::Install() sl@0: { sl@0: _LIT(KEmptyName,"TestFileExtension"); sl@0: return(SetName(&KEmptyName)); sl@0: } sl@0: sl@0: CProxyDrive* CEmptyProxyDriveFactory::NewProxyDriveL(CProxyDrive* aProxy,CMountCB* aMount) sl@0: { sl@0: return(CEmptyExtProxyDrive::NewL(aProxy,aMount)); sl@0: } sl@0: sl@0: extern "C" { sl@0: sl@0: EXPORT_C CProxyDriveFactory* CreateFileSystem() sl@0: // sl@0: // Create a new file system sl@0: // sl@0: { sl@0: return(new CEmptyProxyDriveFactory()); sl@0: } sl@0: }