--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/filedetails/filedetailsdialog/src/MPFileDetails.cpp Wed Sep 01 12:30:28 2010 +0100
@@ -0,0 +1,110 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Container class for file details*
+*/
+
+
+// Version : %version: 8 %
+
+
+// INCLUDE FILES
+#include "MPFileDetails.h"
+#include <featmgr.h>
+#include "mpxvideo_debug.h"
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CMPFileDetails::CMPFileDetails
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+EXPORT_C CMPFileDetails::CMPFileDetails()
+ : iSeekable( ETrue ), iDRMExpireConstraint( EMediaPlayerNone ), iDRMhasInfoURL(EFalse)
+{
+ MPX_ENTER_EXIT(_L("CMPFileDetails::CMPFileDetails()"));
+
+ //Initializing to make sure no garbage in the variables
+ iTitle = NULL;
+ iFileName = NULL;
+ iFilePath = NULL;
+ iUrl = NULL;
+ iFormat = NULL;
+ iCopyright = NULL;
+ iArtist = NULL;
+ iAlbum = NULL;
+ iYear = NULL;
+
+ iOriginalArtist = NULL;
+ iAlbumTrack = NULL;
+ iGenre = NULL;
+ iComposer = NULL;
+ iAudioFileWebPage = NULL;
+ iComment = NULL;
+ iProvider = NULL;
+ iDescription = NULL;
+
+ iArtistXpcs = NULL;
+ iTitleXpcs = NULL;
+ iAlbumXpcs = NULL ;
+ iInfoXpcs = NULL;
+
+ iDRMInfoURL = NULL;
+}
+
+// -----------------------------------------------------------------------------
+// CMPFileDetails::~CMPFileDetails
+// Destructor
+// -----------------------------------------------------------------------------
+//
+EXPORT_C CMPFileDetails::~CMPFileDetails()
+{
+ MPX_ENTER_EXIT(_L("CMPFileDetails::~CMPFileDetails()"));
+
+ delete iTitle;
+ delete iFileName;
+ delete iFilePath;
+ delete iUrl;
+ delete iFormat;
+ delete iCopyright;
+ delete iArtist;
+ delete iAlbum;
+ delete iYear;
+
+ // ID3v2
+ delete iOriginalArtist;
+ delete iAlbumTrack;
+ delete iGenre;
+ delete iComposer;
+ delete iAudioFileWebPage;
+ delete iComment;
+ delete iProvider;
+ delete iDescription;
+
+ // For X-pcs meta data
+ delete iArtistXpcs;
+ delete iTitleXpcs;
+ delete iAlbumXpcs;
+ delete iInfoXpcs;
+
+ //DRM
+ if (iDRMInfoURL && iDRMhasInfoURL)
+ delete iDRMInfoURL; //DRM2
+
+ if (iDetailsFileHandle.SubSessionHandle())
+ iDetailsFileHandle.Close();
+}
+
+// End of File