wvuing/IMPSConnectionUI/UISrc/CCnUiSignInControl.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2006-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:  AppUi class of application
       
    15 *  Since			 : 3.2
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CCNUISIGNINCONTROL_H__
       
    21 #define __CCNUISIGNINCONTROL_H__
       
    22 
       
    23 #include <coecntrl.h>
       
    24 #include <eiklabel.h>
       
    25 #include <gulicon.h>
       
    26 #include <ICLAnimationDataProvider.h>
       
    27 #include <BasicAnimation.h>
       
    28 #include <f32file.h>    // RFs
       
    29 
       
    30 //class CNcdDialogNotifier;
       
    31 //class MNcdSkinData;
       
    32 class MCnUiWaitNoteObserver;
       
    33 
       
    34 class CCnUiSignInControl : public CCoeControl,
       
    35             public MCoeControlBackground,
       
    36             public MEikCommandObserver
       
    37     {
       
    38     public:
       
    39 
       
    40         // Two-phase Constructors
       
    41         static CCnUiSignInControl* NewL( const TDesC& aLabelText, MCnUiWaitNoteObserver* aObserver );
       
    42 
       
    43         static CCnUiSignInControl* NewLC( const TDesC& aLabelText, MCnUiWaitNoteObserver* aObserver );
       
    44 
       
    45         // destructor
       
    46         ~CCnUiSignInControl();
       
    47 
       
    48     public: // Functions from base classes
       
    49 
       
    50         /**
       
    51          * From CoeControl,SizeChanged.
       
    52          */
       
    53         void SizeChanged();
       
    54 
       
    55         /**
       
    56          * From CoeControl,CountComponentControls.
       
    57          */
       
    58         TInt CountComponentControls() const;
       
    59 
       
    60         /**
       
    61          * From CCoeControl,ComponentControl.
       
    62          */
       
    63         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    64 
       
    65         /**
       
    66          * From CCoeControl,Draw.
       
    67          */
       
    68         void Draw( const TRect& aRect ) const;
       
    69 
       
    70         /**
       
    71         * From CCoeControl,OfferKeyEventL.
       
    72         */
       
    73         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    74 
       
    75         /**
       
    76         * From MCoeControlBackground, Draw.
       
    77         */
       
    78         // event handling section
       
    79         void Draw( CWindowGc& aGc, const CCoeControl& aControl, const TRect& aRect ) const;
       
    80 
       
    81         /**
       
    82         * From MEikCommandObserver.
       
    83         */
       
    84         // event handling section
       
    85         void ProcessCommandL( TInt aCommandId );
       
    86 
       
    87         void HideStatus();
       
    88         void StopAnimation();
       
    89         void AssignSignInText( const TDesC& aLabelText );
       
    90 
       
    91         void HandleResourceChange( TInt aType );
       
    92 
       
    93     private:
       
    94         // Fix codescanner warning: Pointer access in destructors
       
    95         void MakeCbaInvisible();
       
    96     protected:
       
    97 
       
    98         // default constructor
       
    99         CCnUiSignInControl( MCnUiWaitNoteObserver* aObserver );
       
   100 
       
   101         //Constructor method
       
   102         void ConstructL( const TDesC& aLabelText );
       
   103 
       
   104         TBool LandscapeOrientation() const;
       
   105 
       
   106 
       
   107     private: // dat
       
   108         ///<The observer, not owned, can be NULL
       
   109         MCnUiWaitNoteObserver*      iObserver;
       
   110 
       
   111 //	CGulIcon* iSplashImage;
       
   112         //CCnUiInfoLabel* iLabel;
       
   113         CEikLabel* iLabel;
       
   114 //	CEikLabel* iCancelLabel;
       
   115 //	MAknsControlContext* iBackground;
       
   116         CEikButtonGroupContainer* iPopoutCba;
       
   117         CGulIcon* iImage;
       
   118         CBasicAnimation* iGifImage;
       
   119         RFs iFs;
       
   120     };
       
   121 
       
   122 #endif // __CCNUISIGNINCONTROL_H__