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