calendarui/views/inc/calendaycontainer.h
branchRCL_3
changeset 48 bf573002ff72
parent 36 9c5b1510919f
child 67 1539a383d7b6
equal deleted inserted replaced
36:9c5b1510919f 48:bf573002ff72
    21 #define CALENDAYCONTAINER_H
    21 #define CALENDAYCONTAINER_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <eiklbo.h>
    24 #include <eiklbo.h>
    25 #include <caleninstanceid.h>            // TCalenInstanceId
    25 #include <caleninstanceid.h>            // TCalenInstanceId
    26 
    26 #include <gestureobserver.h>
    27 
    27 
    28 #include "calencontainer.h"
    28 #include "calencontainer.h"
    29 #include "CalendarVariant.hrh"
    29 #include "CalendarVariant.hrh"
    30 
    30 
    31 // CONSTANTS
    31 // CONSTANTS
    37 class CCalenDayListBoxView;
    37 class CCalenDayListBoxView;
    38 class CCalenDayView;
    38 class CCalenDayView;
    39 class CCalInstance;
    39 class CCalInstance;
    40 class CAknsFrameBackgroundControlContext;
    40 class CAknsFrameBackgroundControlContext;
    41 class TCalenInstanceId;
    41 class TCalenInstanceId;
       
    42 
       
    43 namespace GestureHelper
       
    44     {
       
    45     class CGestureHelper;
       
    46     }
       
    47 
    42 //  CLASS DEFINITIONS
    48 //  CLASS DEFINITIONS
    43 /**
    49 /**
    44  * CCalenDayContainer container control class for DayView.
    50  * CCalenDayContainer container control class for DayView.
    45  */
    51  */
    46 NONSHARABLE_CLASS(  CCalenDayContainer ) : public CCalenContainer,
    52 NONSHARABLE_CLASS(  CCalenDayContainer ) : public CCalenContainer,
    47                                                    public MEikListBoxObserver
    53                                                    public MEikListBoxObserver,
       
    54                                                    public GestureHelper::MGestureObserver
    48     {
    55     {
    49 public: // Data
    56 public: // Data
    50 
    57 
    51     NONSHARABLE_STRUCT( SItemInfo )
    58     NONSHARABLE_STRUCT( SItemInfo )
    52         {
    59         {
   175     /**
   182     /**
   176      * Handles long tap events
   183      * Handles long tap events
   177      */
   184      */
   178     void HandleLongTapEventL( const TPoint& aPenEventLocation, 
   185     void HandleLongTapEventL( const TPoint& aPenEventLocation, 
   179                               const TPoint& aPenEventScreenLocation );
   186                               const TPoint& aPenEventScreenLocation );
   180 
   187     
       
   188     /**From MGestureObserver
       
   189      * Handle the gesture event
       
   190      * @param aEvent event describing the gesture 
       
   191      */
       
   192     virtual void HandleGestureL( const GestureHelper::MGestureEvent& aEvent );
       
   193     
   181     /**
   194     /**
   182      * Check whether entry exists or not
   195      * Check whether entry exists or not
   183      */
   196      */
   184     TBool IsValidEntryL();
   197     TBool IsValidEntryL();
   185 private:    // New function
   198 private:    // New function
   384     TBool iDateWasNull;
   397     TBool iDateWasNull;
   385 // View specific data references
   398 // View specific data references
   386     TTime& iDate;                   // Current day
   399     TTime& iDate;                   // Current day
   387     TInt& iHighlightedRowNumber;
   400     TInt& iHighlightedRowNumber;
   388     TInt& iFirstEntryOnScreenIndex;
   401     TInt& iFirstEntryOnScreenIndex;
       
   402     
       
   403     /**
       
   404      * Gesture helper provides functionality to convert a stream of pointer 
       
   405      * events into a logical gesture.
       
   406      * Own.
       
   407      */
       
   408     GestureHelper::CGestureHelper* iGestureHelper;
       
   409     TBool iGestureHandled;
   389     };
   410     };
   390 
   411 
   391 #endif // CALENDAYCONTAINER_H
   412 #endif // CALENDAYCONTAINER_H
   392 
   413 
   393 // End of File
   414 // End of File