usbclasses/usbphoneasmodem/classimplementation/mscfileserver/inc/filesystemimage.h
equal
deleted
inserted
replaced
|
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: CFileSystemImage declaration |
|
14 // |
|
15 // |
|
16 |
|
17 #ifndef FILESYSTEMIMAGE_H |
|
18 #define FILESYSTEMIMAGE_H |
|
19 |
|
20 // INCLUDES |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include <f32file.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * CFileSystemImage |
|
29 * |
|
30 */ |
|
31 class CFileSystemImage : public CBase |
|
32 { |
|
33 public: |
|
34 // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 */ |
|
39 static CFileSystemImage* NewL( const TDesC& aFileName ); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~CFileSystemImage(); |
|
45 |
|
46 private: |
|
47 |
|
48 /** |
|
49 * Constructor for performing 1st stage construction |
|
50 */ |
|
51 CFileSystemImage(); |
|
52 |
|
53 /** |
|
54 * Default constructor for performing 2nd stage construction |
|
55 */ |
|
56 void ConstructL( const TDesC& aFileName ); |
|
57 |
|
58 public: |
|
59 TInt Open(); |
|
60 TInt Close(); |
|
61 TInt Read( const TInt64& aPos, TInt aLength, TDes8& aBuf ); |
|
62 TInt Write( const TInt64& aPos, TDesC8& aBuf ); |
|
63 TInt64 Size(); |
|
64 |
|
65 private: |
|
66 RFs iFs; |
|
67 RFile iFile; |
|
68 HBufC* iFileName; |
|
69 TBool iIsOpened; |
|
70 }; |
|
71 |
|
72 #endif // FILESYSTEMIMAGE_H |