epoc32/include/test/sysstartplugin.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if !defined(__SYSSTARTPLUGIN_H__)
       
    20 #define __SYSSTARTPLUGIN_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <f32file.h>
       
    24 
       
    25 #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT
       
    26 #include <ssm/ssmstateawaresession.h>
       
    27 
       
    28 class TSsmState;
       
    29 
       
    30 class CSysStartPlugin : public CBase, public MStateChangeNotificationSubscriber
       
    31 #else
       
    32 #include <domainmember.h>
       
    33 class CSysStartPlugin : public CDmDomain
       
    34 #endif
       
    35 	{
       
    36 public:
       
    37 	virtual void WaitForSystemStartL();
       
    38 	static CSysStartPlugin* NewL();
       
    39 	virtual ~CSysStartPlugin();
       
    40 	
       
    41 #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT
       
    42 public: // from MStateChangeNotificationSubscriber
       
    43 	virtual void StateChanged(TSsmState aSsmState);
       
    44 	
       
    45 private:
       
    46 	CSsmStateAwareSession* iStateAwareSession;
       
    47 #else
       
    48 	virtual void RunL();
       
    49 #endif
       
    50 protected:
       
    51 	CSysStartPlugin();
       
    52 	void ConstructL();
       
    53 	};
       
    54 
       
    55 #endif