diff -r 09b1ac925e3f -r 03674e5abf46 securitydialogs/SecUi/GSSimSecPlugin/Inc/GSSimSecPluginModel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/securitydialogs/SecUi/GSSimSecPlugin/Inc/GSSimSecPluginModel.h Wed Sep 01 12:19:59 2010 +0100 @@ -0,0 +1,121 @@ +/* +* 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 +#include + +// 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 \ No newline at end of file