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 "cntservicesubeditview.h" |
|
19 #include "cntservicehandler.h" |
|
20 |
|
21 CntServiceSubEditView::CntServiceSubEditView(CntServiceHandler *aServiceHandler) : CntEditView(), |
|
22 mServiceHandler(aServiceHandler) |
|
23 { |
|
24 |
|
25 } |
|
26 |
|
27 CntServiceSubEditView::~CntServiceSubEditView() |
|
28 { |
|
29 |
|
30 } |
|
31 |
|
32 ///*! |
|
33 //Saves the contact |
|
34 //*/ |
|
35 //void CntServiceSubEditView::aboutToCloseView() |
|
36 //{ |
|
37 // // save contact if there is one |
|
38 // if (contact()) |
|
39 // { |
|
40 // contactManager()->saveContact(contact()); |
|
41 // } |
|
42 // |
|
43 // CntViewParameters viewParameters; |
|
44 // QVariant var; |
|
45 // var.setValue(*contact()); |
|
46 // viewParameters.insert(ESelectedContact, var); |
|
47 // viewManager()->back(viewParameters); |
|
48 //} |
|
49 // |
|
50 ///*! |
|
51 //Cancel all changes made and return to comm launcher view |
|
52 //*/ |
|
53 //void CntServiceSubEditView::discardAllChanges() |
|
54 //{ |
|
55 // QContact oldContact = contactManager()->contact(contact()->localId()); |
|
56 // |
|
57 // CntViewParameters viewParameters; |
|
58 // QVariant var; |
|
59 // var.setValue(oldContact); |
|
60 // viewParameters.insert(ESelectedContact, var); |
|
61 // viewManager()->back(viewParameters); |
|
62 //} |
|
63 // |
|
64 ///* |
|
65 //Handle signals emitted from CntCommands, only used for delete command for now. |
|
66 //*/ |
|
67 //int CntServiceSubEditView::handleExecutedCommand(QString aCommand, const QContact &aContact) |
|
68 //{ |
|
69 // Q_UNUSED(aContact); |
|
70 // int result = -1; |
|
71 // if (aCommand == "delete") |
|
72 // { |
|
73 // connect(mServiceHandler, SIGNAL(returnValueDelivered()), qApp, SLOT(quit())); |
|
74 // mServiceHandler->completeEdit(result); |
|
75 // result = 0; |
|
76 // } |
|
77 // return result; |
|
78 //} |
|
79 |
|
80 // EOF |
|