messagingfw/watcherfw/inc/cwatcherssastartupmgr.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2005-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 #ifndef __CWATCHERSSASTARTUPMGR_H__
       
    17 #define __CWATCHERSSASTARTUPMGR_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <startup.hrh>          // For start-up states
       
    21 #include <startupdomaindefs.h>  // For start-up domains
       
    22 #include <domaindefs.h>
       
    23 #include <domainmember.h>       // For CDmDomain
       
    24 #include <e32cmn.h>             // For RArray
       
    25 
       
    26 #include "cwatcherlauncher.h"   // For CWatcherLauncher
       
    27 #include "watcher.h"            // For CWatcherLog
       
    28 
       
    29 	
       
    30 /**
       
    31 This class interacts with the Domain Manager to be kept aware of the current
       
    32 system startup state. 
       
    33 
       
    34 @internalComponent
       
    35 @released
       
    36 */
       
    37 
       
    38 class CWatcherSSAStartupMgr: public CDmDomain
       
    39 	{
       
    40 
       
    41 public:
       
    42 	static CWatcherSSAStartupMgr* NewL();
       
    43 	virtual ~CWatcherSSAStartupMgr();
       
    44 
       
    45 private:
       
    46 	CWatcherSSAStartupMgr(TDmHierarchyId aHierarchyId, TDmDomainId aDomainId);
       
    47 	void ConstructL();
       
    48 	virtual void RunL();                   // from CActive
       
    49 	virtual TInt RunError(TInt aError);    // from CActive
       
    50 	void DoRunErrorL();   // trapped by RunError
       
    51 	// DoCancel is implemented by CDmDomain and cancels any
       
    52 	// outstanding transition notification request
       
    53 	TBool ProcessSSAEventL(TStartupStateIdentifier aKnownState);
       
    54 	void  PerformFullInitL();
       
    55 	void  PerformCriticalInitL();
       
    56 	void  PerformNonCriticalInitL();
       
    57 	void  StartWatchersL(TUid aEComInterface);
       
    58 	
       
    59 private:
       
    60 	/** Current startup state */
       
    61 	TStartupStateIdentifier iCurrentStartupState;
       
    62 	/** List of watcher launchers */
       
    63 	RPointerArray<CWatcherLauncher> iWatcherList;
       
    64 		
       
    65 	CWatcherLog* iLog;
       
    66 	RFs iFs;
       
    67 					
       
    68 	};
       
    69 
       
    70 #endif // __CWATCHERSSASTARTUPMGR_H__