sysstatemgmt/systemstatereferenceplugins/custcmd/inc/cmdcoopsysperformrestartactions.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  @internalComponent
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef __CMDCOOPSYSPERFORMRESTARTACTIONS_H__
       
    23 #define __CMDCOOPSYSPERFORMRESTARTACTIONS_H__
       
    24 
       
    25 #include <ssm/ssmcustomcommand.h>
       
    26 #include <ssm/ssmadaptationcli.h>
       
    27 
       
    28 NONSHARABLE_CLASS (CCustomCmdCoopSysPerformRestartActions) : public CBase, public MSsmCustomCommand
       
    29 	{
       
    30 public:
       
    31 	static CCustomCmdCoopSysPerformRestartActions* NewL();
       
    32 
       
    33 	// from MSsmcustomCommand
       
    34 	TInt Initialize(CSsmCustomCommandEnv* aCmdEnv);
       
    35 	void Execute(const TDesC8& aParams, TRequestStatus& aStatus);
       
    36 	void Close();
       
    37 	void Release();
       
    38 	void ExecuteCancel();
       
    39 
       
    40 private:
       
    41 	CCustomCmdCoopSysPerformRestartActions();
       
    42 	TInt ExecuteL(const TDesC8& aParams);
       
    43 	~CCustomCmdCoopSysPerformRestartActions();
       
    44 
       
    45 private:
       
    46 	RSsmStateAdaptation iSsmStateAdaptation;
       
    47 	};
       
    48 
       
    49 #endif // __CMDCOOPSYSPERFORMRESTARTACTIONS_H__