sysstatemgmt/systemstarter/amastartsrc/amastartasync.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18 */
       
    19 
       
    20 #ifndef __AMASTARTASYNC_H__
       
    21 #define __AMASTARTASYNC_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <e32debug.h>
       
    25 #include <dscstore.h>
       
    26 #include <dscitem.h>
       
    27 
       
    28 #include "amastartconst.h"
       
    29 #include "startsafe.h"
       
    30 #include "ssmdebug.h"
       
    31 
       
    32 /**
       
    33  * @internalTechnology
       
    34  * @released
       
    35  */
       
    36 NONSHARABLE_CLASS( CAmaStartAsync ) : public CActive
       
    37 	{
       
    38 public:
       
    39 	static CAmaStartAsync* NewL( RMessage2 aMessage );
       
    40 	static CAmaStartAsync* NewLC( RMessage2 aMessage );
       
    41 	~CAmaStartAsync();
       
    42 		
       
    43 	void StartL( const TUid& aDscId );
       
    44 		
       
    45 protected:
       
    46 	//From CActive
       
    47 	void RunL();
       
    48 	TInt RunError( TInt aError );
       
    49 	void DoCancel();
       
    50 		
       
    51 private:
       
    52 	CAmaStartAsync( RMessage2 aMessage );
       
    53 	void ConstructL();
       
    54 	void StartDscItemL(const CDscItem& aDscItem);
       
    55 		
       
    56 private:
       
    57 	RDscStore iDscStore;
       
    58 	CStartSafe* iStartSafe;
       
    59 	RSysMonSession iSysMon;
       
    60 	TBool iRunning;
       
    61 	RMessage2 iMessage;
       
    62 	};
       
    63 
       
    64 
       
    65 
       
    66 #endif // __AMASTARTASYNC_H__