|
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 "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: |
|
15 * A simple container class that is used to reference a single |
|
16 * entry in the file list. |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 // CLASS HEADER |
|
23 #include "CFLDEntryReference.h" |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 |
|
27 // EXTERNAL INCLUDES |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 // Constructor |
|
32 CFLDEntryReference::CFLDEntryReference() |
|
33 { |
|
34 } |
|
35 |
|
36 // Destructor |
|
37 CFLDEntryReference::~CFLDEntryReference() |
|
38 { |
|
39 delete iFormattedPresentation; |
|
40 delete iPathAndMediaFileName; |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CFLDEntryReference::FormattedPresentation() |
|
45 // (other items were commented in a header). |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 HBufC& CFLDEntryReference::FormattedPresentation() const |
|
49 { |
|
50 return *iFormattedPresentation; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CFLDEntryReference::PathAndMediaFileName() |
|
55 // (other items were commented in a header). |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 HBufC& CFLDEntryReference::PathAndMediaFileName() const |
|
59 { |
|
60 return *iPathAndMediaFileName; |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CFLDEntryReference::MediaType() |
|
65 // (other items were commented in a header). |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 TInt32 CFLDEntryReference::MediaType() const |
|
69 { |
|
70 return iMediaType; |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CFLDEntryReference::SetPathAndMediaFileName() |
|
75 // (other items were commented in a header). |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 void CFLDEntryReference::SetPathAndMediaFileName( HBufC* aPathAndMediaFileName ) // CSI: 60 # ownership is transferred |
|
79 { |
|
80 delete iPathAndMediaFileName; |
|
81 iPathAndMediaFileName = NULL; |
|
82 |
|
83 iPathAndMediaFileName = aPathAndMediaFileName; |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CFLDFileListContainer::SetAutomatedType() |
|
88 // (other items were commented in a header). |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 void CFLDEntryReference::SetFormattedPresentation( HBufC* aFormattedPresentation ) // CSI: 60 # ownership is transferred |
|
92 { |
|
93 delete iFormattedPresentation; |
|
94 iFormattedPresentation = NULL; |
|
95 |
|
96 iFormattedPresentation = aFormattedPresentation; |
|
97 } |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // CFLDEntryReference::SetMediaType() |
|
101 // (other items were commented in a header). |
|
102 // ----------------------------------------------------------------------------- |
|
103 // |
|
104 void CFLDEntryReference::SetMediaType( TInt32 aMediaType ) |
|
105 { |
|
106 iMediaType = aMediaType; |
|
107 } |
|
108 |
|
109 // End of File |