--- a/phonebookui/Phonebook2/NamesListExtension/inc/Pbk2NamesListExView.h Thu Jul 15 18:22:55 2010 +0300
+++ b/phonebookui/Phonebook2/NamesListExtension/inc/Pbk2NamesListExView.h Thu Aug 19 09:41:07 2010 +0300
@@ -32,6 +32,7 @@
#include <coemain.h>
#include <Pbk2Commands.hrh>
+#include <aknmarkingmodeobserver.h>
// FORWARD DECLARATIONS
template<class ControlType> class CPbk2ControlContainer;
@@ -70,7 +71,8 @@
public MCoeControlObserver,
public MEikListBoxObserver,
private MCoeForegroundObserver,
- public MPbk2UIExtensionView2
+ public MPbk2UIExtensionView2,
+ public MAknMarkingModeObserver
{
public: // Construction and destruction
@@ -162,6 +164,24 @@
CCoeControl* aControl,
TCoeEvent aEventType );
+ public: // From MAknMarkingModeObserver
+
+ /**
+ * This method is called when marking mode is activated or deactivated.
+ *
+ * @param aActivated @c ETrue if marking mode was activate, @c EFalse
+ * if marking mode was deactivated.
+ */
+ void MarkingModeStatusChanged( TBool aActivated );
+
+ /**
+ * This method is called just before marking mode is closed. Client can
+ * either accept or decline closing.
+ *
+ * @return @c ETrue if marking mode should be closed, otherwise @c EFalse.
+ */
+ TBool ExitMarkingMode() const;
+
private: // Implementation
CPbk2NamesListExView(
CPbk2UIExtensionView& aView,
@@ -262,8 +282,10 @@
CSpbContentProvider& iContentProvider;
// Not own. CCA launcher connection
MCCAConnection*& iCCAConnection;
- /// Own: Context launcher
+ // Own: Context launcher
CPbk2ContextLaunch* iContextLauncher;
+ // Flag to indicate whether Marking mode is active
+ TBool iMarkingModeOn;
};
#endif // CPBK2NAMESLISTEXVIEW_H