24 #include <QObject> |
24 #include <QObject> |
25 #include <hbmainwindow.h> |
25 #include <hbmainwindow.h> |
26 |
26 |
27 class CntBaseView; |
27 class CntBaseView; |
28 class CntServiceHandler; |
28 class CntServiceHandler; |
|
29 class CntAbstractServiceProvider; |
29 |
30 |
30 class CntServiceViewManager : public CntDefaultViewManager |
31 class CntServiceViewManager : public CntDefaultViewManager |
31 { |
32 { |
32 Q_OBJECT |
33 Q_OBJECT |
33 |
34 |
34 public: |
35 public: |
35 CntServiceViewManager(HbMainWindow *mainWindow, CntServiceHandler *aHandler); |
36 CntServiceViewManager(HbMainWindow *mainWindow, CntAbstractServiceProvider& aProvider ); |
36 ~CntServiceViewManager(); |
37 ~CntServiceViewManager(); |
37 |
|
38 public slots: |
|
39 void handleFetch(const QString &title, const QString &action, const QString &filter); |
|
40 void launchFetch(const QString &title, const QString &action, const QString &filter, const QString &mode = KCntMultiSelectionMode); |
|
41 void launchEditor(QContact contact); |
|
42 void launchContactSelection(QContactDetail detail); |
|
43 void launchContactCard(QContact contact); |
|
44 void launchAssignContactCard(QContact contact, QContactDetail detail); |
|
45 |
|
46 protected slots: |
38 protected slots: |
47 virtual void closeApp(); |
39 virtual void closeApp(); |
48 |
40 signals: |
49 private: |
41 void applicationClosed(); |
50 CntServiceHandler *mServiceHandler; |
|
51 }; |
42 }; |
52 |
43 |
53 #endif // CNTSERVICEVIEWMANAGER_H |
44 #endif // CNTSERVICEVIEWMANAGER_H |