phonebookui/phonebookservices/inc/cntservicecontactfetchview.h
branchRCL_3
changeset 62 5b6f26637ad3
equal deleted inserted replaced
58:d4f567ce2e7c 62: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 CNTSERVICECONTACTFETCHVIEW_H
       
    19 #define CNTSERVICECONTACTFETCHVIEW_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include "cntbaseselectionview.h"
       
    24 #include <cntservicescontact.h>
       
    25 #include "cntabstractserviceprovider.h"
       
    26 
       
    27 class CntServicesContact;
       
    28 
       
    29 class CntServiceContactFetchView : public CntBaseSelectionView
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34     CntServiceContactFetchView( CntAbstractServiceProvider& aServiceProvider );
       
    35     ~CntServiceContactFetchView();
       
    36 
       
    37     int viewId() const { return serviceContactFetchView; }
       
    38     
       
    39 public slots:
       
    40     void aboutToOpenView(CntAbstractViewManager* aMgr, const CntViewParameters viewParameters);
       
    41     void closeFetchView();
       
    42     void cancelFetch();
       
    43     void popupContactAction(QContact& aContact,QContactDetail contactDetail, QString aAction);
       
    44     void actionPopupCancelSlot();
       
    45     
       
    46 private:
       
    47     void serviceCallMessageAction(QContact& aContact, QString aAction);
       
    48     void serviceEmailAction(QContact& aContact);
       
    49     void serviceAllAction(QContact& aContact);
       
    50     void showPreviousView();
       
    51 
       
    52 private:
       
    53     CntAbstractServiceProvider& mProvider;
       
    54     QString mAction;
       
    55     CntServicesContactList mServiceList;
       
    56     int mIndex;
       
    57 };
       
    58 
       
    59 #endif /* CNTSERVICECONTACTFETCHVIEW_H */