messagingappbase/mce/inc/MceMainViewEmptyListContainer.h
branchRCL_3
changeset 27 7fdbb852d323
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Empty container for main view. This is displayed when mce is launched before
       
    16 *     message server is ready.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MCEMAINVIEWEMPTYLISTCONTAINER_H
       
    23 #define MCEMAINVIEWEMPTYLISTCONTAINER_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <coecntrl.h>
       
    27 // CLASS DECLARATION
       
    28 class CAknsBasicBackgroundControlContext;
       
    29 
       
    30 /**
       
    31 *  Displayed in mce launch before message server is ready.
       
    32 */
       
    33 class CMceMainViewEmptyListContainer : public CCoeControl
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * C++ default constructor.
       
    39         */
       
    40         CMceMainViewEmptyListContainer();
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CMceMainViewEmptyListContainer* NewL(const TRect& aRect);
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CMceMainViewEmptyListContainer();
       
    51 
       
    52     public: // Functions from base classes
       
    53 
       
    54         /**
       
    55         * From CCoeControl
       
    56         */
       
    57         virtual void Draw(const TRect& aRect) const;
       
    58 
       
    59         /**
       
    60         * From CCoeControl
       
    61         */
       
    62         virtual TKeyResponse OfferKeyEventL(
       
    63             const TKeyEvent& aKeyEvent,
       
    64             TEventCode aType );
       
    65         
       
    66         /**
       
    67         * From CCoeControl
       
    68         */
       
    69         TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
       
    70         /**
       
    71         * Called when the size has changed.
       
    72         */        
       
    73         void SizeChanged();
       
    74 
       
    75     private:
       
    76 
       
    77         /**
       
    78         * By default Symbian OS constructor is private.
       
    79         */
       
    80         void ConstructL(const TRect& aRect);
       
    81         
       
    82         /**
       
    83         * Own: Background Skin
       
    84         */
       
    85         CAknsBasicBackgroundControlContext* iBgContext;
       
    86 
       
    87     };
       
    88 
       
    89 #endif      // MCEMAINVIEWEMPTYLISTCONTAINER_H
       
    90 
       
    91 // End of File