emailuis/emailui/inc/FreestyleEmailUiNaviPaneControl2MailViewer.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2009 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: encapsulates navipane controls of mail viewer view
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CFREESTYLEEMAILNAVIPANECONTROL1_H
       
    19 #define CFREESTYLEEMAILNAVIPANECONTROL1_H
       
    20 
       
    21 #include <coecntrl.h>
       
    22 class CCoeControlArray;
       
    23 
       
    24 NONSHARABLE_CLASS( CFreestyleEmailUiNaviPaneControlContainer2MailViewer ) : public CCoeControl
       
    25     {
       
    26     public:
       
    27         enum TFreestyleEmailNaviControlId
       
    28             {
       
    29             EFreestyleEmailNaviTimeControlId,
       
    30             };
       
    31 
       
    32     public:
       
    33         static CFreestyleEmailUiNaviPaneControlContainer2MailViewer* NewL();
       
    34         virtual ~CFreestyleEmailUiNaviPaneControlContainer2MailViewer();
       
    35 
       
    36         /**
       
    37         * From CoeControl
       
    38         * See the documentation from the coecntrl.h
       
    39         */
       
    40         TInt CountComponentControls() const;
       
    41 
       
    42         /**
       
    43         * From CCoeControl
       
    44         * See the documentation from the coecntrl.h
       
    45         */
       
    46         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    47 
       
    48     private:
       
    49         CFreestyleEmailUiNaviPaneControlContainer2MailViewer();
       
    50         void ConstructL();
       
    51 
       
    52         void AddToControlArrayL( CCoeControl* aControl, TFreestyleEmailNaviControlId aControlId );
       
    53         void RemoveFromControlArray( TFreestyleEmailNaviControlId aControlId );
       
    54 
       
    55     private: // data
       
    56 
       
    57         /** Control array */
       
    58         CCoeControlArray* iControlArray;
       
    59     };
       
    60 
       
    61 #endif // CFREESTYLEEMAILNAVIPANECONTROL1_H