|
1 /* |
|
2 * Copyright (c) 2005 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: Watcher list |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "CPEngWatcherList.h" |
|
20 #include "PresenceDebugPrint.h" |
|
21 #include <e32std.h> |
|
22 |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CPEngWatcherList::CPEngWatcherList() |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CPEngWatcherList::CPEngWatcherList( |
|
32 CPEngContactListSettings& aListSetting, |
|
33 MPEngContactListSettingsManager& aCntLstSettingsManager ) |
|
34 : CPEngContactListModBase( aListSetting, |
|
35 aCntLstSettingsManager ) |
|
36 { |
|
37 PENG_DP( D_PENG_LIT( "CPEngWatcherList::CPEngWatcherList" ) ); |
|
38 } |
|
39 |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CPEngWatcherList::ConstructL() |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 void CPEngWatcherList::ConstructL( MPEngStorageManager& aStorageManager ) |
|
46 { |
|
47 CPEngContactListModBase::ConstructL( aStorageManager ); |
|
48 } |
|
49 |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CPEngWatcherList::NewLC() |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 CPEngWatcherList* CPEngWatcherList::NewLC( |
|
56 CPEngContactListSettings& aListSetting, |
|
57 MPEngStorageManager& aStorageManager, |
|
58 MPEngContactListSettingsManager& aCntLstSettingsManager ) |
|
59 { |
|
60 CPEngWatcherList* self = new ( ELeave ) CPEngWatcherList( |
|
61 aListSetting, |
|
62 aCntLstSettingsManager ); |
|
63 |
|
64 CleanupClosePushL( *self ); |
|
65 self->ConstructL( aStorageManager ); |
|
66 |
|
67 return self; |
|
68 } |
|
69 |
|
70 // Destructor |
|
71 CPEngWatcherList::~CPEngWatcherList() |
|
72 { |
|
73 PENG_DP( D_PENG_LIT( "CPEngWatcherList::~CPEngWatcherList" ) ); |
|
74 } |
|
75 |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // CPEngWatcherList::AddContactL() |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 TInt CPEngWatcherList::AddContactL( const TDesC& /* aContact */, |
|
82 const TDesC& /* aNickName = KNullDesC */ ) |
|
83 { |
|
84 PENG_DP( D_PENG_LIT( "CPEngWatcherList::AddIdL()" ) ); |
|
85 User::Leave( KErrNotSupported ); |
|
86 return KErrNone; |
|
87 } |
|
88 |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // CPEngWatcherList::RemoveContactL() |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 void CPEngWatcherList::RemoveContactL( const TDesC& /* aContact */ ) |
|
95 { |
|
96 User::Leave( KErrNotSupported ); |
|
97 } |
|
98 |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // CPEngWatcherList::RemoveAllContactsL() |
|
102 // ----------------------------------------------------------------------------- |
|
103 // |
|
104 void CPEngWatcherList::RemoveAllContactsL() |
|
105 { |
|
106 User::Leave( KErrNotSupported ); |
|
107 } |
|
108 |
|
109 |
|
110 // ----------------------------------------------------------------------------- |
|
111 // CPEngWatcherList::RollBackAllChangesL() |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 TInt CPEngWatcherList::RollBackAllChangesL( void ) |
|
115 { |
|
116 User::Leave( KErrNotSupported ); |
|
117 return KErrNotSupported; |
|
118 } |
|
119 |
|
120 |
|
121 // ----------------------------------------------------------------------------- |
|
122 // CPEngWatcherList::StorageId() |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 const TDesC& CPEngWatcherList::StorageId() const |
|
126 { |
|
127 return KPEngWatcherList; |
|
128 } |
|
129 |
|
130 // End of File |
|
131 |