|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "vcxmyvideosdrivemonitorevent.h" |
|
23 |
|
24 #ifdef _DEBUG |
|
25 _LIT(KIptvDmeMediaRemovedDes, "EMediaRemoved"); |
|
26 _LIT(KIptvDmeMediaInsertedDes, "EMediaInserted"); |
|
27 _LIT(KIptvDmeDriveLockedDes, "EDriveLocked"); |
|
28 _LIT(KIptvDmeDriveUnlockedDes, "EDriveUnlocked"); |
|
29 _LIT(KIptvDmeDriveMountedDes, "EDriveMounted"); |
|
30 _LIT(KIptvDmeDriveDismountedDes, "EDriveDismounted"); |
|
31 _LIT(KIptvDmeDriveVolumeNameChangedDes, "EDriveVolumeNameChanged"); |
|
32 _LIT(KIptvDmeUnknownDes, "Unknown"); |
|
33 #endif |
|
34 |
|
35 // ============================ MEMBER FUNCTIONS =============================== |
|
36 |
|
37 TVcxMyVideosDriveMonitorEvent::TVcxMyVideosDriveMonitorEvent() |
|
38 : iEvent( ENone ) |
|
39 , iDrive( -1 ) |
|
40 { |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // TVcxMyVideosDriveMonitorEvent::EventDes() |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 #ifdef _DEBUG |
|
48 const TDesC& TVcxMyVideosDriveMonitorEvent::EventDes( TVcxMyVideosDriveMonitorEvent::TEvent aEvent ) |
|
49 { |
|
50 switch ( aEvent ) |
|
51 { |
|
52 case EMediaRemoved: |
|
53 return KIptvDmeMediaRemovedDes; |
|
54 |
|
55 case EMediaInserted: |
|
56 return KIptvDmeMediaInsertedDes; |
|
57 |
|
58 case EDriveLocked: |
|
59 return KIptvDmeDriveLockedDes; |
|
60 |
|
61 case EDriveUnlocked: |
|
62 return KIptvDmeDriveUnlockedDes; |
|
63 |
|
64 case EDriveMounted: |
|
65 return KIptvDmeDriveMountedDes; |
|
66 |
|
67 case EDriveDismounted: |
|
68 return KIptvDmeDriveDismountedDes; |
|
69 |
|
70 case EDriveVolumeNameChanged: |
|
71 return KIptvDmeDriveVolumeNameChangedDes; |
|
72 |
|
73 default: |
|
74 return KIptvDmeUnknownDes; |
|
75 } |
|
76 } |
|
77 |
|
78 #else |
|
79 |
|
80 const TDesC& TVcxMyVideosDriveMonitorEvent::EventDes( TVcxMyVideosDriveMonitorEvent::TEvent /*aEvent*/ ) |
|
81 { |
|
82 return KNullDesC; |
|
83 } |
|
84 |
|
85 #endif |
|
86 |