|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "cntcontactcardview.h" |
|
19 #include "cntcontactcardview_p.h" |
|
20 #include <hbview.h> |
|
21 |
|
22 CntContactCardView::CntContactCardView(bool isTemporary) : d_ptr(new CntContactCardViewPrivate(isTemporary)) |
|
23 { |
|
24 connect(d_ptr, SIGNAL(backPressed(int)), this, SIGNAL(backPressed(int))); |
|
25 connect(d_ptr, SIGNAL(viewActivated(CntAbstractViewManager*, const CntViewParameters)), |
|
26 this, SIGNAL(viewActivated(CntAbstractViewManager*, const CntViewParameters))); |
|
27 connect(d_ptr, SIGNAL(addToContacts()), this, SIGNAL(addToContacts())); |
|
28 } |
|
29 |
|
30 /*! |
|
31 Destructor |
|
32 */ |
|
33 CntContactCardView::~CntContactCardView() |
|
34 { |
|
35 Q_D(CntContactCardView); |
|
36 delete d; |
|
37 } |
|
38 |
|
39 void CntContactCardView::activate(const CntViewParameters aArgs) |
|
40 { |
|
41 Q_D(CntContactCardView); |
|
42 d->activate( aArgs ); |
|
43 } |
|
44 |
|
45 void CntContactCardView::deactivate() |
|
46 { |
|
47 Q_D(CntContactCardView); |
|
48 d->deactivate(); |
|
49 } |
|
50 |
|
51 HbView* CntContactCardView::view() const |
|
52 { |
|
53 Q_D(const CntContactCardView); |
|
54 return d->mView; |
|
55 } |
|
56 |
|
57 bool CntContactCardView::isDefault() const |
|
58 { |
|
59 return false; |
|
60 } |
|
61 |
|
62 int CntContactCardView::viewId() const |
|
63 { |
|
64 return contactCardView; |
|
65 } |
|
66 |
|
67 void CntContactCardView::setEngine( CntAbstractEngine& aEngine ) |
|
68 { |
|
69 Q_D( CntContactCardView ); |
|
70 d->mEngine = &aEngine; |
|
71 } |
|
72 |
|
73 // end of file |