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