|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Top Contact management |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include <CVPbkTopContactManager.h> |
|
21 #include "CVPbkTopContactManagerImpl.h" |
|
22 |
|
23 EXPORT_C CVPbkTopContactManager* CVPbkTopContactManager::NewL( |
|
24 CVPbkContactManager& aContactManager ) |
|
25 { |
|
26 CVPbkTopContactManager* self = |
|
27 new (ELeave) CVPbkTopContactManager(); |
|
28 CleanupStack::PushL( self ); |
|
29 self->iImpl = CVPbkTopContactManagerImpl::NewL( aContactManager ); |
|
30 CleanupStack::Pop( self ); |
|
31 return self; |
|
32 } |
|
33 |
|
34 EXPORT_C CVPbkTopContactManager* CVPbkTopContactManager::NewL() |
|
35 { |
|
36 CVPbkTopContactManager* self = |
|
37 new (ELeave) CVPbkTopContactManager(); |
|
38 CleanupStack::PushL( self ); |
|
39 self->iImpl = CVPbkTopContactManagerImpl::NewL(); |
|
40 CleanupStack::Pop( self ); |
|
41 return self; |
|
42 } |
|
43 |
|
44 |
|
45 EXPORT_C CVPbkTopContactManager* CVPbkTopContactManager::NewL( |
|
46 CVPbkContactManager& aContactManager, |
|
47 MVPbkContactViewBase& aTopView) |
|
48 { |
|
49 CVPbkTopContactManager* self = |
|
50 new (ELeave) CVPbkTopContactManager(); |
|
51 CleanupStack::PushL( self ); |
|
52 self->iImpl = CVPbkTopContactManagerImpl::NewL( aContactManager, aTopView ); |
|
53 CleanupStack::Pop( self ); |
|
54 return self; |
|
55 } |
|
56 |
|
57 EXPORT_C CVPbkTopContactManager::~CVPbkTopContactManager() |
|
58 { |
|
59 delete iImpl; |
|
60 } |
|
61 |
|
62 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::GetTopContactsViewL( |
|
63 MVPbkOperationResultObserver<MVPbkContactViewBase*>& aObserver, |
|
64 MVPbkOperationErrorObserver& aErrorObserver ) |
|
65 { |
|
66 return iImpl->GetTopContactsViewL( aObserver, aErrorObserver ); |
|
67 } |
|
68 |
|
69 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::GetNonTopContactsViewL( |
|
70 MVPbkOperationResultObserver<MVPbkContactViewBase*>& aObserver, |
|
71 MVPbkOperationErrorObserver& aErrorObserver ) |
|
72 { |
|
73 return iImpl->GetNonTopContactsViewL( aObserver, aErrorObserver ); |
|
74 } |
|
75 |
|
76 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::GetTopContactLinksL( |
|
77 MVPbkOperationResultObserver<MVPbkContactLinkArray*>& aObserver, |
|
78 MVPbkOperationErrorObserver& aErrorObserver ) |
|
79 { |
|
80 return iImpl->GetTopContactLinksL( aObserver, aErrorObserver ); |
|
81 } |
|
82 |
|
83 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::GetNonTopContactLinksL( |
|
84 MVPbkOperationResultObserver<MVPbkContactLinkArray*>& aObserver, |
|
85 MVPbkOperationErrorObserver& aErrorObserver ) |
|
86 { |
|
87 return iImpl->GetNonTopContactLinksL( aObserver, aErrorObserver ); |
|
88 } |
|
89 |
|
90 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::AddToTopL( |
|
91 const MVPbkContactLink& aContactLink, |
|
92 MVPbkOperationObserver& aObserver, |
|
93 MVPbkOperationErrorObserver& aErrorObserver ) |
|
94 { |
|
95 return iImpl->AddToTopL( aContactLink, aObserver, aErrorObserver ); |
|
96 } |
|
97 |
|
98 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::AddToTopL( |
|
99 const MVPbkContactLinkArray& aContactLinks, |
|
100 MVPbkOperationObserver& aObserver, |
|
101 MVPbkOperationErrorObserver& aErrorObserver ) |
|
102 { |
|
103 return iImpl->AddToTopL( aContactLinks, aObserver, aErrorObserver ); |
|
104 } |
|
105 |
|
106 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::AddToTopL( |
|
107 const TDesC8& aPackedLinks, |
|
108 MVPbkOperationObserver& aObserver, |
|
109 MVPbkOperationErrorObserver& aErrorObserver ) |
|
110 { |
|
111 return iImpl->AddToTopL( aPackedLinks, aObserver, aErrorObserver ); |
|
112 } |
|
113 |
|
114 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::RemoveFromTopL( |
|
115 const MVPbkContactLink& aContactLink, |
|
116 MVPbkOperationObserver& aObserver, |
|
117 MVPbkOperationErrorObserver& aErrorObserver ) |
|
118 { |
|
119 return iImpl->RemoveFromTopL( aContactLink, aObserver, aErrorObserver ); |
|
120 } |
|
121 |
|
122 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::RemoveFromTopL( |
|
123 const MVPbkContactLinkArray& aContactLinkArray, |
|
124 MVPbkOperationObserver& aObserver, |
|
125 MVPbkOperationErrorObserver& aErrorObserver ) |
|
126 { |
|
127 return iImpl->RemoveFromTopL( aContactLinkArray, aObserver, aErrorObserver ); |
|
128 } |
|
129 |
|
130 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::RemoveFromTopL( |
|
131 const TDesC8& aPackedLinks, |
|
132 MVPbkOperationObserver& aObserver, |
|
133 MVPbkOperationErrorObserver& aErrorObserver ) |
|
134 { |
|
135 return iImpl->RemoveFromTopL( aPackedLinks, aObserver, aErrorObserver ); |
|
136 } |
|
137 |
|
138 EXPORT_C MVPbkContactOperationBase* CVPbkTopContactManager::SetTopOrderL( |
|
139 const MVPbkContactLinkArray& aContactLinks, |
|
140 MVPbkOperationObserver& aObserver, |
|
141 MVPbkOperationErrorObserver& aErrorObserver ) |
|
142 { |
|
143 return iImpl->SetTopOrderL( aContactLinks, aObserver, aErrorObserver ); |
|
144 } |
|
145 |
|
146 EXPORT_C TBool CVPbkTopContactManager::IsTopContact( |
|
147 const MVPbkBaseContact& aContact ) |
|
148 { |
|
149 return CVPbkTopContactManagerImpl::IsTopContact( aContact ); |
|
150 } |
|
151 |
|
152 CVPbkTopContactManager::CVPbkTopContactManager() |
|
153 { |
|
154 } |
|
155 |
|
156 // end of file |