phonebookui/phonebookservices/inc/cntserviceassigncontactcardview.h
changeset 24 0ba2181d7c28
child 27 de1630741fbe
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
       
     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 #ifndef CNTSERVICEASSIGNCONTACTCARDVIEW_H
       
    19 #define CNTSERVICEASSIGNCONTACTCARDVIEW_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <qmobilityglobal.h>
       
    23 
       
    24 #include "cntcontactcardview.h"
       
    25 #include "cntviewparameters.h"
       
    26 
       
    27 class CntServiceHandler;
       
    28 
       
    29 QTM_BEGIN_NAMESPACE
       
    30 class QContactDetail;
       
    31 QTM_END_NAMESPACE
       
    32 
       
    33 QTM_USE_NAMESPACE
       
    34 
       
    35 class CntServiceAssignContactCardView : public CntContactCardView
       
    36 {
       
    37     Q_OBJECT
       
    38 
       
    39 public slots:
       
    40 
       
    41     void aboutToCloseView();
       
    42     void addActionsToToolBar();
       
    43     void addToContacts();
       
    44     void saveNew();
       
    45     void updateExisting();
       
    46 
       
    47 public:
       
    48     CntServiceAssignContactCardView(CntServiceHandler *aServiceHandler, CntViewManager *viewManager, QGraphicsItem *parent = 0);
       
    49     ~CntServiceAssignContactCardView();
       
    50 
       
    51     CntViewParameters::ViewId viewId() const { return CntViewParameters::serviceAssignContactCardView; }
       
    52     void activateView(const CntViewParameters &viewParameters);
       
    53     
       
    54 private:
       
    55     CntServiceHandler *mServiceHandler;
       
    56     QContactDetail     mDetail;
       
    57    
       
    58 };
       
    59 
       
    60 #endif // CNTSERVICEASSIGNCONTACTCARDVIEW_H
       
    61 
       
    62 // EOF