phonebookui/phonebookservices/inc/cntserviceassigncontactcardview.h
branchRCL_3
changeset 19 5b6f26637ad3
equal deleted inserted replaced
18:d4f567ce2e7c 19:5b6f26637ad3
       
     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 
       
    26 class CntServiceHandler;
       
    27 class CntAbstractViewManager;
       
    28 class CntAbstractServiceProvider;
       
    29 
       
    30 QTM_BEGIN_NAMESPACE
       
    31 class QContact;
       
    32 class QContactDetail;
       
    33 QTM_END_NAMESPACE
       
    34 
       
    35 QTM_USE_NAMESPACE
       
    36 
       
    37 class CntServiceAssignContactCardView : public CntContactCardView
       
    38 {
       
    39     Q_OBJECT
       
    40 
       
    41 public slots:
       
    42     void doCloseView(int value);
       
    43     void addToContacts();
       
    44     void saveNew();
       
    45     void updateExisting();
       
    46     
       
    47     void doViewActivated(CntAbstractViewManager* aMgr, const CntViewParameters aArgs);
       
    48 
       
    49 public:
       
    50     CntServiceAssignContactCardView( CntAbstractServiceProvider& aServiceController );
       
    51     ~CntServiceAssignContactCardView();
       
    52 
       
    53     int viewId() const { return serviceAssignContactCardView; }
       
    54 
       
    55 private:
       
    56     CntAbstractServiceProvider& mProvider;
       
    57     CntAbstractViewManager  *mViewManager;
       
    58     QContact                mContact;
       
    59     QContactDetail          mDetail;
       
    60    
       
    61 };
       
    62 
       
    63 #endif // CNTSERVICEASSIGNCONTACTCARDVIEW_H
       
    64 
       
    65 // EOF