voicerecorder/RecViewSrc/CVRRecViewActivationContainer.h
branchRCL_3
changeset 21 c6bafb5162d8
parent 0 845549f293a7
equal deleted inserted replaced
20:072a5fa0c63b 21:c6bafb5162d8
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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: 
       
    15 *     An empty control that is displayed until application is fully
       
    16 *	  constructed
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef CVRRECVIEWACTIVATIONCONTAINER_H
       
    22 #define CVRRECVIEWACTIVATIONCONTAINER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <bldvariant.hrh>
       
    26 #include <coecntrl.h>
       
    27 #include "MVRObserver.h"
       
    28 #include <remconcoreapitargetobserver.h>
       
    29 #include <remconinterfaceselector.h>
       
    30 #include <remconcoreapitarget.h>
       
    31 #include <AknUtils.h>
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CVRButtonPanel;
       
    35 class CVRStateInfoPanel;
       
    36 class MVRButtonPanelModel;
       
    37 class MVRDecoratorModel;
       
    38 class MVRStateInfoModel;
       
    39 class MVRKeyObserver;
       
    40 class MVRVolumeChangeObserver;
       
    41 class CVRRecView;
       
    42 class CAknNavigationDecorator;
       
    43 class CAknNavigationControlContainer;
       
    44 class MAknsSkinInstance;
       
    45 class CAknsBasicBackgroundControlContext;
       
    46 
       
    47 
       
    48 // CLASS DEFINITION
       
    49 /**
       
    50 * An empty control that is displayed until application is fully
       
    51 * constructed
       
    52 */
       
    53 NONSHARABLE_CLASS( CVRRecViewActivationContainer )
       
    54 	: public CCoeControl
       
    55 	{
       
    56 	public:	// Constructors and destructor
       
    57 
       
    58 		/**
       
    59 		* Default constructor.
       
    60 		*/
       
    61 		CVRRecViewActivationContainer();
       
    62 
       
    63 		/**
       
    64 		* Destructor
       
    65 		*/
       
    66 		~CVRRecViewActivationContainer();
       
    67 
       
    68 		/**
       
    69 		* 2nd phase constructor
       
    70 		* @param aRect The screen rectangle for this component
       
    71 		*/
       
    72 		void ConstructL( const TRect& aRect );
       
    73 	public: // from CCoeControl
       
    74 		/*
       
    75 		*
       
    76 		*/
       
    77 		void HandleResourceChange(TInt aType); 
       
    78 
       
    79 	public:
       
    80 		// from CCoeControl
       
    81 
       
    82 		/**
       
    83 		* Called by the framework to get the number of sub-components
       
    84 		* contained in this component.
       
    85 		* @return The number of component controls contained by this control
       
    86 		*/
       
    87 		TInt CountComponentControls() const;
       
    88 
       
    89 		/**
       
    90 		* Called by the framework to get a specified sub-component
       
    91 		* of this component.
       
    92 		* @param aIndex The index of the component to get.
       
    93 		* @return The component control with an index of aIndex.
       
    94 		*/
       
    95 		CCoeControl* ComponentControl( TInt aIndex ) const;
       
    96 
       
    97 		/**
       
    98 		* When a key event occurs, the control framework calls this function
       
    99 		* for each control on the control stack, until one of them can process
       
   100 		* the key event (and returns EKeyWasConsumed).
       
   101 		* @param aKeyEvent The key event.
       
   102 		* @param aType The type of key event: EEventKey, EEventKeyUp
       
   103 		*              or EEventKeyDown
       
   104 		* @return Indicates whether or not the key event was used by this
       
   105 		*         control
       
   106 		*/
       
   107 		TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
       
   108 									 TEventCode aType );
       
   109 
       
   110 	private: // from CCoeControl
       
   111 
       
   112 		/*
       
   113 		* From CCoeControl
       
   114 		* @see CCoeControl
       
   115 		*/
       
   116 		void SizeChanged();
       
   117 
       
   118 		/**
       
   119 		* Draws this control.
       
   120 		* @param aRect The area that needs updating. Ignored.
       
   121 		*/
       
   122 		void Draw( const TRect& aRect ) const;
       
   123 
       
   124 		/*
       
   125 		* From CCoeControl
       
   126 		* @see CCoeControl
       
   127 		*/
       
   128 		TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
       
   129 
       
   130 		/**
       
   131 		* Handles a change to the application's resources
       
   132 		* @param aType The type of changed resource
       
   133 		*/
       
   134 		void HandleResourceChangeL( TInt aType );
       
   135 
       
   136 	private: // data
       
   137 	    /**
       
   138 	    * Skin instance from AknsUtils. Not owned.
       
   139 	    */
       
   140 		MAknsSkinInstance* iSkinInstance;
       
   141 
       
   142         /**
       
   143         * Background context for clearing screen. Owned.
       
   144         */
       
   145 		CAknsBasicBackgroundControlContext* iBackgroundSkinContext;	
       
   146 	};
       
   147 
       
   148 #endif // CVRRECVIEWACTIVATIONCONTAINER_H