upnpframework/upnpcommonui/inc/upnpnavipanecontainer.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2005 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 UPnP navi pane container
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef UPNPNAVIPANECONTAINER_H
       
    21 #define UPNPNAVIPANECONTAINER_H
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <coecntrl.h>
       
    26 #include <AknsBasicBackgroundControlContext.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CUPnPPeriodic;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  CUPnPNaviPaneContainer
       
    35 *  Container class for navi pane
       
    36 *
       
    37 *  @lib
       
    38 *  @since 3.0
       
    39 */
       
    40 
       
    41 enum TAnimationFrames
       
    42     {
       
    43     EFrame1,
       
    44     EFrame2,
       
    45     EFrame3,
       
    46     EFrame4,
       
    47     EFrame5,
       
    48     EFrame6,
       
    49     EFrame7,
       
    50     EFrame8,
       
    51     EFrame9
       
    52     };
       
    53 
       
    54 
       
    55 
       
    56 class CUPnPNaviPaneContainer : public CCoeControl
       
    57     {    
       
    58     public:  // Constructors and destructor
       
    59 
       
    60         /**
       
    61         * Symbian constructor can leave
       
    62         */    
       
    63         IMPORT_C static CUPnPNaviPaneContainer* NewL(
       
    64                                     const TRect& aRect, 
       
    65                                     TPoint aPosition, 
       
    66                                     CAknNavigationControlContainer* aParent );
       
    67 
       
    68         /**
       
    69         * Destructor.
       
    70         */
       
    71         virtual ~CUPnPNaviPaneContainer();
       
    72      
       
    73 
       
    74     private: // Functions from base classes
       
    75 
       
    76 
       
    77         /**
       
    78         * From CoeControl
       
    79         * @return Number of contained component controls.
       
    80         */
       
    81         TInt CountComponentControls() const;
       
    82 
       
    83         /**
       
    84         * From CCoeControl
       
    85         * @param aIndex index of a contained component control.
       
    86         */
       
    87         
       
    88         CCoeControl* ComponentControl(TInt aIndex) const;
       
    89 
       
    90         /*
       
    91         * From CCoeControl
       
    92         * @param aRect drawable area.
       
    93         */
       
    94         void Draw(const TRect& aRect) const;
       
    95         
       
    96     private: // Constructors
       
    97     
       
    98         /**
       
    99         * C++ default constructor
       
   100         */
       
   101         CUPnPNaviPaneContainer();
       
   102     
       
   103         /**
       
   104         * Symbian second phase constructor
       
   105         */
       
   106         void ConstructL( const TRect& aRect,
       
   107                          TPoint aPosition,
       
   108                          CAknNavigationControlContainer* aParent = NULL );
       
   109         
       
   110         /**
       
   111         * sets postion and activates and deactivates window
       
   112         */       
       
   113         void DrawAnimation();
       
   114         
       
   115         /**
       
   116         * loads animation frame
       
   117         */
       
   118         static CGulIcon* LoadIconL( TAnimationFrames aAnimationState, 
       
   119                                     TAny* aDlg );
       
   120         
       
   121         /**
       
   122         * deletes the animation frame which enum is given as parameter
       
   123         */
       
   124         void DeleteIcon(TAnimationFrames aAnimationState);
       
   125           
       
   126         /**
       
   127         * updates animation, changes the animation frame to next 
       
   128         */                       
       
   129         static TBool UpdateAnimationL(TAny* aDlg);
       
   130         
       
   131      private: // data
       
   132                    
       
   133         CGulIcon*                            iIcon1;   // owned
       
   134         CGulIcon*                            iIcon2;   // owned
       
   135         CGulIcon*                            iIcon3;   // owned
       
   136         CGulIcon*                            iIcon4;   // owned
       
   137         CGulIcon*                            iIcon5;   // owned
       
   138         CGulIcon*                            iIcon6;   // owned
       
   139         CGulIcon*                            iIcon7;   // owned
       
   140         CGulIcon*                            iIcon8;   // owned
       
   141         CGulIcon*                            iIcon9;   // owned
       
   142         CGulIcon*                            iNavipaneIcon;    // owned
       
   143         CEikLabel*                           iLabel; //owned       
       
   144         CUPnPPeriodic*                       iPeriodic; //owned
       
   145         TInt                                 iAnimationIndex;
       
   146         TPoint                               iPosition;
       
   147         CAknsBasicBackgroundControlContext*  iSkinContext; // owned
       
   148         TBool                                iFirstDrawDelayWaited;
       
   149         
       
   150         TInt                        iResFileOffset;
       
   151         CEikonEnv*                  iCoeEnv; //not owned        
       
   152     };
       
   153 #endif      // UPNPNAVIPANECONTAINER_H
       
   154 
       
   155 // End of File