|
1 /* |
|
2 * Copyright (c) 2007 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 the License "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: header file for TIptvDriveInfo class* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef TIPTVDRIVEINFO_H |
|
22 #define TIPTVDRIVEINFO_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 const TInt KIptvDriveNameMaxLength = 256; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * Container class for storing drive info relevant for Video Center. |
|
32 */ |
|
33 class TIptvDriveInfo |
|
34 { |
|
35 public: |
|
36 |
|
37 /* |
|
38 * Attribute flags used in iFlags member. |
|
39 */ |
|
40 enum TDriveAttributes |
|
41 { |
|
42 /** |
|
43 * Media can be removed from the drive, (E or F, depending on hw configuration). |
|
44 * If not set (= 0) then the drive is fixed. |
|
45 */ |
|
46 ERemovable = 1 << 0, |
|
47 |
|
48 /** |
|
49 * Default mass storage drive. |
|
50 */ |
|
51 EMassStorage = 1 << 1, |
|
52 |
|
53 /** |
|
54 * Media is locked. |
|
55 */ |
|
56 ELocked = 1 << 2, |
|
57 |
|
58 /** |
|
59 * Media is removed from the drive. |
|
60 */ |
|
61 EMediaNotPresent = 1 << 3 |
|
62 }; |
|
63 |
|
64 /** |
|
65 * Constructor, clears member variables to zero. |
|
66 */ |
|
67 IMPORT_C TIptvDriveInfo(); |
|
68 |
|
69 /** |
|
70 * Destructor. |
|
71 */ |
|
72 IMPORT_C ~TIptvDriveInfo(); |
|
73 |
|
74 public: |
|
75 |
|
76 /** |
|
77 * Drive ID number, 0 points to A:, 1 to B:, 2 to C: and so on. |
|
78 */ |
|
79 TInt iDrive; |
|
80 |
|
81 /** |
|
82 * Drive char. |
|
83 */ |
|
84 TChar iDriveChar; |
|
85 |
|
86 /** |
|
87 * Drive type, same as TDriveInfo::iType. |
|
88 */ |
|
89 TInt iType; |
|
90 |
|
91 /** |
|
92 * Properties of the drive, see TDriveAttributes -enum for flag values. |
|
93 */ |
|
94 TUint32 iFlags; |
|
95 |
|
96 /** |
|
97 * Volume name. Removable drive can contain different volumes (mmc cards). This name |
|
98 * refers to removable item (card label), not the drive. |
|
99 */ |
|
100 TBuf<KIptvDriveNameMaxLength> iVolumeName; |
|
101 }; |
|
102 |
|
103 #endif |