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