271
|
1 |
// Copyright (c) 2004-2010 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 |
//
|
|
15 |
|
|
16 |
|
|
17 |
/** @file
|
|
18 |
@internalTechnology
|
|
19 |
Class declaration for CUsbMassStorageController.
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef __CUSBMASSSTORAGECONTROLLER_H__
|
|
23 |
#define __CUSBMASSSTORAGECONTROLLER_H__
|
|
24 |
|
|
25 |
#include "cusbmassstorageserver.h"
|
|
26 |
#include "t_13cases_protocol.h"
|
|
27 |
#include "usbmsshared.h"
|
|
28 |
|
|
29 |
class CBulkOnlyTransport;
|
|
30 |
|
|
31 |
|
|
32 |
/**
|
|
33 |
Stub Mass Storage Controller class for bulk-only transport testing.
|
|
34 |
*/
|
|
35 |
class CUsbMassStorageController : public CActive
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
CUsbMassStorageController();
|
|
39 |
~CUsbMassStorageController();
|
|
40 |
void CreateL(TUint aMaxDrives);
|
|
41 |
TInt Start();
|
|
42 |
TInt Stop();
|
|
43 |
void Reset();
|
|
44 |
void RunL();
|
|
45 |
void DoCancel();
|
|
46 |
CDriveManager& DriveManager();
|
|
47 |
void GetTransport(MTransportBase* &aTransport);
|
|
48 |
void SetTransport(MTransportBase* aTransport);
|
|
49 |
enum TTransportldd {EUsbc = 1, EUsbcsc};
|
|
50 |
|
|
51 |
private:
|
|
52 |
TInt iMaxDrives;
|
|
53 |
CScsiProtocol* iProtocol;
|
|
54 |
MTransportBase* iTransport;
|
|
55 |
CDriveManager iStubDriveManager;
|
|
56 |
};
|
|
57 |
|
|
58 |
#endif //__CUSBMASSSTORAGECONTROLLER_H__
|