wvuing/wvuiave/AppSrc/CCASplashScreen.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 __CCASPLASHSCREEN_H__
       
    21 #define __CCASPLASHSCREEN_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <e32std.h>
       
    25 #include <COEAUI.H>
       
    26 #include <EIKENV.H>
       
    27 
       
    28 #include  "MCASplashScreenObserver.h"
       
    29 
       
    30 class CCAAppUi;
       
    31 class CCASplashScreenControl;
       
    32 //class CNcdDialogNotifier;
       
    33 //class MNcdSkinData;
       
    34 
       
    35 class CCASplashScreen : public CActive
       
    36     {
       
    37     public:
       
    38 
       
    39         // Two-phase Constructors
       
    40         static CCASplashScreen* NewL( CCAAppUi* aAppUi );
       
    41 
       
    42         static CCASplashScreen* NewLC( CCAAppUi* aAppUi );
       
    43 
       
    44         // destructor
       
    45         ~CCASplashScreen();
       
    46 
       
    47     public: // from CActive
       
    48         /**
       
    49          * Executed when request is completed
       
    50          */
       
    51         void RunL();
       
    52 
       
    53         /**
       
    54          * Cancels outstanding requests
       
    55          */
       
    56         void DoCancel();
       
    57 
       
    58         TInt RunError( TInt aError );
       
    59 
       
    60     public:	// Added functions
       
    61 
       
    62         // Takes ownership of aSplashImage
       
    63         void ShowSplashScreenL( MCASplashScreenObserver* aSplashScreenListener,
       
    64                                 const TInt& aTime,
       
    65                                 CGulIcon* aSplashImage,
       
    66                                 /*MNcdSkinData* aSkinData,*/
       
    67                                 TBool aDismissable );
       
    68 
       
    69         // Cancels the timer and makes an asynchronous call that
       
    70         // is completed immediately.
       
    71         // This can be used to close the splashscreen from the splash control.
       
    72         //
       
    73         // Asynchronous call is needed for some reason to make
       
    74         // the disclaimer dialog show.
       
    75         void DismissSplashScreen();
       
    76 
       
    77     protected:
       
    78 
       
    79         // default constructor
       
    80         CCASplashScreen( CCAAppUi* aAppUi );
       
    81 
       
    82         //Constructor method
       
    83         void ConstructL( );
       
    84 
       
    85         void SplashScreenDismissed();
       
    86 
       
    87     private: // data
       
    88 
       
    89         CCASplashScreenControl* iSplashControl;
       
    90 
       
    91         CCAAppUi* iAppUi;
       
    92 
       
    93 
       
    94         /**
       
    95          * A listener for this class - e.g. CNcdStartup instantiates this.
       
    96          * A class for this pointer is given as a parameter of ShowSplashScreenL().
       
    97          */
       
    98         MCASplashScreenObserver* iSplashScreenListener;
       
    99 
       
   100         RTimer iTimer;
       
   101     };
       
   102 
       
   103 #endif // __CCASPLASHSCREEN_H__
       
   104 
       
   105