devencdiskutils/DevEncStarter/inc/DevEncStarterAppStarter.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2007 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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DEVENCSTARTERSTARTER_H__
       
    21 #define __DEVENCSTARTERSTARTER_H__
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 class MAppStarterCallback
       
    29     {
       
    30     public:
       
    31         virtual void AppStarted( const TUint32& aUid )=0;
       
    32     };
       
    33 
       
    34 class CDevEncStarterStarter : public CActive
       
    35     {
       
    36     public:
       
    37         static CDevEncStarterStarter* NewL( MAppStarterCallback* aCallback );
       
    38         static CDevEncStarterStarter* NewLC( MAppStarterCallback* aCallback );
       
    39         ~CDevEncStarterStarter();
       
    40 
       
    41         void StartAppL( const TUint32& aUid );
       
    42         TBool CanStartAppL( const TUint32& aUid );
       
    43 
       
    44     protected:
       
    45         void RunL();
       
    46         void DoCancel();
       
    47         TInt RunError( TInt aError );
       
    48 
       
    49     private:
       
    50     // Functions
       
    51         CDevEncStarterStarter( MAppStarterCallback* aCallback );
       
    52 
       
    53         void ConstructL();
       
    54 
       
    55     // Data
       
    56         TUint32 iAppUidStarting;
       
    57         MAppStarterCallback* iCallback; // parent
       
    58     };
       
    59 
       
    60 #endif //__DEVENCSTARTERSTARTER_H__
       
    61 
       
    62 // End of file