|
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: Presents publisher info map |
|
15 * |
|
16 */ |
|
17 |
|
18 // User includes |
|
19 #include "publisherinfo.h" |
|
20 #include "publishermap.h" |
|
21 |
|
22 namespace cpswrapper |
|
23 { |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 // ----------------------------------------------------------------------- |
|
27 // CPublisherMap::CPublisherMap() |
|
28 // ----------------------------------------------------------------------- |
|
29 // |
|
30 CPublisherMap::CPublisherMap() |
|
31 { |
|
32 } |
|
33 |
|
34 // ----------------------------------------------------------------------- |
|
35 // CPublisherMap::ConstructL() |
|
36 // ----------------------------------------------------------------------- |
|
37 // |
|
38 void CPublisherMap::ConstructL() |
|
39 { |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------- |
|
43 // CPublisherMap::NewL() |
|
44 // ----------------------------------------------------------------------- |
|
45 // |
|
46 EXPORT_C CPublisherMap* CPublisherMap::NewL() |
|
47 { |
|
48 CPublisherMap* self = CPublisherMap::NewLC(); |
|
49 CleanupStack::Pop( self ); |
|
50 return self; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------- |
|
54 // CPublisherMap::NewLC() |
|
55 // ----------------------------------------------------------------------- |
|
56 // |
|
57 EXPORT_C CPublisherMap* CPublisherMap::NewLC() |
|
58 { |
|
59 CPublisherMap* self = new ( ELeave ) CPublisherMap; |
|
60 CleanupStack::PushL( self ); |
|
61 self->ConstructL(); |
|
62 return self; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------- |
|
66 // CPublisherMap::~CPublisherMap() |
|
67 // ----------------------------------------------------------------------- |
|
68 // |
|
69 EXPORT_C CPublisherMap::~CPublisherMap() |
|
70 { |
|
71 iPublisherInfo.ResetAndDestroy(); |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------- |
|
75 // CPublisherMap::AddPublisherInfoL() |
|
76 // ----------------------------------------------------------------------- |
|
77 // |
|
78 EXPORT_C void CPublisherMap::AddPublisherInfoL( |
|
79 CPublisherInfo* aPublisherInfo ) |
|
80 { |
|
81 User::LeaveIfError( |
|
82 iPublisherInfo.InsertInAddressOrder( aPublisherInfo )); |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------- |
|
86 // CPublisherMap::PublisherInfo() |
|
87 // ----------------------------------------------------------------------- |
|
88 // |
|
89 EXPORT_C RPointerArray<CPublisherInfo>& CPublisherMap::PublisherInfo() const |
|
90 { |
|
91 return iPublisherInfo; |
|
92 } |
|
93 } |
|
94 |
|
95 // End of file |