diff -r e686773b3f54 -r 04ab22b956c2 phonebookui/Phonebook2/ccapplication/ccamycardplugin/inc/ccappmycardcontainer.h --- a/phonebookui/Phonebook2/ccapplication/ccamycardplugin/inc/ccappmycardcontainer.h Tue Feb 02 10:12:17 2010 +0200 +++ b/phonebookui/Phonebook2/ccapplication/ccamycardplugin/inc/ccappmycardcontainer.h Fri Feb 19 22:40:27 2010 +0200 @@ -24,7 +24,8 @@ #include #include "ccappmycard.h" #include "ccappmycardimageloader.h" -#include +#include +#include #include "ccappmycardheadercontrol.h" #include "ccappstatuscontrol.h" @@ -55,7 +56,8 @@ public MEikListBoxObserver, public MPbk2ContactUiControl, public MCCAStatusControlObserver, - public MMyCardHeaderControlObserver + public MMyCardHeaderControlObserver, + public MAknLongTapDetectorCallBack { public: // constructor and destructor @@ -141,6 +143,23 @@ */ void MyCardHeaderControlClickL( TPoint aPos ); + /** + * Default callback function for CAknLongTapDetector member object. + * Base class implementation does nothing + * + * @param aPenEventLocation Long tap event location relative to parent control. + * @param aPenEventScreenLocation Long tap event location relative to screen. + */ + void HandleLongTapEventL( const TPoint& aPenEventLocation, + const TPoint& aPenEventScreenLocation ); + + /** + * From CoeControl + * Overridden to receive pointer events + */ + void HandlePointerEventL( const TPointerEvent& aPointerEvent ); + + public: // New /** @@ -206,7 +225,7 @@ MPbk2Command* aCommand ); void SetTextL( const TDesC& aText ); - TAny* ContactUiControlExtension(TUid aExtensionUid ); + TAny* ContactUiControlExtension(TUid aExtensionUid ); void ProcessCommandL( TInt aCommandId ) const; /* @@ -312,6 +331,23 @@ CCCaFactoryExtensionNotifier* iFactoryExtensionNotifier; TInt iNameOrder; + + /** + * iLongTapDetector + * Own. + */ + CAknLongTapDetector* iLongTapDetector; + + /** + * Contact detail selection stylus popup menu + * Own. + */ + CAknStylusPopUpMenu* iDetailsPopup; + + /* + * Flag for checking if Stylys opened + */ + TBool iLongTapHandled; }; #endif // CCAPPMYCARDCONTAINER_H