fotaapplication/fotaserver/fotacustcmds/inc/fotacustcmdfirstboot.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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 CFotaCustCmdFirstBoot class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef FOTACUSTCMDFIRSTBOOT_H
       
    20 #define FOTACUSTCMDFIRSTBOOT_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <ssm/ssmcustomcommand.h>
       
    24 
       
    25 /**
       
    26  *  Each command is implemented in a class derived from MSsmCustomCommand.
       
    27  *  It is also possible to implement multiple similar command in the same
       
    28  *  class and differentiate between them based on constructor parameters
       
    29  *  from the factory method.
       
    30  */
       
    31 NONSHARABLE_CLASS( CFotaCustCmdFirstBoot ) : public CBase, public MSsmCustomCommand
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Two-phased constructor
       
    38      */
       
    39 	static CFotaCustCmdFirstBoot* NewL();
       
    40 
       
    41     /**
       
    42      * Destructor
       
    43      */
       
    44     virtual ~CFotaCustCmdFirstBoot();
       
    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: // data
       
    74 
       
    75     /**
       
    76     * If the command needs command env in Execute function, it should store it
       
    77     * to member variable:
       
    78     *
       
    79     * Custom command environment. Not owned. Set in Initialize.
       
    80     * CSsmCustomCommandEnv* iEnv;
       
    81     */
       
    82 
       
    83     };
       
    84 
       
    85 #endif // FOTACUSTCMDFIRSTBOOT_H