|
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 "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: class for MPX Video File Details |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 8 % |
|
19 |
|
20 |
|
21 // |
|
22 // INCLUDE FILES |
|
23 // |
|
24 #include "mpxvideo_debug.h" |
|
25 #include "mpxvideoplaybackviewfiledetails.h" |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =================================================== |
|
28 |
|
29 CMPXVideoPlaybackViewFileDetails* |
|
30 CMPXVideoPlaybackViewFileDetails::NewL() |
|
31 { |
|
32 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackViewFileDetails::NewL()")); |
|
33 |
|
34 CMPXVideoPlaybackViewFileDetails* p = new (ELeave) CMPXVideoPlaybackViewFileDetails(); |
|
35 CleanupStack::PushL(p); |
|
36 p->ConstructL(); |
|
37 CleanupStack::Pop(p); |
|
38 return p; |
|
39 } |
|
40 |
|
41 CMPXVideoPlaybackViewFileDetails::~CMPXVideoPlaybackViewFileDetails() |
|
42 { |
|
43 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackViewFileDetails::~CMPXVideoPlaybackViewFileDetails()")); |
|
44 |
|
45 ClearFileDetails(); |
|
46 } |
|
47 |
|
48 void |
|
49 CMPXVideoPlaybackViewFileDetails::ConstructL() |
|
50 { |
|
51 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackViewFileDetails::ConstructL()")); |
|
52 iSeekable = ETrue; |
|
53 } |
|
54 |
|
55 void |
|
56 CMPXVideoPlaybackViewFileDetails::ClearFileDetails() |
|
57 { |
|
58 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackViewFileDetails::ClearFileDetails()")); |
|
59 |
|
60 if ( iMimeType ) |
|
61 { |
|
62 delete iMimeType; |
|
63 iMimeType = NULL; |
|
64 } |
|
65 |
|
66 if ( iTitle ) |
|
67 { |
|
68 delete iTitle; |
|
69 iTitle = NULL; |
|
70 } |
|
71 |
|
72 if ( iArtist ) |
|
73 { |
|
74 delete iArtist; |
|
75 iArtist = NULL; |
|
76 } |
|
77 |
|
78 if ( iClipName ) |
|
79 { |
|
80 delete iClipName; |
|
81 iClipName = NULL; |
|
82 } |
|
83 |
|
84 iPlaybackMode = EMPXVideoLocal; |
|
85 iSeekable = ETrue; |
|
86 iAudioEnabled = EFalse; |
|
87 iVideoEnabled = EFalse; |
|
88 iPartialPlayback = EFalse; |
|
89 iRNFormat = EFalse; |
|
90 |
|
91 iDuration = 0; |
|
92 iTvOutConnected = EFalse; |
|
93 iTvOutPlayAllowed = ETrue; |
|
94 iDrmProtected = EFalse; |
|
95 |
|
96 iVideoHeight = 0; |
|
97 iVideoWidth = 0; |
|
98 iBitRate = 0; |
|
99 iFourCCCode = 0; |
|
100 } |
|
101 |
|
102 // EOF |