sipplugins/sippsipsettingsui/inc/sipsettingscontainer.h
branchRCL_3
changeset 4 dd3853b8dc3f
parent 0 307788aac0a8
child 14 532ef74cdfa0
equal deleted inserted replaced
0:307788aac0a8 4:dd3853b8dc3f
    26 
    26 
    27 
    27 
    28 #include <aknlongtapdetector.h>
    28 #include <aknlongtapdetector.h>
    29 #include <aknstyluspopupmenu.h>
    29 #include <aknstyluspopupmenu.h>
    30 #include <eikmobs.h>
    30 #include <eikmobs.h>
    31 #include "gssiptimer.h"
       
    32 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    33 
    32 
    34 class CSIPSettingsModel;
    33 class CSIPSettingsModel;
    35 class CSIPSettingsPlugin;
    34 class CSIPSettingsPlugin;
    36 class UT_CSIPSettingsContainer;
    35 class UT_CSIPSettingsContainer;
    41 *  CSIPSettingsContainer container class
    40 *  CSIPSettingsContainer container class
    42 *  @since 3.1
    41 *  @since 3.1
    43 *  container class for SIP Profiles view
    42 *  container class for SIP Profiles view
    44 */
    43 */
    45 class CSIPSettingsContainer : public CCoeControl,
    44 class CSIPSettingsContainer : public CCoeControl,
    46                               public MAknLongTapDetectorCallBack, 
       
    47                               public MEikMenuObserver
    45                               public MEikMenuObserver
    48     {
    46     {
    49     public:  // Constructors and destructor
    47     public:  // Constructors and destructor
    50         
    48         
    51         /**
    49         /**
    55 
    53 
    56          /**
    54          /**
    57          * Process command
    55          * Process command
    58          */
    56          */
    59          void ProcessCommandL( TInt aCommandId );
    57          void ProcessCommandL( TInt aCommandId );
    60          
       
    61          /**
       
    62          * Handle long type event
       
    63          */ 
       
    64          virtual void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation );
       
    65          
       
    66          /**
       
    67          * Handle pointer event
       
    68          */
       
    69          virtual void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
    70          
       
    71         /**
       
    72         * Judge whether it is a pointer event
       
    73         */
       
    74          TBool IfPointerEvent();
       
    75          
       
    76         /**
       
    77         * Get PenEventLocation
       
    78         */
       
    79          TPoint PenEventLocation();
       
    80          
    58          
    81         /**
    59         /**
    82         * C++ default constructor.        
    60         * C++ default constructor.        
    83         */
    61         */
    84         CSIPSettingsContainer( CSIPSettingsPlugin* aObserver );                
    62         CSIPSettingsContainer( CSIPSettingsPlugin* aObserver );                
   184         
   162         
   185     public: // Data
   163     public: // Data
   186         // The list box for showing the profiles and the status of each profile
   164         // The list box for showing the profiles and the status of each profile
   187         CListBox* iListBox;
   165         CListBox* iListBox;
   188         
   166         
   189         //Get long press status
       
   190         TBool LongPressStatus();
       
   191         
       
   192         // set long press
       
   193         void SetLongPress( TBool aLongPress = ETrue );
       
   194         
       
   195         CAknLongTapDetector* LongTapDetector();
       
   196         
       
   197         TPointerEvent PointerEvent();
       
   198 
   167 
   199     protected: // Data
   168     protected: // Data
   200         TBool iLongPress;
   169         TBool iLongPress;
   201         CSIPSettingsModel* iModel;//not needed?
   170         CSIPSettingsModel* iModel;//not needed?
   202         CSIPSettingsPlugin* iObs;
   171         CSIPSettingsPlugin* iObs;
   204         * Middle softkey label observer.
   173         * Middle softkey label observer.
   205         * Own.
   174         * Own.
   206         */
   175         */
   207         MGsFWMSKObserver* iMSKObserver;  
   176         MGsFWMSKObserver* iMSKObserver;  
   208         
   177         
   209         // Long tap detector object for deciding whether showing stylus pop up menu.
       
   210         CAknLongTapDetector* iLongTapDetector;    
       
   211         
       
   212         // stylus popup menu object for showing popup menu
       
   213         CAknStylusPopUpMenu* iStylusPopupMenu;   
       
   214         
       
   215         //Timer 
       
   216         CGSSIPTimer* iTimer;
       
   217         
       
   218         //Get pen event location
       
   219         TPoint iPoint;
       
   220 
       
   221         TPointerEvent iPointerEvent;
       
   222     };
   178     };
   223 
   179 
   224 #endif      // SIP_SETTINGS_CONTAINER_H
   180 #endif      // SIP_SETTINGS_CONTAINER_H
   225             
   181             
   226 // End of File
   182 // End of File