usbclasses/usbphoneasmodem/classimplementation/mscfileserver/inc/mscfilecontroller.h
changeset 0 1e05558e2206
child 2 468cfcb53fd1
equal deleted inserted replaced
-1:000000000000 0:1e05558e2206
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // 
       
    15 // 
       
    16 
       
    17 
       
    18 /** 
       
    19  @file
       
    20  @internalTechnology
       
    21  Class declaration for CMscFileController.
       
    22 */
       
    23 
       
    24 #ifndef MSCFILECONTROLLER_H
       
    25 #define MSCFILECONTROLLER_H
       
    26 
       
    27 #include <e32base.h>
       
    28 #include "usbmscfileshared.h"
       
    29 #include "filesystemimage.h"
       
    30 #include "mscfileserver.h"
       
    31 #include "protocol.h"
       
    32 
       
    33 /**
       
    34 Mass Storage Controller class.
       
    35 Encapsulates the drive manager, transport and protocol for USB Mass Storage.
       
    36 Its main purpose is to instantiate and initialize these objects.
       
    37 */
       
    38 class CMscFileController : public CBase
       
    39 	{
       
    40 public:
       
    41     static CMscFileController* NewL();
       
    42 	~CMscFileController();
       
    43 	
       
    44 private:
       
    45     CMscFileController();
       
    46 	void ConstructL();
       
    47 	
       
    48 public:
       
    49     void SetupLogicalUnitL( const TDesC& aFileName, 
       
    50                            const TInt aProtocol, 
       
    51                            const TInt aLun );
       
    52 	TInt Start( TMassStorageConfig& aConfig );
       
    53 	TInt Stop();
       
    54 	void Reset();
       
    55 	CFileSystemImage* FsImage( TInt aLun );
       
    56 private:
       
    57 	CFileSystemImage* iFsImage;
       
    58 	MTransportBase* iTransport;
       
    59 	MProtocolBase* iProtocol;
       
    60 	TMassStorageConfig iConfig;
       
    61 	TInt iMaxDrives;
       
    62 	};
       
    63 
       
    64 #endif //MSCFILECONTROLLER_H