80 void actionExecuted( CntActionLauncher* aAction ); |
76 void actionExecuted( CntActionLauncher* aAction ); |
81 void handleDeleteContact( HbAction* aAction ); |
77 void handleDeleteContact( HbAction* aAction ); |
82 void importSim(); |
78 void importSim(); |
83 |
79 |
84 void handleContactAddition(const QList<QContactLocalId> & aAddedList); |
80 void handleContactAddition(const QList<QContactLocalId> & aAddedList); |
85 void handleContactChanged(const QList<QContactLocalId> & aChangedList); |
|
86 void handleContactRemoval(const QList<QContactLocalId> & aRemovedList); |
81 void handleContactRemoval(const QList<QContactLocalId> & aRemovedList); |
87 void handleSelfContactIdChange(const QContactLocalId & aOldId, const QContactLocalId & aNewId); |
82 void handleSelfContactIdChange(const QContactLocalId & aOldId, const QContactLocalId & aNewId); |
88 |
83 |
89 public: |
84 public: |
90 bool isFinderVisible(); |
85 bool isFinderVisible(); |
91 void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ); |
86 void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ); |
92 void deactivate(); |
87 void deactivate(); |
93 |
88 |
94 private: |
89 private: |
95 void disableDeleteAction(); |
90 void disableDeleteAction(); |
|
91 void focusLineEdit(); |
|
92 void setFocusedContact(); |
|
93 void setScrollPosition(); |
96 |
94 |
97 public: |
95 public: |
98 CntNamesView *q_ptr; |
96 CntNamesView *q_ptr; |
99 |
97 |
100 public: // lazy initializations |
98 public: // lazy initializations |
101 HbListView *list(); |
99 HbListView *list(); |
102 HbTextItem *emptyLabel(); |
|
103 HbGroupBox *groupBox(); |
|
104 HbSearchPanel *search(); |
|
105 QGraphicsLinearLayout *layout(); |
|
106 HbDocumentLoader *document(); |
100 HbDocumentLoader *document(); |
107 |
101 |
108 private: |
102 private: |
109 CntExtensionManager& mExtensionManager; |
103 CntExtensionManager& mExtensionManager; |
110 CntAbstractViewManager* mViewManager; |
104 CntAbstractViewManager* mViewManager; |
111 CntListModel* mListModel; |
105 CntListModel* mListModel; |
112 HbView* mView; |
106 HbView* mView; |
113 HbListView* mListView; |
107 HbListView* mListView; |
114 HbTextItem* mEmptyList; |
108 HbLabel* mEmptyList; |
115 HbGroupBox* mBanner; |
109 HbGroupBox* mBanner; |
116 HbSearchPanel* mSearchPanel; |
110 HbSearchPanel* mSearchPanel; |
117 HbDocumentLoader* mLoader; |
111 HbDocumentLoader* mLoader; |
118 QGraphicsLinearLayout* mLayout; |
|
119 HbStaticVkbHost* mVirtualKeyboard; |
112 HbStaticVkbHost* mVirtualKeyboard; |
120 HbAction* mSoftkey; |
113 HbAction* mSoftkey; |
|
114 HbAction* mNamesAction; |
121 CntActionMenuBuilder* mMenuBuilder; |
115 CntActionMenuBuilder* mMenuBuilder; |
122 HbAction* mImportSim; |
116 HbAction* mImportSim; |
123 HbAction* mNewContact; |
117 HbAction* mNewContact; |
124 QContactLocalId mHandledContactId; |
118 QContactLocalId mHandledContactId; |
125 HbAction* mMultipleDeleter; |
119 HbAction* mMultipleDeleter; |
126 CntFetchContacts* mFetchView; |
120 CntFetchContacts* mFetchView; |
127 bool mIsDefault; |
121 bool mIsDefault; |
128 int mId; |
122 int mId; |
129 QActionGroup* mActionGroup; |
123 QActionGroup* mActionGroup; |
|
124 QContactLocalId mFocusedContact; |
130 }; |
125 }; |
131 |
126 |
132 #endif /* CNTABSTRACTLISTVIEW_H_ */ |
127 #endif /* CNTABSTRACTLISTVIEW_H_ */ |