|
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 #include "cmsmiteminfo.h" |
|
20 #include "msdebug.h" |
|
21 |
|
22 // --------------------------------------------------------------------------- |
|
23 // CCmSmItemInfo::NewL |
|
24 // --------------------------------------------------------------------------- |
|
25 // |
|
26 CCmSmItemInfo* CCmSmItemInfo::NewL( TDesC& aFile, TInt64 aId ) |
|
27 { |
|
28 LOG(_L("[STORE MNGR]\t CCmSmItemInfo::NewL")); |
|
29 |
|
30 CCmSmItemInfo* self = CCmSmItemInfo::NewLC( aFile, aId ); |
|
31 CleanupStack::Pop( self ); |
|
32 return self; |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // CCmSmItemInfo::NewLC |
|
37 // --------------------------------------------------------------------------- |
|
38 // |
|
39 CCmSmItemInfo* CCmSmItemInfo::NewLC( TDesC& aFile, TInt64 aId ) |
|
40 { |
|
41 LOG(_L("[STORE MNGR]\t CCmSmItemInfo::NewLC")); |
|
42 |
|
43 CCmSmItemInfo* self = new ( ELeave ) CCmSmItemInfo(); |
|
44 CleanupStack::PushL( self ); |
|
45 self->ConstructL( aFile, aId ); |
|
46 return self; |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------------------------- |
|
50 // CCmSmItemInfo::~CCmSmItemInfo |
|
51 // --------------------------------------------------------------------------- |
|
52 // |
|
53 CCmSmItemInfo::~CCmSmItemInfo() |
|
54 { |
|
55 LOG(_L("[STORE MNGR]\t CCmSmItemInfo::~CCmSmItemInfo")); |
|
56 |
|
57 delete iFile; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // CCmSmItemInfo::CCmSmItemInfo |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 CCmSmItemInfo::CCmSmItemInfo() |
|
65 { |
|
66 LOG(_L("[STORE MNGR]\t CCmSmItemInfo::CCmSmItemInfo")); |
|
67 } |
|
68 |
|
69 // --------------------------------------------------------------------------- |
|
70 // CCmSmItemInfo::ConstructL |
|
71 // --------------------------------------------------------------------------- |
|
72 // |
|
73 void CCmSmItemInfo::ConstructL( TDesC& aFile, TInt64 aId ) |
|
74 { |
|
75 LOG(_L("[STORE MNGR]\t CCmSmItemInfo::ConstructL")); |
|
76 |
|
77 iFile = aFile.AllocL(); |
|
78 iId = aId; |
|
79 } |
|
80 |
|
81 // End of file |
|
82 |
|
83 |
|
84 |
|
85 |