sysstatemgmt/sysrestart/inc/restartsys.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 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 "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: Declaration of RestartSys class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef RESTARTSYS_H
       
    19 #define RESTARTSYS_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 /**
       
    24 * Class implementing system restart.
       
    25 */
       
    26 class RestartSys
       
    27 	{
       
    28 public:
       
    29 
       
    30     /**
       
    31      * System restart with reason EUnknownReset.
       
    32      *
       
    33      * @return KErrNone if operation succeeded
       
    34      */
       
    35 	IMPORT_C static TInt RestartSystem();
       
    36 
       
    37     /**
       
    38      * System restart with reason.
       
    39      *
       
    40      * @param aStartupMode Requested startup mode
       
    41      * @return KErrNone if operation succeeded
       
    42      */
       
    43 	IMPORT_C static TInt RestartSystem( TInt aStartupMode );
       
    44 	};
       
    45 
       
    46 #endif // RESTARTSYS_H