|
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: Drive monitor event object* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef TVIDEOSETTINGDRIVEMONITOREVENT_H |
|
21 #define TVIDEOSETTINGDRIVEMONITOREVENT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // FUNCTION PROTOTYPES |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Used for sending events from CIptvDriveMonitor to client. |
|
40 */ |
|
41 class TIptvDriveMonitorEvent |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Events, used in iEvent member variable. |
|
47 */ |
|
48 enum TEvent |
|
49 { |
|
50 /** |
|
51 * Value used at construction. |
|
52 */ |
|
53 ENone, |
|
54 |
|
55 /** |
|
56 * Media was removed (typically memory card). |
|
57 */ |
|
58 EMediaRemoved, |
|
59 |
|
60 /** |
|
61 * Media was inserted (typically memory card). |
|
62 */ |
|
63 EMediaInserted, |
|
64 |
|
65 /** |
|
66 * Drive was locked. |
|
67 */ |
|
68 EDriveLocked, |
|
69 |
|
70 /** |
|
71 * Drive was unlocked. |
|
72 */ |
|
73 EDriveUnlocked, |
|
74 |
|
75 /** |
|
76 * Drive was mounted. |
|
77 */ |
|
78 EDriveMounted, |
|
79 |
|
80 /** |
|
81 * Drive was dismounted. |
|
82 */ |
|
83 EDriveDismounted, |
|
84 |
|
85 /** |
|
86 * Drive volume name was changed. |
|
87 */ |
|
88 EDriveVolumeNameChanged |
|
89 }; |
|
90 |
|
91 public: // Constructors and destructor |
|
92 |
|
93 /** |
|
94 * C++ default constructor. |
|
95 */ |
|
96 IMPORT_C TIptvDriveMonitorEvent(); |
|
97 |
|
98 /** |
|
99 * Returns event as a descriptor. Used for debugging purposes. |
|
100 * |
|
101 * @param aEvent Event as enum. |
|
102 * @return Event as a descriptor. |
|
103 */ |
|
104 static const TDesC& EventDes( TEvent aEvent ); |
|
105 |
|
106 public: |
|
107 |
|
108 /** |
|
109 * Identifies the event, see TEvent for values. |
|
110 */ |
|
111 TInt iEvent; |
|
112 |
|
113 /** |
|
114 * The drive which caused the event (a = 0, b = 1, ... etc). |
|
115 */ |
|
116 TInt iDrive; |
|
117 |
|
118 }; |
|
119 |
|
120 #endif // TVIDEOSETTINGDRIVEMONITOREVENT_H |
|
121 |
|
122 // End of File |