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: Definition of the class CPbkxRclProtocolAccountImpl. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBKXRCLPROTOCOLACCOUNTIMPL_H |
|
20 #define CPBKXRCLPROTOCOLACCOUNTIMPL_H |
|
21 |
|
22 #include "cpbkxremotecontactlookupprotocolaccount.h" |
|
23 |
|
24 /** |
|
25 * Class for holding information of protocol account. |
|
26 * |
|
27 * @lib pbkxrclengine.lib |
|
28 * @since 3.1 |
|
29 */ |
|
30 class CPbkxRclProtocolAccountImpl : public CPbkxRemoteContactLookupProtocolAccount |
|
31 { |
|
32 public: // constructors and destructor |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 * |
|
37 * @param aId Protocol account id. |
|
38 * @param aName Protocol name. |
|
39 * @return Created object. |
|
40 */ |
|
41 static CPbkxRclProtocolAccountImpl* NewL( |
|
42 TPbkxRemoteContactLookupProtocolAccountId aId, |
|
43 const TDesC& aName ); |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * |
|
48 * Leaves pointer to the created object on cleanupstack. |
|
49 * |
|
50 * @param aId Protocol account id. |
|
51 * @param aName Name of the protocol. |
|
52 * @return Created object. |
|
53 */ |
|
54 static CPbkxRclProtocolAccountImpl* NewLC( |
|
55 TPbkxRemoteContactLookupProtocolAccountId aId, |
|
56 const TDesC& aName ); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~CPbkxRclProtocolAccountImpl(); |
|
62 |
|
63 public: // methods from CPbkxRemoteContactLookupProtocolAccount |
|
64 |
|
65 /** |
|
66 * Returns account identifier. |
|
67 * |
|
68 * @return account identifier |
|
69 */ |
|
70 virtual TPbkxRemoteContactLookupProtocolAccountId Id() const; |
|
71 |
|
72 /** |
|
73 * Returns value of the account identifier. |
|
74 * |
|
75 * @return account name |
|
76 */ |
|
77 virtual const TDesC& Name() const; |
|
78 |
|
79 private: // constructors |
|
80 |
|
81 /** |
|
82 * Constructor. |
|
83 * |
|
84 * @param aId Protocol account id. |
|
85 */ |
|
86 CPbkxRclProtocolAccountImpl( |
|
87 TPbkxRemoteContactLookupProtocolAccountId aId ); |
|
88 |
|
89 /** |
|
90 * Second-phase constructor. |
|
91 * |
|
92 * @param aName Name of the account. |
|
93 */ |
|
94 void ConstructL( const TDesC& aName ); |
|
95 |
|
96 private: // data |
|
97 |
|
98 // Protocol account id. |
|
99 TPbkxRemoteContactLookupProtocolAccountId iId; |
|
100 |
|
101 // Name of the protocol. |
|
102 RBuf iName; |
|
103 |
|
104 }; |
|
105 |
|
106 #endif |
|