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