profilesservices/FileList/Src/CFLDEntryReference.cpp
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/profilesservices/FileList/Src/CFLDEntryReference.cpp	Wed Sep 01 12:20:44 2010 +0100
@@ -0,0 +1,109 @@
+/*
+* 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 "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: 
+*     A simple container class that is used to reference a single
+*     entry in the file list.
+*
+*
+*/
+
+
+// CLASS HEADER
+#include    "CFLDEntryReference.h"
+
+// INTERNAL INCLUDES
+
+// EXTERNAL INCLUDES
+
+// ================= MEMBER FUNCTIONS =======================
+
+// Constructor
+CFLDEntryReference::CFLDEntryReference()
+    {
+    }
+    
+// Destructor
+CFLDEntryReference::~CFLDEntryReference()
+    {
+    delete iFormattedPresentation;
+    delete iPathAndMediaFileName;
+    }
+
+// -----------------------------------------------------------------------------
+// CFLDEntryReference::FormattedPresentation()
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//    
+HBufC& CFLDEntryReference::FormattedPresentation() const
+	{
+	return *iFormattedPresentation;
+	}
+
+// -----------------------------------------------------------------------------
+// CFLDEntryReference::PathAndMediaFileName()
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+HBufC& CFLDEntryReference::PathAndMediaFileName() const
+	{
+	return *iPathAndMediaFileName;
+	}
+
+// -----------------------------------------------------------------------------
+// CFLDEntryReference::MediaType()
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//	
+TInt32 CFLDEntryReference::MediaType() const
+	{
+	return iMediaType;
+	}	
+
+// -----------------------------------------------------------------------------
+// CFLDEntryReference::SetPathAndMediaFileName()
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+void CFLDEntryReference::SetPathAndMediaFileName( HBufC* aPathAndMediaFileName ) // CSI: 60 # ownership is transferred
+	{
+	delete iPathAndMediaFileName;
+	iPathAndMediaFileName = NULL;
+	
+	iPathAndMediaFileName = aPathAndMediaFileName;
+	}
+
+// -----------------------------------------------------------------------------
+// CFLDFileListContainer::SetAutomatedType()
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
+void CFLDEntryReference::SetFormattedPresentation( HBufC* aFormattedPresentation ) // CSI: 60 # ownership is transferred
+	{
+	delete iFormattedPresentation;
+	iFormattedPresentation = NULL;
+	
+	iFormattedPresentation = aFormattedPresentation;
+	}
+
+// -----------------------------------------------------------------------------
+// CFLDEntryReference::SetMediaType()
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//	
+void CFLDEntryReference::SetMediaType( TInt32 aMediaType )
+	{
+	iMediaType = aMediaType;
+	}
+
+//  End of File