os/kernelhwsrv/userlibandfileserver/fileserver/smassstorage/inc/cusbmassstoragecontroller.h
Update contrib.
1 // Copyright (c) 2004-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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Class declaration for CUsbMassStorageController.
23 #ifndef __CUSBMASSSTORAGECONTROLLER_H__
24 #define __CUSBMASSSTORAGECONTROLLER_H__
27 #include <usbmsshared.h>
28 #include "drivemanager.h"
29 #include "cusbmassstorageserver.h"
33 Mass Storage Controller class.
34 Encapsulates the drive manager, transport and protocol for USB Mass Storage.
35 Its main purpose is to instantiate and initialize these objects.
37 class CUsbMassStorageController : public CBase
40 ~CUsbMassStorageController();
41 void CreateL(RArray<TInt>& aDriveMapping);
42 CDriveManager& DriveManager();
43 TInt Start(TMassStorageConfig& aConfig);
46 void GetTransport(MTransportBase* &aTransport);
47 enum TTransportldd {EUsbc = 1, EUsbcsc};
50 CDriveManager* iDriveManager;
51 MTransportBase* iTransport;
52 MProtocolBase* iProtocol;
53 CUsbMassStorageServer* iServer;
54 TMassStorageConfig iConfig;
56 TTransportldd iTransportLddFlag;
59 #endif //__CUSBMASSSTORAGECONTROLLER_H__