mobilemessaging/mmsui/viewerinc/UniMmsViewerAppUi.h
changeset 2 0bf1d54f37d9
parent 0 72b543305e3a
child 13 a9c7e5670d17
--- a/mobilemessaging/mmsui/viewerinc/UniMmsViewerAppUi.h	Thu Jan 07 12:45:05 2010 +0200
+++ b/mobilemessaging/mmsui/viewerinc/UniMmsViewerAppUi.h	Mon Jan 18 20:16:40 2010 +0200
@@ -39,6 +39,7 @@
 #include <uniobject.h>
 #include <unidrminfo.h>                 // CUniDrmInfo
 #include <AknNaviDecoratorObserver.h>
+#include <aknlongtapdetector.h> // for long tap
 
 #include "MmsViewer.hrh"                // enumerations
 #include "MmsViewerOperation.h"
@@ -88,6 +89,7 @@
 class CAknVolumeControl;
 class CAknInputBlock;
 class CAknToolbar;
+class CAknStylusPopUpMenu;
 
 // CLASS DECLARATION
 
@@ -109,7 +111,8 @@
     public MAknToolbarObserver,             //toolbar
 #endif
     public MCoeControlObserver,              // of CAknVolumeControl
-    public MUniObjectObserver
+    public MUniObjectObserver,
+    public MAknLongTapDetectorCallBack
     {
     public:  // Constructors and destructor
         
@@ -567,6 +570,13 @@
         * This function handles the situation.
         */
         void HandleImageNoRightsInLaunch( );
+        // From MAknLongTapDetectorCallBack
+        /**
+         * @see MAknLongTapDetectorCallBack
+         */
+        void HandleLongTapEventL(
+            const TPoint& aPenEventLocation, 
+            const TPoint& aPenEventScreenLocation );
 
 
     private: // Functions from base classes
@@ -1116,6 +1126,16 @@
         TInt                        iMaxForwardSlideCount;
         CAknTitlePane*              iTitlePane; 
         CGulIcon*                   iAppIcon;
+        // Own: For long tap detecting
+        CAknLongTapDetector* iLongTapDetector;
+
+        // For long tap handling
+        TBool iTapConsumed;     
+      /** 
+      * Contact image selection stylus popup menu 
+      * Own. 
+      */  
+        CAknStylusPopUpMenu* iEmbeddedObjectStylusPopup;
     };
 
 #endif      //  MMSVIEWERAPPUI_H