equal
deleted
inserted
replaced
29 #include <qcontact.h> |
29 #include <qcontact.h> |
30 #include <cntlistmodel.h> |
30 #include <cntlistmodel.h> |
31 |
31 |
32 class HbView; |
32 class HbView; |
33 class HbListView; |
33 class HbListView; |
34 class HbGroupBox; |
|
35 class HbLabel; |
34 class HbLabel; |
36 class HbDocumentLoader; |
35 class HbDocumentLoader; |
37 class HbSearchPanel; |
36 class HbSearchPanel; |
38 class HbShrinkingVkbHost; |
37 class HbShrinkingVkbHost; |
39 class CntExtensionManager; |
38 class CntExtensionManager; |
44 { |
43 { |
45 Q_OBJECT |
44 Q_OBJECT |
46 Q_DECLARE_PUBLIC(CntNamesView) |
45 Q_DECLARE_PUBLIC(CntNamesView) |
47 |
46 |
48 public: |
47 public: |
49 CntNamesViewPrivate(CntExtensionManager &extensionManager); |
48 CntNamesViewPrivate(); |
50 virtual ~CntNamesViewPrivate(); |
49 virtual ~CntNamesViewPrivate(); |
51 |
50 |
52 public slots: |
51 public slots: |
53 void showFinder(); |
52 void showFinder(); |
54 void hideFinder(); |
53 void hideFinder(); |
82 private slots: |
81 private slots: |
83 void switchOrientation(); |
82 void switchOrientation(); |
84 |
83 |
85 public: |
84 public: |
86 bool isFinderVisible(); |
85 bool isFinderVisible(); |
87 void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ); |
86 void activate( const CntViewParameters aArgs ); |
88 void deactivate(); |
87 void deactivate(); |
89 |
88 void setEngine( CntAbstractEngine& aEngine ){ mEngine = &aEngine; } |
90 private: |
89 private: |
91 void changeDeleteActionStatus(); |
90 void changeDeleteActionStatus(); |
92 void focusLineEdit(); |
91 void focusLineEdit(); |
93 void setScrollPosition(int focusedContact); |
92 void setScrollPosition(int focusedContact); |
94 |
93 |
98 public: // lazy initializations |
97 public: // lazy initializations |
99 HbListView *list(); |
98 HbListView *list(); |
100 HbDocumentLoader *document(); |
99 HbDocumentLoader *document(); |
101 |
100 |
102 private: |
101 private: |
103 CntExtensionManager& mExtensionManager; |
|
104 CntAbstractViewManager* mViewManager; |
102 CntAbstractViewManager* mViewManager; |
105 CntListModel* mListModel; |
103 CntListModel* mListModel; |
106 HbView* mView; |
104 HbView* mView; |
107 HbListView* mListView; |
105 HbListView* mListView; |
108 HbLabel* mEmptyList; |
106 HbLabel* mEmptyList; |
109 HbGroupBox* mBanner; |
|
110 HbSearchPanel* mSearchPanel; |
107 HbSearchPanel* mSearchPanel; |
111 HbDocumentLoader* mLoader; |
108 HbDocumentLoader* mLoader; |
112 HbShrinkingVkbHost* mVirtualKeyboard; |
109 HbShrinkingVkbHost* mVirtualKeyboard; |
113 HbAction* mSoftkey; |
110 HbAction* mSoftkey; |
114 HbAction* mNamesAction; |
111 HbAction* mNamesAction; |
120 bool mIsDefault; |
117 bool mIsDefault; |
121 int mId; |
118 int mId; |
122 QActionGroup* mActionGroup; |
119 QActionGroup* mActionGroup; |
123 HbMenu* mMenu; |
120 HbMenu* mMenu; |
124 bool mFilterChanged; |
121 bool mFilterChanged; |
|
122 CntAbstractEngine* mEngine; |
125 }; |
123 }; |
126 |
124 |
127 #endif /* CNTABSTRACTLISTVIEW_H_ */ |
125 #endif /* CNTABSTRACTLISTVIEW_H_ */ |