|
1 /* |
|
2 * Copyright (c) 2002 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: Container class for file details* |
|
15 */ |
|
16 |
|
17 |
|
18 // Version : %version: 6 % |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "MPFileDetails.h" |
|
23 #include <featmgr.h> |
|
24 #include "mpxvideo_debug.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CMPFileDetails::CMPFileDetails |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C CMPFileDetails::CMPFileDetails() |
|
35 : iSeekable( ETrue ), iDRMExpireConstraint( EMediaPlayerNone ), iDRMhasInfoURL(EFalse) |
|
36 { |
|
37 MPX_ENTER_EXIT(_L("CMPFileDetails::CMPFileDetails()")); |
|
38 |
|
39 //Initializing to make sure no garbage in the variables |
|
40 iTitle = NULL; |
|
41 iFileName = NULL; |
|
42 iFilePath = NULL; |
|
43 iUrl = NULL; |
|
44 iFormat = NULL; |
|
45 iCopyright = NULL; |
|
46 iArtist = NULL; |
|
47 iAlbum = NULL; |
|
48 iYear = NULL; |
|
49 |
|
50 iOriginalArtist = NULL; |
|
51 iAlbumTrack = NULL; |
|
52 iGenre = NULL; |
|
53 iComposer = NULL; |
|
54 iAudioFileWebPage = NULL; |
|
55 iComment = NULL; |
|
56 iProvider = NULL; |
|
57 iDescription = NULL; |
|
58 |
|
59 iArtistXpcs = NULL; |
|
60 iTitleXpcs = NULL; |
|
61 iAlbumXpcs = NULL ; |
|
62 iInfoXpcs = NULL; |
|
63 |
|
64 iDRMInfoURL = NULL; |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CMPFileDetails::~CMPFileDetails |
|
69 // Destructor |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C CMPFileDetails::~CMPFileDetails() |
|
73 { |
|
74 MPX_ENTER_EXIT(_L("CMPFileDetails::~CMPFileDetails()")); |
|
75 |
|
76 delete iTitle; |
|
77 delete iFileName; |
|
78 delete iFilePath; |
|
79 delete iUrl; |
|
80 delete iFormat; |
|
81 delete iCopyright; |
|
82 delete iArtist; |
|
83 delete iAlbum; |
|
84 delete iYear; |
|
85 |
|
86 // ID3v2 |
|
87 delete iOriginalArtist; |
|
88 delete iAlbumTrack; |
|
89 delete iGenre; |
|
90 delete iComposer; |
|
91 delete iAudioFileWebPage; |
|
92 delete iComment; |
|
93 delete iProvider; |
|
94 delete iDescription; |
|
95 |
|
96 // For X-pcs meta data |
|
97 delete iArtistXpcs; |
|
98 delete iTitleXpcs; |
|
99 delete iAlbumXpcs; |
|
100 delete iInfoXpcs; |
|
101 |
|
102 //DRM |
|
103 if (iDRMInfoURL && iDRMhasInfoURL) |
|
104 delete iDRMInfoURL; //DRM2 |
|
105 |
|
106 if (iDetailsFileHandle.SubSessionHandle()) |
|
107 iDetailsFileHandle.Close(); |
|
108 } |
|
109 |
|
110 // End of File |