phonebookui/phonebookservices/inc/cntservicecontactfetchview.h
changeset 59 a642906a277a
parent 46 efe85016a067
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
    19 #define CNTSERVICECONTACTFETCHVIEW_H
    19 #define CNTSERVICECONTACTFETCHVIEW_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
    22 
    22 
    23 #include "cntbaseselectionview.h"
    23 #include "cntbaseselectionview.h"
       
    24 #include <cntservicescontact.h>
       
    25 #include "cntabstractserviceprovider.h"
    24 
    26 
    25 class CntServiceHandler;
    27 class CntServicesContact;
    26 
    28 
    27 class CntServiceContactFetchView : public CntBaseSelectionView
    29 class CntServiceContactFetchView : public CntBaseSelectionView
    28 {
    30 {
    29     Q_OBJECT
    31     Q_OBJECT
    30 
    32 
    31 public:
    33 public:
    32     CntServiceContactFetchView( CntServiceHandler *aServiceHandler );
    34     CntServiceContactFetchView( CntAbstractServiceProvider& aServiceProvider );
    33     ~CntServiceContactFetchView();
    35     ~CntServiceContactFetchView();
    34 
    36 
    35     int viewId() const { return serviceContactFetchView; }
    37     int viewId() const { return serviceContactFetchView; }
    36     
    38     
    37 public slots:
    39 public slots:
    38     void aboutToOpenView(CntAbstractViewManager* aMgr, const CntViewParameters viewParameters);
    40     void aboutToOpenView(CntAbstractViewManager* aMgr, const CntViewParameters viewParameters);
    39     void aboutToCloseView();
    41     void closeFetchView();
    40     void cancelFetch();
    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();
    41 
    51 
    42 private:
    52 private:
    43     CntServiceHandler *mServiceHandler;
    53     CntAbstractServiceProvider& mProvider;
       
    54     QString mAction;
       
    55     CntServicesContactList mServiceList;
       
    56     int mIndex;
    44 };
    57 };
    45 
    58 
    46 #endif /* CNTSERVICECONTACTFETCHVIEW_H */
    59 #endif /* CNTSERVICECONTACTFETCHVIEW_H */