calendarui/views/inc/calendummyviewcontainer.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Missed alarm container class declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CALENDUMMYVIEWCONTAINER_H
       
    20 #define CALENDUMMYVIEWCONTAINER_H
       
    21 
       
    22 #include <coecntrl.h>
       
    23 
       
    24 #include "calencontainer.h"
       
    25 #include "calendummyview.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CCalenAppUi;
       
    29 class CAknDoubleGraphicStyleListBox;
       
    30 class CAknIconArray;
       
    31 
       
    32 /**
       
    33  * Class declaration for Missed alarms container
       
    34  */
       
    35 NONSHARABLE_CLASS(CCalenDummyViewContainer) : public CCalenContainer
       
    36     {
       
    37     public:
       
    38         
       
    39    	    /**
       
    40          * Two-phased constructor.
       
    41          * @param aRect of this container.
       
    42          * @param aView CCalenDummyView* that owns this class.
       
    43          * @return CCalenDummyViewContainer*
       
    44          */
       
    45         CCalenDummyViewContainer( CCalenNativeView* aView,
       
    46                               MCalenServices& aServices);
       
    47 
       
    48         /**
       
    49          * Destructor.
       
    50          */
       
    51         virtual ~CCalenDummyViewContainer();
       
    52 
       
    53     private: // Functions from base classes
       
    54         /**
       
    55          * From CCoeControl, child control was resized.
       
    56          */
       
    57         void SizeChanged();
       
    58 
       
    59         /**
       
    60          * From CCoeControl, return child control count.
       
    61          * @return Control count
       
    62          */
       
    63         TInt CountComponentControls() const;
       
    64 
       
    65         /**
       
    66          * From CCoeControl, return child control pointer.
       
    67          * @param aIndex Child control index
       
    68          * @return Child control pointer.
       
    69          */
       
    70         CCoeControl* ComponentControl(TInt aIndex) const;
       
    71 
       
    72         /**
       
    73          * From CCoeControl, process key event.
       
    74          * @param aKeyEvent The key event.
       
    75          * @param aType EEventKey | EEventKeyUp | EEventKeyDown.
       
    76          * @return EKeyWasNotConsumed : Key event was not consumed.
       
    77          */
       
    78         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
       
    79                                     TEventCode aType);
       
    80 
       
    81         /**
       
    82          * From CCoeControl, process pointer event.
       
    83          */
       
    84         void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    85 
       
    86         /**
       
    87          * From CCoeControl
       
    88          */  
       
    89         void Draw(const TRect& /*aRect*/) const;
       
    90 
       
    91         /**
       
    92          * Pass skin information if needed
       
    93          */
       
    94         TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
       
    95 
       
    96         /**
       
    97          * From CCoeControl, Get help context.
       
    98          * @param aContext Help context
       
    99          */
       
   100         void GetHelpContext(TCoeHelpContext& aContext) const;
       
   101     
       
   102         /**
       
   103          * From CCoeControl Handles a resource relative event
       
   104          */
       
   105         void HandleResourceChange(TInt aType);  
       
   106         
       
   107         /**
       
   108 	     * From CCalenContainer.
       
   109 	     * This methods is called after calendar settings have changed.
       
   110 	     * Implementation for month view without week numbers.
       
   111 	     */
       
   112 	    void UpdateSizeL();                              
       
   113         
       
   114     private:    // From CCalenContainer
       
   115 
       
   116         /**
       
   117          * From CCalenContainer Third phase constructor.
       
   118          * This function was called CCalenView::ConstructL().
       
   119          */
       
   120         void ConstructImplL();
       
   121         
       
   122         /**
       
   123          * From CCalenContainer.
       
   124          * This methods is called after calendar settings have changed.
       
   125          */
       
   126         void UpdateSize();
       
   127      	
       
   128         /**
       
   129          * Create icon index
       
   130          */
       
   131         void CreateIconIndicesL( RArray<MCalenServices::TCalenIcons>& aIndexArray );
       
   132         
       
   133         /**
       
   134          * This method is called after pointer event in Navi
       
   135          * decoration object.
       
   136          * @param aDirection right or left
       
   137          */
       
   138         void HandleNaviDecoratorEventL(TInt aEventID);
       
   139         
       
   140         /**
       
   141          * Handle long tap events
       
   142          */
       
   143         void HandleLongTapEventL( const TPoint& aPenEventLocation, 
       
   144                                   const TPoint& aPenEventScreenLocation );
       
   145     private:
       
   146         
       
   147     	CCalenDummyView* idummyView;
       
   148     	CAknsBasicBackgroundControlContext* iBgContext; // for skins support
       
   149     	CAknDoubleGraphicStyleListBox* iListBox;
       
   150     	CDesCArray* iListBoxItemArray;
       
   151     };
       
   152 
       
   153 #endif // CALENDUMMYVIEWCONTAINER_H
       
   154 
       
   155 // End of File