usbuis/imageprintui/inc/emptycontainer.h
changeset 93 2dc695882abd
parent 89 3592750162a5
equal deleted inserted replaced
89:3592750162a5 93:2dc695882abd
     1 /*
       
     2 * Copyright (c) 2006, 2007 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:  Header file for emptycontainer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CEMPTYCONTAINER_H
       
    19 #define CEMPTYCONTAINER_H
       
    20 
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24 
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAknsBasicBackgroundControlContext;
       
    28 
       
    29 
       
    30 /**
       
    31 * Container class for emptyview
       
    32 */
       
    33 class CEmptyContainer : public CCoeControl
       
    34     {
       
    35 
       
    36 
       
    37 public:
       
    38 
       
    39     /**
       
    40      * Factory method NewL
       
    41      * @param aRect Container area 
       
    42      * @return   The new object. 
       
    43      */ 
       
    44     static CEmptyContainer* NewL( const TRect& aRect );
       
    45 
       
    46     /**
       
    47      * Factory method NewLC
       
    48      * @param aRect Container area 
       
    49      * @return   The new object. 
       
    50      */ 
       
    51     static CEmptyContainer* NewLC( const TRect& aRect );
       
    52 
       
    53 
       
    54     /**
       
    55     * Destructor.
       
    56     */
       
    57     virtual ~CEmptyContainer();
       
    58     
       
    59 
       
    60 private: // Methods derived from CCoeControl
       
    61 
       
    62 
       
    63    /**
       
    64     * From CCoeControl Draw screen
       
    65     */
       
    66     void Draw( const TRect& aRect ) const;	
       
    67     
       
    68    /**
       
    69     * From CCoeControl Handles a chage of client area size.
       
    70     */
       
    71     void SizeChanged(); 	
       
    72 
       
    73    /**
       
    74     * From CCoeControl, Handles a change to the control's resources.
       
    75     */
       
    76     void HandleResourceChange( TInt aType ); 	
       
    77 
       
    78    
       
    79 private:
       
    80 
       
    81    /**
       
    82     * C++ default constructor
       
    83     */
       
    84     CEmptyContainer();
       
    85 
       
    86    /**
       
    87     *   Second phase constructor. Operations which might leave should 
       
    88     *   be called here
       
    89     */ 
       
    90     void ConstructL( const TRect& aRect );
       
    91 
       
    92 
       
    93 private: // data
       
    94 
       
    95     CAknsBasicBackgroundControlContext* iSkinContext; // skin data
       
    96 
       
    97     };
       
    98 
       
    99 #endif // CEMPTYCONTAINER_H