clock2/clockui/uilayer/clockmainview/inc/clockmaincontainer.h
branchRCL_3
changeset 18 d68a4b5d5885
parent 0 f979ecb2b13e
child 28 96907930389d
equal deleted inserted replaced
16:55d60436f00b 18:d68a4b5d5885
    34 class CCoeEnv;
    34 class CCoeEnv;
    35 //Single click integration
    35 //Single click integration
    36 class CAknDoubleStyleListBox;
    36 class CAknDoubleStyleListBox;
    37 
    37 
    38 class CClockMarqueeLabel;
    38 class CClockMarqueeLabel;
       
    39 class CAknButton;
    39 
    40 
    40 // Constants
    41 // Constants
    41 const TInt KZeroAlarms( 1 );
    42 const TInt KZeroAlarms( 0 );
    42 
    43 
    43 // Class declaration
    44 // Class declaration
    44 /**
    45 /**
    45 * @class CClockMainContainer
    46 * @class CClockMainContainer
    46 * @brief The CCoeControl inheriting class.
    47 * @brief The CCoeControl inheriting class.
    47 * @exe clock.exe
    48 * @exe clock.exe
    48 */
    49 */
    49 class CClockMainContainer : public CCoeControl,
    50 class CClockMainContainer : public CCoeControl,
    50                             public MEikListBoxObserver
    51                             public MEikListBoxObserver,
       
    52                             public MCoeControlObserver
    51 	{
    53 	{
    52 	public:			// Constructor and destructor
    54 	public:			// Constructor and destructor
    53 			
    55 			
    54 		/**
    56 		/**
    55 		* @brief Create a CClockMainContainer object. Performs the first phase of 2-phase construction.
    57 		* @brief Create a CClockMainContainer object. Performs the first phase of 2-phase construction.
   101         * @param aListBox   The originating list box.
   103         * @param aListBox   The originating list box.
   102         * @param aEventType A code for the event. Further information 
   104         * @param aEventType A code for the event. Further information 
   103         * may be obtained by accessing the list box itself.
   105         * may be obtained by accessing the list box itself.
   104         */
   106         */
   105         void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
   107         void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
   108         
       
   109         void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );
   106     	
   110     	
   107 	public:         // New functions
   111 	public:         // New functions
   108 	    
   112 	    
   109 		/**
   113 		/**
   110 		* @brief Updates the listbox with the newly added alarm.
   114 		* @brief Updates the listbox with the newly added alarm.
   144 		
   148 		
   145 		/**
   149 		/**
   146 		* @brief Reconstructs the marquee label and prepares it for marqueeing again.
   150 		* @brief Reconstructs the marquee label and prepares it for marqueeing again.
   147 		*/
   151 		*/
   148 		void ResetMarqueeLabelL();
   152 		void ResetMarqueeLabelL();
       
   153 
       
   154       /**
       
   155         * @brief Calculates correct rect and sets if ro NewAlarmButton
       
   156         */
       
   157 		void SetCorrectRectForNewAlarmButton();
       
   158 
       
   159 		/**
       
   160         * @brief Switches clock type
       
   161         */
       
   162 		void SwitchClockTypeL();
   149     	
   163     	
   150    	private:    	// Functions from base classes
   164    	private:    	// Functions from base classes
   151 
   165 
   152     /**
   166     /**
   153     * From CCoeControl Gets help context
   167     * From CCoeControl Gets help context
   314 		/**
   328 		/**
   315 		* @var iDateString
   329 		* @var iDateString
   316 		* @brief Holds the date.
   330 		* @brief Holds the date.
   317 		*/
   331 		*/
   318 		HBufC*									iDateString;
   332 		HBufC*									iDateString;
       
   333 		
       
   334 		CAknButton*   iNewAlarmButton;
       
   335 		
       
   336 		TTime                                   iPreviousClockTypeSwitch;
   319 
   337 
   320 	};
   338 	};
   321 
   339 
   322 #endif 		// __CLOCK_CONTAINER_H__
   340 #endif 		// __CLOCK_CONTAINER_H__
   323 
   341