30 class HbListView; |
30 class HbListView; |
31 class CntCollectionListModel; |
31 class CntCollectionListModel; |
32 class QModelIndex; |
32 class QModelIndex; |
33 class QActionGroup; |
33 class QActionGroup; |
34 class HbAbstractViewItem; |
34 class HbAbstractViewItem; |
35 class CntExtensionManager; |
|
36 |
35 |
37 QTM_USE_NAMESPACE |
36 QTM_USE_NAMESPACE |
38 |
37 |
39 class CntCollectionView : public QObject, public CntAbstractView, public CntExtensionGroupCallback |
38 class CntCollectionView : public QObject, public CntAbstractView, public CntExtensionGroupCallback |
40 { |
39 { |
41 Q_OBJECT |
40 Q_OBJECT |
42 friend class TestCntCollectionView; |
41 friend class TestCntCollectionView; |
43 |
42 |
44 public: |
43 public: |
45 CntCollectionView(CntExtensionManager &extensionManager); |
44 CntCollectionView(); |
46 ~CntCollectionView(); |
45 ~CntCollectionView(); |
47 |
46 |
48 public: // From CntAbstractView |
47 public: // From CntAbstractView |
49 void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ); |
48 void activate( const CntViewParameters aArgs ); |
50 void deactivate(); |
49 void deactivate(); |
51 bool isDefault() const { return false; } |
50 bool isDefault() const { return false; } |
52 HbView* view() const { return mView; } |
51 HbView* view() const { return mView; } |
53 int viewId() const { return collectionView; } |
52 int viewId() const { return collectionView; } |
|
53 inline void setEngine( CntAbstractEngine& aEngine ){mEngine = &aEngine;} |
54 |
54 |
55 public: // From CntExtensionGroupCallback |
55 public: // From CntExtensionGroupCallback |
56 void openView(CntViewParameters& viewParams); |
56 void openView(CntViewParameters& viewParams); |
57 |
57 |
58 private slots: |
58 private slots: |
81 QContactManager* getContactManager(); |
81 QContactManager* getContactManager(); |
82 void saveNewGroup(QContact* aContact); |
82 void saveNewGroup(QContact* aContact); |
83 |
83 |
84 |
84 |
85 private: |
85 private: |
86 CntExtensionManager& mExtensionManager; |
86 CntExtensionManager* mExtensionManager; |
87 HbView* mView; // own |
87 HbView* mView; // own |
88 HbAction* mSoftkey; // owned by view |
88 HbAction* mSoftkey; // owned by view |
89 CntAbstractViewManager* mViewManager; |
89 CntAbstractViewManager* mViewManager; |
90 HbDocumentLoader mDocumentLoader; |
90 HbDocumentLoader mDocumentLoader; |
91 CntCollectionListModel* mModel; // own |
91 CntCollectionListModel* mModel; // own |
98 |
98 |
99 QContact* mHandledContact; // own, needed for asynchronous popups |
99 QContact* mHandledContact; // own, needed for asynchronous popups |
100 QSet<QContactLocalId> mSelectedContactsSet; |
100 QSet<QContactLocalId> mSelectedContactsSet; |
101 |
101 |
102 QActionGroup* mActionGroup; |
102 QActionGroup* mActionGroup; |
|
103 CntAbstractEngine* mEngine; |
103 }; |
104 }; |
104 |
105 |
105 #endif // CNTCOLLECTIONVIEW_H |
106 #endif // CNTCOLLECTIONVIEW_H |
106 |
107 |
107 // EOF |
108 // EOF |