sysstatemgmt/ssmcustcmds/ssmsystemcmds/inc/ssminitpskeys.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:
       
    15 * Declaration of CSsmInitPsKeys class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SSMINITPSKEYS_H
       
    20 #define SSMINITPSKEYS_H
       
    21 
       
    22 #include "ssmsystemcommandsbase.h"
       
    23 #include <e32base.h>
       
    24 #include <ssm/ssmcustomcommand.h>
       
    25 
       
    26 /**
       
    27  * Initializes startup related Publish and Subscribe keys.
       
    28  */
       
    29 NONSHARABLE_CLASS( CSsmInitPsKeys ) : public CSsmSystemCommandsBase, 
       
    30                                       public MSsmCustomCommand
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Two-phased constructor
       
    37      */
       
    38 	static CSsmInitPsKeys* NewL();
       
    39 
       
    40     /**
       
    41      * Destructor
       
    42      */
       
    43     virtual ~CSsmInitPsKeys();
       
    44 
       
    45 private: // From MSsmCustomCommand
       
    46 
       
    47     /**
       
    48      * @see MSsmCustomCommand
       
    49      */
       
    50     TInt Initialize( CSsmCustomCommandEnv* aCmdEnv );
       
    51 
       
    52     /**
       
    53      * @see MSsmCustomCommand
       
    54      */
       
    55 	void Execute( const TDesC8& aParams, TRequestStatus& aRequest );
       
    56 
       
    57     /**
       
    58      * @see MSsmCustomCommand
       
    59      */
       
    60 	void ExecuteCancel();
       
    61 
       
    62     /**
       
    63      * @see MSsmCustomCommand
       
    64      */
       
    65 	void Close();
       
    66 
       
    67     /**
       
    68      * @see MSsmCustomCommand
       
    69      */
       
    70 	void Release();
       
    71 	
       
    72 private:
       
    73     
       
    74     /**
       
    75      * Defines and sets values to the startup related Publish and Subscribe
       
    76      * keys.
       
    77      */
       
    78     void InitializeKeysL();
       
    79  
       
    80 private: // data
       
    81     };
       
    82 
       
    83 #endif // SSMINITPSKEYS_H