startupservices/Startup/syserrcmd/inc/syserrcmd.h
changeset 0 2e3d3ce01487
child 29 6a787171e1de
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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:
       
    15 * Declaration of CSysErrCmd class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SYSERRCMD_H
       
    20 #define SYSERRCMD_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <ssm/ssmcustomcommand.h>
       
    24 
       
    25 class CAknGlobalNote;
       
    26 
       
    27 /**
       
    28  *  A custom command for displaying a note about unrecoverable
       
    29  *  system error.
       
    30  */
       
    31 NONSHARABLE_CLASS( CSysErrCmd ) : public CBase, public MSsmCustomCommand
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Two-phased constructor
       
    38      */
       
    39 	static CSysErrCmd* NewL();
       
    40 
       
    41     /**
       
    42      * Destructor
       
    43      */
       
    44     virtual ~CSysErrCmd();
       
    45 
       
    46 private: // From MSsmCustomCommand
       
    47 
       
    48     /**
       
    49      * @see MSsmCustomCommand
       
    50      */
       
    51     TInt Initialize( CSsmCustomCommandEnv* aCmdEnv );
       
    52 
       
    53     /**
       
    54      * @see MSsmCustomCommand
       
    55      */
       
    56 	void Execute( const TDesC8& aParams, TRequestStatus& aRequest );
       
    57 
       
    58     /**
       
    59      * @see MSsmCustomCommand
       
    60      */
       
    61 	void ExecuteCancel();
       
    62 
       
    63     /**
       
    64      * @see MSsmCustomCommand
       
    65      */
       
    66 	void Close();
       
    67 
       
    68     /**
       
    69      * @see MSsmCustomCommand
       
    70      */
       
    71 	void Release();
       
    72 	
       
    73 private: // New functions
       
    74     
       
    75     void DoExecuteL( TRequestStatus& aRequest );
       
    76 
       
    77 private: // data
       
    78 
       
    79     // Custom command environment. Not owned. Set in Initialize.
       
    80     CSsmCustomCommandEnv* iEnv;
       
    81 
       
    82     /** Global note object used to show the notification on UI. Own */
       
    83     CAknGlobalNote* iNote;
       
    84 
       
    85     /** Global note id for cancelling the note. */
       
    86     TInt iNoteId;
       
    87     };
       
    88 
       
    89 #endif // SYSERRCMD_H