0
|
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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Class declaration for CUsbMassStorageController.
|
286
|
15 |
//
|
0
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalTechnology
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __CUSBMASSSTORAGECONTROLLER_H__
|
|
24 |
#define __CUSBMASSSTORAGECONTROLLER_H__
|
|
25 |
|
286
|
26 |
|
|
27 |
class MTransportBase;
|
|
28 |
class MProtocolBase;
|
|
29 |
class CUsbMassStorageServer;
|
0
|
30 |
|
|
31 |
/**
|
|
32 |
Mass Storage Controller class.
|
|
33 |
Encapsulates the drive manager, transport and protocol for USB Mass Storage.
|
|
34 |
Its main purpose is to instantiate and initialize these objects.
|
|
35 |
*/
|
|
36 |
class CUsbMassStorageController : public CBase
|
286
|
37 |
{
|
|
38 |
public:
|
|
39 |
~CUsbMassStorageController();
|
|
40 |
void CreateL(RArray<TInt>& aDriveMapping);
|
|
41 |
CDriveManager& DriveManager();
|
|
42 |
TInt Start(TMassStorageConfig& aConfig);
|
|
43 |
TInt Stop();
|
|
44 |
void Reset();
|
|
45 |
void GetTransport(MTransportBase* &aTransport);
|
|
46 |
enum TTransportldd {EUsbc = 1, EUsbcsc};
|
|
47 |
|
|
48 |
private:
|
|
49 |
CDriveManager* iDriveManager;
|
|
50 |
MTransportBase* iTransport;
|
|
51 |
MProtocolBase* iProtocol;
|
|
52 |
CUsbMassStorageServer* iServer;
|
|
53 |
TMassStorageConfig iConfig;
|
|
54 |
TInt iMaxDrives;
|
|
55 |
TTransportldd iTransportLddFlag;
|
|
56 |
};
|
0
|
57 |
|
|
58 |
#endif //__CUSBMASSSTORAGECONTROLLER_H__
|