clock2/clockui/uilayer/clkdatetimeview/inc/clkdatetimeviewcontainer.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2008 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:   This is the header file for the CClkDateTimeViewContainer class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CLK_DATETIMEVIEW_CONTAINER_H__
       
    19 #define __CLK_DATETIMEVIEW_CONTAINER_H__
       
    20 
       
    21 // System includes
       
    22 #include <coecntrl.h>
       
    23 #include <aknlists.h>
       
    24 
       
    25 // User includes
       
    26 
       
    27 // Forward declarations
       
    28 class CClkDateTimeView;
       
    29 
       
    30 // Class declaration
       
    31 /**
       
    32 * @class CClkDateTimeViewContainer
       
    33 * @brief The container of the datetimeview.
       
    34 * @dll clkdatetimeview.dll
       
    35 */
       
    36 class CClkDateTimeViewContainer : public CCoeControl
       
    37     {
       
    38     public:			// Constructors and destructor
       
    39 
       
    40 		/**
       
    41 		* @brief Two-phased constructor.
       
    42 		* @param aView CClkDateTimeView* that owns this class.
       
    43 		* @return CClkDateTimeViewContainer*
       
    44 		*/
       
    45         static CClkDateTimeViewContainer* NewL( CClkDateTimeView* aView );
       
    46 
       
    47 		/**
       
    48 		* @brief Destructor.
       
    49 		*/
       
    50         ~CClkDateTimeViewContainer();
       
    51 
       
    52     public:			// New functions
       
    53 
       
    54 		/**
       
    55 		* @brief Sets a pointer to CAknSettingStyleListBox.
       
    56 		* @param aListBox CAknSettingStyleListBox*
       
    57 		*/
       
    58         inline void SetListBox( CAknSettingStyleListBox* aListBox );
       
    59 
       
    60 		/**
       
    61 		* @brief Gets a pointer to CAknSettingStyleListBox.
       
    62 		* @return CAknSettingStyleListBox*
       
    63 		*/
       
    64         inline CAknSettingStyleListBox* ListBox() const;
       
    65 
       
    66     public:			// Functions from base classes
       
    67 
       
    68 		/**
       
    69 		* @brief From CCoeControl Handle key event.
       
    70 		*/
       
    71         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    72 
       
    73     private:		// Functions from base classes
       
    74 
       
    75 		/**
       
    76 		* @brief From CCoeControl
       
    77 		*/
       
    78         void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    79 
       
    80 		/**
       
    81 		* @return CCoeControl Returns the number of components.
       
    82 		*/
       
    83         TInt CountComponentControls() const;
       
    84 
       
    85 		/**
       
    86 		* @return CCoeControl Returns a pointer of component.
       
    87 		*/
       
    88         CCoeControl* ComponentControl( TInt anIndex ) const;
       
    89 
       
    90 		/**
       
    91 		* @brief CCoeControl Handles a chage of client area size.
       
    92 		*/
       
    93         void SizeChanged();
       
    94 
       
    95 		/**
       
    96 		* @brief From CCoeControl, Handle focus change.
       
    97 		*/
       
    98         void FocusChanged( TDrawNow aDrawNow );
       
    99         
       
   100 		/**
       
   101 		* @brief From CCoeControl, Handles a change to the control's resources.
       
   102 		*/
       
   103         void HandleResourceChange( TInt aType );
       
   104         
       
   105 		/**
       
   106 		* @brief From CCoeControl, Handles pointer events(Touch interface).
       
   107 		*/
       
   108         void HandlePointerEventL(const TPointerEvent &aPointerEvent);
       
   109 
       
   110     private:			// New functions
       
   111 
       
   112 		/**
       
   113 		* @brief By default Symbian OS constructor is private.
       
   114 		* @param aView CClkDateTimeView* that owns this class.
       
   115 		*/
       
   116         void ConstructL( CClkDateTimeView* aView );
       
   117 
       
   118     private:			// Data
       
   119 	
       
   120 		/**
       
   121 		* @var iListBox
       
   122 		* @brief The datetime listbox.
       
   123 		*/
       
   124         CAknSettingStyleListBox*        iListBox;
       
   125         
       
   126         /**
       
   127 		* @var iView
       
   128 		* @brief The CClockDateTimeView object.
       
   129 		*/
       
   130         CClkDateTimeView*				iView;
       
   131         
       
   132         /**
       
   133 		* @var iTouchFlag
       
   134 		* @brief ETrue if user has tapped once.
       
   135 		*/
       
   136         TBool                           iTouchFlag;
       
   137     };
       
   138 
       
   139 #include "clkdatetimeviewcontainer.inl"
       
   140 
       
   141 #endif 			// __CLK_DATETIMEVIEW_CONTAINER_H__
       
   142 
       
   143 // End of File