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: Class declaration for CMscFileController. |
|
14 // |
|
15 // |
|
16 |
|
17 #ifndef MSCFILECONTROLLER_H |
|
18 #define MSCFILECONTROLLER_H |
|
19 |
|
20 #include <e32base.h> |
|
21 #include "usbmscfileshared.h" |
|
22 #include "filesystemimage.h" |
|
23 #include "mscfileserver.h" |
|
24 #include "protocol.h" |
|
25 |
|
26 /** |
|
27 Mass Storage Controller class. |
|
28 Encapsulates the drive manager, transport and protocol for USB Mass Storage. |
|
29 Its main purpose is to instantiate and initialize these objects. |
|
30 */ |
|
31 class CMscFileController : public CBase |
|
32 { |
|
33 public: |
|
34 static CMscFileController* NewL(); |
|
35 ~CMscFileController(); |
|
36 |
|
37 private: |
|
38 CMscFileController(); |
|
39 void ConstructL(); |
|
40 |
|
41 public: |
|
42 void SetupLogicalUnitL( const TDesC& aFileName, |
|
43 const TInt aProtocol, |
|
44 const TInt aLun ); |
|
45 TInt Start( TMassStorageConfig& aConfig ); |
|
46 TInt Stop(); |
|
47 void Reset(); |
|
48 CFileSystemImage* FsImage( TInt aLun ); |
|
49 private: |
|
50 CFileSystemImage* iFsImage; |
|
51 MTransportBase* iTransport; |
|
52 MProtocolBase* iProtocol; |
|
53 TMassStorageConfig iConfig; |
|
54 TInt iMaxDrives; |
|
55 }; |
|
56 |
|
57 #endif //MSCFILECONTROLLER_H |
|