|
1 /* |
|
2 * Copyright (c) 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: Implementation of the class CPbkxRclProtocolAccountImpl. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "emailtrace.h" |
|
20 #include "cpbkxrclprotocolaccountimpl.h" |
|
21 |
|
22 // ======== MEMBER FUNCTIONS ======== |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // CPbkxRclProtocolAccountImpl::NewL |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 CPbkxRclProtocolAccountImpl* CPbkxRclProtocolAccountImpl::NewL( |
|
29 TPbkxRemoteContactLookupProtocolAccountId aId, |
|
30 const TDesC& aName ) |
|
31 { |
|
32 FUNC_LOG; |
|
33 CPbkxRclProtocolAccountImpl* account = CPbkxRclProtocolAccountImpl::NewLC( aId, aName ); |
|
34 CleanupStack::Pop( account ); |
|
35 return account; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // CPbkxRclProtocolAccountImpl::NewLC |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 CPbkxRclProtocolAccountImpl* CPbkxRclProtocolAccountImpl::NewLC( |
|
43 TPbkxRemoteContactLookupProtocolAccountId aId, |
|
44 const TDesC& aName ) |
|
45 { |
|
46 FUNC_LOG; |
|
47 CPbkxRclProtocolAccountImpl* account = new ( ELeave ) CPbkxRclProtocolAccountImpl( aId ); |
|
48 CleanupStack::PushL( account ); |
|
49 account->ConstructL( aName ); |
|
50 return account; |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CPbkxRclProtocolAccountImpl::CPbkxRclProtocolAccountImpl |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 CPbkxRclProtocolAccountImpl::CPbkxRclProtocolAccountImpl( |
|
58 TPbkxRemoteContactLookupProtocolAccountId aId ) : iId( aId ) |
|
59 { |
|
60 FUNC_LOG; |
|
61 } |
|
62 |
|
63 // --------------------------------------------------------------------------- |
|
64 // CPbkxRclProtocolAccountImpl::~CPbkxRclProtocolAccountImpl |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 CPbkxRclProtocolAccountImpl::~CPbkxRclProtocolAccountImpl() |
|
68 { |
|
69 FUNC_LOG; |
|
70 iName.Close(); |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------------------------- |
|
74 // CPbkxRclProtocolAccountImpl::ConstructL |
|
75 // --------------------------------------------------------------------------- |
|
76 // |
|
77 void CPbkxRclProtocolAccountImpl::ConstructL( const TDesC& aName ) |
|
78 { |
|
79 FUNC_LOG; |
|
80 iName.CreateL( aName ); |
|
81 } |
|
82 |
|
83 // --------------------------------------------------------------------------- |
|
84 // CPbkxRclProtocolAccountImpl::Id |
|
85 // --------------------------------------------------------------------------- |
|
86 // |
|
87 TPbkxRemoteContactLookupProtocolAccountId CPbkxRclProtocolAccountImpl::Id() const |
|
88 { |
|
89 FUNC_LOG; |
|
90 return iId; |
|
91 } |
|
92 |
|
93 // --------------------------------------------------------------------------- |
|
94 // CPbkxRclProtocolAccountImpl::Name |
|
95 // --------------------------------------------------------------------------- |
|
96 // |
|
97 const TDesC& CPbkxRclProtocolAccountImpl::Name() const |
|
98 { |
|
99 FUNC_LOG; |
|
100 return iName; |
|
101 } |
|
102 |