|
1 /* |
|
2 * Copyright (c) 2007-2009 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: Inline implementations CContextSnapshotItem. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CCONTEXTSNAPSHOTITEM_INL |
|
20 #define CCONTEXTSNAPSHOTITEM_INL |
|
21 |
|
22 inline CContextSnapshotItem::CContextSnapshotItem() |
|
23 : iObserver( NULL ), iHD( NULL ), iHDArray( NULL ) |
|
24 { |
|
25 } |
|
26 |
|
27 inline CContextSnapshotItem::~CContextSnapshotItem() // notice that objects are not destroyed |
|
28 { |
|
29 } |
|
30 |
|
31 inline CContextSnapshotItem* CContextSnapshotItem::NewL( |
|
32 MContextSnapshotObserver* aObserver, CHarvesterData* aHD ) |
|
33 { |
|
34 CContextSnapshotItem* self = new (ELeave) CContextSnapshotItem(); |
|
35 self->SetObserver( aObserver ); |
|
36 self->SetItem( aHD ); |
|
37 return self; |
|
38 } |
|
39 |
|
40 inline CContextSnapshotItem* CContextSnapshotItem::NewL( |
|
41 MContextSnapshotObserver* aObserver, RPointerArray<CHarvesterData>* aHDArray ) |
|
42 { |
|
43 CContextSnapshotItem* self = new (ELeave) CContextSnapshotItem(); |
|
44 self->SetObserver( aObserver ); |
|
45 self->SetItemArray( aHDArray ); |
|
46 return self; |
|
47 } |
|
48 |
|
49 inline void CContextSnapshotItem::SetObserver( MContextSnapshotObserver* aObserver ) |
|
50 { |
|
51 iObserver = aObserver; |
|
52 } |
|
53 |
|
54 inline MContextSnapshotObserver* CContextSnapshotItem::GetObserver() |
|
55 { |
|
56 return iObserver; |
|
57 } |
|
58 |
|
59 inline void CContextSnapshotItem::SetItem( CHarvesterData* aHD ) |
|
60 { |
|
61 iHD = aHD; |
|
62 iHDArray = NULL; |
|
63 } |
|
64 |
|
65 inline CHarvesterData* CContextSnapshotItem::GetItem() |
|
66 { |
|
67 return iHD; |
|
68 } |
|
69 |
|
70 inline void CContextSnapshotItem::SetItemArray( RPointerArray<CHarvesterData>* aHDArray ) |
|
71 { |
|
72 iHDArray = aHDArray; |
|
73 iHD = NULL; |
|
74 } |
|
75 |
|
76 inline RPointerArray<CHarvesterData>* CContextSnapshotItem::GetItemArray() |
|
77 { |
|
78 return iHDArray; |
|
79 } |
|
80 |
|
81 #endif // CCONTEXTSNAPSHOTITEM_INL |