19 #define CNTSERVICECONTACTSELECTIONVIEW_H |
19 #define CNTSERVICECONTACTSELECTIONVIEW_H |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 |
22 |
23 #include "cntbaseselectionview.h" |
23 #include "cntbaseselectionview.h" |
|
24 #include "cntabstractserviceprovider.h" |
24 |
25 |
25 class QModelIndex; |
26 class QModelIndex; |
26 class CntServiceHandler; |
27 class CntServiceHandler; |
27 |
28 |
28 class CntServiceContactSelectionView : public CntBaseSelectionView |
29 class CntServiceContactSelectionView : public CntBaseSelectionView |
29 { |
30 { |
30 Q_OBJECT |
31 Q_OBJECT |
31 |
32 |
32 public: |
33 public: |
33 CntServiceContactSelectionView(CntServiceHandler *aServiceHandler); |
34 CntServiceContactSelectionView( CntAbstractServiceProvider& aServiceProvider ); |
34 ~CntServiceContactSelectionView(); |
35 ~CntServiceContactSelectionView(); |
35 |
36 |
36 int viewId() const { return serviceContactSelectionView; } |
37 int viewId() const { return serviceContactSelectionView; } |
37 |
38 |
38 public slots: |
39 public slots: |
39 void onListViewActivated(const QModelIndex &aIndex); |
40 void onListViewActivated(const QModelIndex &aIndex); |
40 void aboutToOpenView(CntAbstractViewManager* aMgr, const CntViewParameters viewParameters); |
41 void aboutToOpenView(CntAbstractViewManager* aMgr, const CntViewParameters viewParameters); |
41 void aboutToCloseView(); |
42 void aboutToCloseView(); |
42 |
43 |
43 private: |
44 private: |
44 CntServiceHandler *mServiceHandler; |
45 CntAbstractServiceProvider& mProvider; |
45 QContactDetail mDetail; |
46 QContactDetail mDetail; |
46 }; |
47 }; |
47 |
48 |
48 #endif /* CNTSERVICECONTACTSELECTIONVIEW_H */ |
49 #endif /* CNTSERVICECONTACTSELECTIONVIEW_H */ |