equal
deleted
inserted
replaced
|
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: An attribute class for contact speed dialing. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "CVPbkSpeedDialAttribute.h" |
|
20 |
|
21 CVPbkSpeedDialAttribute::CVPbkSpeedDialAttribute() : |
|
22 iIndex(KSpeedDialIndexNotDefined) |
|
23 { |
|
24 } |
|
25 |
|
26 EXPORT_C CVPbkSpeedDialAttribute* CVPbkSpeedDialAttribute::NewL(TInt aIndex) |
|
27 { |
|
28 CVPbkSpeedDialAttribute* self = new(ELeave) CVPbkSpeedDialAttribute(); |
|
29 self->SetIndex(aIndex); |
|
30 return self; |
|
31 } |
|
32 |
|
33 EXPORT_C CVPbkSpeedDialAttribute* CVPbkSpeedDialAttribute::NewL() |
|
34 { |
|
35 CVPbkSpeedDialAttribute* self = new(ELeave) CVPbkSpeedDialAttribute(); |
|
36 return self; |
|
37 } |
|
38 |
|
39 CVPbkSpeedDialAttribute::~CVPbkSpeedDialAttribute() |
|
40 { |
|
41 } |
|
42 |
|
43 TUid CVPbkSpeedDialAttribute::AttributeType() const |
|
44 { |
|
45 return CVPbkSpeedDialAttribute::Uid(); |
|
46 } |
|
47 |
|
48 MVPbkContactAttribute* CVPbkSpeedDialAttribute::CloneLC() const |
|
49 { |
|
50 CVPbkSpeedDialAttribute* clone = new(ELeave) CVPbkSpeedDialAttribute; |
|
51 CleanupStack::PushL(clone); |
|
52 |
|
53 clone->SetIndex(Index()); |
|
54 |
|
55 return clone; |
|
56 } |
|
57 |
|
58 EXPORT_C void CVPbkSpeedDialAttribute::SetIndex(TInt aIndex) |
|
59 { |
|
60 iIndex = aIndex; |
|
61 } |
|
62 |
|
63 EXPORT_C TInt CVPbkSpeedDialAttribute::Index() const |
|
64 { |
|
65 return iIndex; |
|
66 } |
|
67 |
|
68 // End of File |