|
1 /* |
|
2 * Copyright (c) 2008 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: store item info class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CMSMITEMINFO_H |
|
21 #define __CMSMITEMINFO_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 // Forward declarations |
|
26 |
|
27 // LITERALS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * Stored item class |
|
32 * @lib cmstoremanager.lib |
|
33 * @since S60 v5.1 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CCmSmItemInfo ): public CBase |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 * |
|
41 * @since S60 5.1 |
|
42 * @param aFile, file name |
|
43 * @param aId, media server's id |
|
44 * @return pointer to CCmSmItemInfo class |
|
45 */ |
|
46 static CCmSmItemInfo* NewL( TDesC& aFile, TInt64 aId ); |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 * |
|
51 * since S60 5.1 |
|
52 * @param aFile, file name |
|
53 * @param aId, media server's id |
|
54 * @return pointer to CCmSmItemInfo class |
|
55 */ |
|
56 static CCmSmItemInfo* NewLC( TDesC& aFile, TInt64 aId ); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~CCmSmItemInfo(); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * Performs the second phase construction. |
|
67 * |
|
68 * @since S60 5.1 |
|
69 * @param aFile, file name |
|
70 * @param aId, media server's id |
|
71 * @return None |
|
72 */ |
|
73 void ConstructL( TDesC& aFile, TInt64 aId ); |
|
74 |
|
75 /** |
|
76 * Performs the first phase of two phase construction. |
|
77 */ |
|
78 CCmSmItemInfo( ); |
|
79 |
|
80 public: |
|
81 |
|
82 /** |
|
83 * File name |
|
84 */ |
|
85 HBufC* iFile; // owned |
|
86 /** |
|
87 * Media server identifier |
|
88 */ |
|
89 TInt64 iId; |
|
90 }; |
|
91 |
|
92 #endif // __CMSMITEMINFO_H |
|
93 |