securitydialogs/SecUi/GSSimSecPlugin/Inc/GSSimSecPluginModel.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:19:59 +0100
branchRCL_3
changeset 50 03674e5abf46
parent 0 164170e6151a
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Model for Device & SIM security plug-in.
*
*/


#ifndef GSSIMSECPLUGINMODEL_H
#define GSSIMSECPLUGINMODEL_H

// INCLUDES
#include <e32base.h>
#include <centralrepository.h>

// CONSTANTS
const TInt KGSBufSize128 = 128;

// MACROS

// DATA TYPES

// FUNCTION PROTOTYPES

// FORWARD DECLARATIONS

// CLASS DEFINITION
/**
*  CGSSimSecPluginModel is the model class of device & sim security plugin.
*  It provides functions to get and set setting values.
*  @lib GSSimSecPlugin.lib
*  @since Series 60_3.1

*/
class CGSSimSecPluginModel : public CBase
    {
    public:  // Constructor and destructor
        /**
        * Two-phased constructor
        */
        static CGSSimSecPluginModel* NewL();

        /**
        * Destructor
        */
        ~CGSSimSecPluginModel();
        
    public:
        /**
        * Returns the autolock period time (minutes). 
        *
        * @return TInt: period
        */
        TInt AutoLockPeriod();

        /**
        * Sets the autolock period. After this period device is locked.
        * @param aLockTime TInt (minutes)
        *
        * @return ETrue: no errors
        *         EFalse: an error has occurred
        */
        TBool SetAutoLockPeriod( const TInt aLockTime );

        /**
        * Returns SAT operations sate
        *
        * @return TInt 0: SAT operations off
        *         TInt 1: SAT operations on
        */
        TInt SatOperations();

        /**
        * Sets SAT operations on/off
        * @param aValue TInt (0 = off 1 =on)
        *
        * @return ETrue: no errors
        *         EFalse: an error has occurred
        */
        TBool SetSatOperations( const TInt aValue );

        /**
        * Checking if SAT operations supported
        * @return:
        * 0: not supported
        * 1: supported
        */
        TInt ConfirmSatOperationsSupport();

    private: // Private constructors
        /**
        * Default C++ contructor
        */
        CGSSimSecPluginModel();

        /**
        * Symbian OS default constructor
        * @return void
        */
        void ConstructL();
        
    private: // data
        CRepository* iSecurityRepository;
        CRepository* iPersonalizationRepository;
    
    };


#endif //GSSIMSECPLUGINMODEL_H

// End of File