equal
deleted
inserted
replaced
|
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 "cntservicecontactcardview.h" |
|
19 #include "cntabstractserviceprovider.h" |
|
20 #include "cntdebug.h" |
|
21 #include <cntservicescontact.h> |
|
22 |
|
23 /*! |
|
24 Constructor, initialize member variables. |
|
25 \a viewManager is the parent that creates this view. \a parent is a pointer to parent QGraphicsItem (by default this is 0) |
|
26 */ |
|
27 CntServiceContactCardView::CntServiceContactCardView( CntAbstractServiceProvider& aServiceProvider ) : |
|
28 CntContactCardView(), |
|
29 mProvider( aServiceProvider ) |
|
30 { |
|
31 CNT_ENTRY |
|
32 connect(this, SIGNAL(backPressed(int)), this, SLOT(closeContactCard(int))); |
|
33 CNT_EXIT |
|
34 } |
|
35 |
|
36 /*! |
|
37 Destructor |
|
38 */ |
|
39 CntServiceContactCardView::~CntServiceContactCardView() |
|
40 { |
|
41 CNT_ENTRY |
|
42 CNT_EXIT |
|
43 } |
|
44 |
|
45 /*! |
|
46 Close the view (quits the service as well) |
|
47 */ |
|
48 void CntServiceContactCardView::closeContactCard(int value) |
|
49 { |
|
50 CNT_ENTRY |
|
51 CNT_LOG_ARGS(value); |
|
52 QVariant variant; |
|
53 variant.setValue(value); |
|
54 mProvider.CompleteServiceAndCloseApp(variant); |
|
55 CNT_EXIT |
|
56 } |
|
57 |
|
58 // end of file |