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 #ifndef __CFLDENTRYREFERENCE_H |
|
23 #define __CFLDENTRYREFERENCE_H |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 |
|
27 // EXTERNAL INCLUDES |
|
28 #include <e32base.h> |
|
29 #include <CLFContentListing.hrh> |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * A simple container class that is used to reference a single |
|
35 * entry in the file list. |
|
36 * |
|
37 * @lib filelist.lib |
|
38 * @since 2.1 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CFLDEntryReference ): public CBase |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Constructor |
|
46 * @param aDirectory Pointer to directory |
|
47 */ |
|
48 CFLDEntryReference(); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 virtual ~CFLDEntryReference(); |
|
54 |
|
55 public: // New functions |
|
56 |
|
57 /** |
|
58 * Sets media type |
|
59 * @param aMediaType Media type |
|
60 */ |
|
61 void SetMediaType( TInt32 aMediaType ); |
|
62 |
|
63 /** |
|
64 * Sets path and filename |
|
65 * @param aPathAndMediaFileName Path and filename, ownership transferred |
|
66 */ |
|
67 void SetPathAndMediaFileName( HBufC* aPathAndMediaFileName ); |
|
68 |
|
69 /** |
|
70 * Sets formatted presentation |
|
71 * @param aFormattedPresentation Formatted presentation, ownership |
|
72 * transferred |
|
73 */ |
|
74 void SetFormattedPresentation( HBufC* aFormattedPresentation ); |
|
75 |
|
76 /** |
|
77 * Gets formatted presentation |
|
78 * @return Reference to formatted presentation |
|
79 */ |
|
80 HBufC& FormattedPresentation() const; |
|
81 |
|
82 /** |
|
83 * Gets path and filename |
|
84 * @return Reference to path and filename |
|
85 */ |
|
86 HBufC& PathAndMediaFileName() const; |
|
87 |
|
88 /** |
|
89 * Gets Media type |
|
90 * @return Media type |
|
91 */ |
|
92 TInt32 MediaType() const; |
|
93 |
|
94 private: // Data |
|
95 |
|
96 /// Own: Listbox formatted data |
|
97 /// However, not created by CFLDEntryReference |
|
98 HBufC* iPathAndMediaFileName; |
|
99 |
|
100 /// Own: Listbox formatted data |
|
101 /// However, not created by CFLDEntryReference |
|
102 HBufC* iFormattedPresentation; |
|
103 |
|
104 /// Media type |
|
105 TInt32 iMediaType; |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // __CFLDENTRYREFERENCE_H |
|
110 |
|
111 // End of File |
|