75 virtual void dialpadOpened(); |
78 virtual void dialpadOpened(); |
76 virtual void dialpadClosed(); |
79 virtual void dialpadClosed(); |
77 virtual void dialpadEditorTextChanged(); |
80 virtual void dialpadEditorTextChanged(); |
78 virtual void updateEmptyListWidgetsVisibility(); |
81 virtual void updateEmptyListWidgetsVisibility(); |
79 virtual void updateWidgetsSizeAndLayout(); |
82 virtual void updateWidgetsSizeAndLayout(); |
|
83 virtual void contactActionCompleted(bool modified); |
80 |
84 |
81 //slots bellow are used in *.docml |
85 //slots bellow are used in *.docml |
82 void showFilterMenu(); |
86 void showFilterMenu(); |
83 void openDialpad(); |
87 void openDialpad(); |
84 void openContactsApp(); |
88 void openContactsApp(); |
85 void notSupported(); |
89 void notSupported(); |
86 void changeFilter(HbAction* action); |
90 void changeFilter(HbAction* action); |
|
91 void addToContacts(); |
|
92 void saveNumberInDialpadToContacts(); |
87 |
93 |
88 //other slots |
94 //other slots |
89 void showListItemMenu(HbAbstractViewItem* item, const QPointF& coords); |
95 void showListItemMenu(HbAbstractViewItem* item, const QPointF& coords); |
90 void initiateCallback(const QModelIndex &listIndex); |
96 void initiateCallback(const QModelIndex &listIndex); |
91 void initiateCall(int callType); |
97 void initiateCall(int callType); |
92 void createMessage(); |
98 void createMessage(); |
93 void saveContact(); |
99 void saveContact(); |
94 void updateEmptyListLabelVisibility(); |
100 void updateEmptyListLabelVisibility(); |
95 void showCallDetails(); |
101 void showCallDetails(); |
|
102 |
96 void deleteEvent(); |
103 void deleteEvent(); |
|
104 virtual void deleteEventOkAnswer(); |
|
105 |
|
106 void videoCallToCurrentNum(); |
|
107 void sendMessageToCurrentNum(); |
97 |
108 |
98 void handleOrientationChanged(); |
109 void handleOrientationChanged(); |
99 |
110 |
100 protected: |
111 protected: |
101 |
112 |
130 */ |
141 */ |
131 virtual void initView(); |
142 virtual void initView(); |
132 |
143 |
133 virtual QAbstractItemModel* model() const; |
144 virtual QAbstractItemModel* model() const; |
134 |
145 |
|
146 virtual LogsAbstractModel* logsModel() const; |
|
147 |
|
148 virtual HbListView* listView() const; |
|
149 |
135 virtual void populateListItemMenu(HbMenu& menu); |
150 virtual void populateListItemMenu(HbMenu& menu); |
136 |
151 |
137 /** |
152 /** |
138 * Updates data specific to the list item, e.g. call/message/contact |
153 * Updates data specific to the list item, e.g. call/message/contact |
139 */ |
154 */ |
141 |
156 |
142 /* |
157 /* |
143 * Update call button state. |
158 * Update call button state. |
144 */ |
159 */ |
145 virtual void updateCallButton(); |
160 virtual void updateCallButton(); |
|
161 |
|
162 /** |
|
163 * Make call if dialpad is opened and contains inputted number. |
|
164 * @return true if call was made |
|
165 */ |
|
166 bool tryCallToDialpadNumber( |
|
167 LogsCall::CallType callType = LogsCall::TypeLogsVoiceCall); |
|
168 bool tryMessageToDialpadNumber(); |
146 |
169 |
147 void activateEmptyListIndicator(QAbstractItemModel* model); |
170 void activateEmptyListIndicator(QAbstractItemModel* model); |
148 void deactivateEmptyListIndicator(QAbstractItemModel* model); |
171 void deactivateEmptyListIndicator(QAbstractItemModel* model); |
149 |
172 |
150 void addViewSwitchingEffects(); |
173 void addViewSwitchingEffects(); |
151 void toggleActionAvailability( HbAction* action, bool available ); |
174 void toggleActionAvailability( HbAction* action, bool available ); |
152 /* |
175 |
153 * |
176 void askConfirmation( QString heading , QString text, QObject* receiver, |
154 */ |
177 const char* okSlot = 0, const char* cancelSlot = 0 ); |
155 bool askConfirmation( QString heading , QString text ); |
178 |
156 |
179 void updateContactSearchAction(); |
|
180 bool isContactSearchEnabled() const; |
|
181 bool isContactSearchPermanentlyDisabled() const; |
|
182 void updateDialpadCallAndMessagingActions(); |
|
183 bool tryMatchesViewTransition(); |
|
184 bool isDialpadInput() const; |
|
185 |
157 protected: |
186 protected: |
158 |
187 |
159 LogsAppViewId mViewId; |
188 LogsAppViewId mViewId; |
160 LogsComponentRepository& mRepository; |
189 LogsComponentRepository& mRepository; |
161 LogsAbstractViewManager& mViewManager; |
190 LogsAbstractViewManager& mViewManager; |