17 |
17 |
18 #ifndef CNTFAVORITESMEMBERVIEW_H |
18 #ifndef CNTFAVORITESMEMBERVIEW_H |
19 #define CNTFAVORITESMEMBERVIEW_H |
19 #define CNTFAVORITESMEMBERVIEW_H |
20 |
20 |
21 #include <hbdocumentloader.h> |
21 #include <hbdocumentloader.h> |
|
22 #include <cntabstractview.h> |
|
23 #include <QSet> |
22 |
24 |
23 #include <cntabstractview.h> |
25 class CntListModel; |
24 |
|
25 class MobCntModel; |
|
26 class CntAbstractViewManager; |
26 class CntAbstractViewManager; |
27 class HbView; |
27 class HbView; |
28 class HbAction; |
28 class HbAction; |
29 class HbListView; |
29 class HbListView; |
30 class HbAbstractViewItem; |
30 class HbAbstractViewItem; |
31 class QModelIndex; |
31 class QModelIndex; |
|
32 class CntFetchContacts; |
32 |
33 |
33 QTM_BEGIN_NAMESPACE |
34 QTM_BEGIN_NAMESPACE |
34 class QContact; |
35 class QContact; |
35 QTM_END_NAMESPACE |
36 QTM_END_NAMESPACE |
36 |
37 |
55 #else |
56 #else |
56 private slots: |
57 private slots: |
57 #endif |
58 #endif |
58 |
59 |
59 void manageFavorites(); |
60 void manageFavorites(); |
60 void handleManageFavorites(HbAction *action); |
61 void handleManageFavorites(); |
61 |
62 |
62 void onLongPressed (HbAbstractViewItem *item, const QPointF &coords); |
63 void onLongPressed (HbAbstractViewItem *item, const QPointF &coords); |
63 void handleMenu(HbAction* action); |
64 void handleMenu(HbAction* action); |
64 |
65 |
65 void openContact(const QModelIndex &index); |
66 void openContact(const QModelIndex &index); |
66 void editContact(const QModelIndex &index); |
67 void editContact(const QModelIndex &index); |
67 void removeFromFavorites(const QModelIndex &index); |
68 void removeFromFavorites(const QModelIndex &index); |
68 void sendToHs(const QModelIndex &index); |
69 void sendToHs(const QModelIndex &index); |
69 void showPreviousView(); |
70 void showPreviousView(); |
|
71 |
|
72 private: |
|
73 QContactManager* getContactManager(); |
70 |
74 |
71 #ifdef PBK_UNIT_TEST |
75 #ifdef PBK_UNIT_TEST |
72 public: |
76 public: |
73 #else |
77 #else |
74 private: |
78 private: |
75 #endif |
79 #endif |
76 |
80 |
77 QContact* mContact; |
81 QContact* mContact; |
78 HbAction* mManageFavoritesAction; |
82 HbAction* mManageFavoritesAction; |
79 MobCntModel* mModel; // own |
83 CntListModel* mModel; // own |
80 HbListView* mFavoriteListView; |
84 HbListView* mFavoriteListView; |
81 CntAbstractViewManager* mViewManager; |
85 CntAbstractViewManager* mViewManager; |
82 HbDocumentLoader mDocumentLoader; |
86 HbDocumentLoader mDocumentLoader; |
83 HbView* mView; // own |
87 HbView* mView; // own |
84 |
88 CntFetchContacts* mFetchView; |
|
89 QSet<QContactLocalId> mOriginalGroupMembers; |
85 HbAction* mSoftkey; // owned by view |
90 HbAction* mSoftkey; // owned by view |
86 }; |
91 }; |
87 |
92 |
88 #endif /* CNTFAVORITESMEMBERVIEW_H */ |
93 #endif /* CNTFAVORITESMEMBERVIEW_H */ |