sysstatemgmt/ssmcustcmds/ssmsystemcmds/inc/ssmsystemcommandsbase.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 CSsmSystemCommandsBase class.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef SSMSYSTEMCOMMANDSBASE_H
       
    20 #define SSMSYSTEMCOMMANDSBASE_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <ssm/ssmcustomcommand.h>
       
    24 
       
    25 class CSsmMapperUtility;
       
    26 
       
    27 /**
       
    28  *  Base class for system commands.
       
    29  */
       
    30 NONSHARABLE_CLASS( CSsmSystemCommandsBase ) : public CBase
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Destructor
       
    37      */
       
    38     virtual ~CSsmSystemCommandsBase();
       
    39 
       
    40 protected:
       
    41     
       
    42     /**
       
    43     * First phase constructor.
       
    44     */
       
    45     CSsmSystemCommandsBase();
       
    46 
       
    47    
       
    48     void SetL( TUid aCategory, TUint aKey, TInt aValue );
       
    49     
       
    50     void DefineL( TUid aCategory, TUint aKey, 
       
    51                   const TSecurityPolicy& aReadPolicy,
       
    52                   const TSecurityPolicy& aWritePolicy );
       
    53     
       
    54     CSsmMapperUtility& MapperUtilityL();
       
    55 
       
    56 
       
    57 private: // data
       
    58 
       
    59     // Mapper utility instance, owned.
       
    60     CSsmMapperUtility* iMapperUtility;
       
    61 
       
    62     };
       
    63 
       
    64 #endif // SSMSYSTEMCOMMANDSBASE_H