|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Holds information of an MMC. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __TMMCINFO_H__ |
|
21 #define __TMMCINFO_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <f32file.h> |
|
25 |
|
26 const TInt KMaxMMCVolumeName = 11; // Limited by FAT |
|
27 |
|
28 // CLASS DEFINITION |
|
29 class TMmcInfo |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * @return Name of the MMC. |
|
34 */ |
|
35 const TDesC& Name(); |
|
36 |
|
37 /** |
|
38 * @return Total capacity of the MMC. |
|
39 */ |
|
40 TInt64 Capacity(); |
|
41 |
|
42 /** |
|
43 * @return Amount of free space on MMC. |
|
44 */ |
|
45 TInt64 SpaceFree(); |
|
46 |
|
47 /** |
|
48 * @return MMC ID. |
|
49 */ |
|
50 TUint ID(); |
|
51 |
|
52 /** |
|
53 * @return Boolean indicating if the MMC is formattable. |
|
54 */ |
|
55 TBool IsFormattable(); |
|
56 |
|
57 /** |
|
58 * @return Boolean indicating if the MMC is formatted. |
|
59 */ |
|
60 TBool IsFormatted(); |
|
61 |
|
62 /** |
|
63 * @return Boolean indicating if the MMC is lockable. |
|
64 */ |
|
65 TBool IsLockable(); |
|
66 |
|
67 /** |
|
68 * @return Boolean indicating if the MMC is locked. |
|
69 */ |
|
70 TBool IsLocked(); |
|
71 |
|
72 /** |
|
73 * @return Boolean indicating if the MMC is read only. |
|
74 */ |
|
75 TBool IsReadOnly(); |
|
76 |
|
77 /** |
|
78 * @return Boolean indicating if password is set in the MMC. |
|
79 */ |
|
80 TBool IsPasswordSet(); |
|
81 |
|
82 /** |
|
83 * @return Boolean indicating if MMC is inserted. |
|
84 */ |
|
85 TBool IsInserted(); |
|
86 |
|
87 /** |
|
88 * @return Boolean indicating if MMC is in use |
|
89 */ |
|
90 TBool IsInUse(); |
|
91 |
|
92 /** |
|
93 * @return Boolean indicating if a backup archive exists on the MMC. |
|
94 */ |
|
95 TBool BackupExists(); |
|
96 |
|
97 //private: |
|
98 TBufC< KMaxMMCVolumeName > iName; |
|
99 TInt64 iCapacity; |
|
100 TInt64 iSpaceFree; |
|
101 TUint iUid; |
|
102 TBool iIsFormattable; |
|
103 TBool iIsFormatted; |
|
104 TBool iIsLockable; |
|
105 TBool iIsLocked; |
|
106 TBool iIsReadOnly; |
|
107 TBool iIsPasswordSet; |
|
108 TBool iIsInserted; |
|
109 TBool iBackupExists; |
|
110 TBool iIsInUse; |
|
111 }; |
|
112 |
|
113 #endif // __TMMCINFO_H__ |
|
114 |
|
115 // End of File |