gssettingsuis/Gs/GSAutoKeyguardPlugin/Inc/GSAutoKeyguardPluginModel.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Model for Device & SIM security plug-in.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSAUTOKEYGUARDPLUGINMODEL_H
       
    20 #define GSAUTOKEYGUARDPLUGINMODEL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <centralrepository.h>
       
    25 
       
    26 // CONSTANTS
       
    27 const TInt KGSBufSize128 = 128;
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 
       
    37 // CLASS DEFINITION
       
    38 /**
       
    39 *  CGSAutoKeyguardPluginModel is the model class of device & sim security plugin.
       
    40 *  It provides functions to get and set setting values.
       
    41 *  @lib GSAutoKeyguardPlugin.lib
       
    42 *  @since Series 60_5.0
       
    43 
       
    44 */
       
    45 class CGSAutoKeyguardPluginModel : public CBase
       
    46     {
       
    47     public:  // Constructor and destructor
       
    48         /**
       
    49         * Two-phased constructor
       
    50         */
       
    51         static CGSAutoKeyguardPluginModel* NewL();
       
    52 
       
    53         /**
       
    54         * Destructor
       
    55         */
       
    56         ~CGSAutoKeyguardPluginModel();
       
    57         
       
    58     public:
       
    59         /**
       
    60         * Returns the autokeyguard period time (minutes). 
       
    61         *
       
    62         * @return TInt: period
       
    63         */
       
    64         TInt AutoKeyguardPeriod();
       
    65         /**
       
    66         * Returns the autokeyguard maximum period time (minutes). 
       
    67         *
       
    68         * @return TInt: period
       
    69         */
       
    70         TInt AutoKeyguardMaxPeriod();
       
    71         /**
       
    72         * Sets the autokeyguard period. After this period the keyguard is activated.
       
    73         * @param aNewPeriod TInt (minutes)
       
    74         *
       
    75         * @return ETrue: no errors
       
    76         *         EFalse: an error has occurred
       
    77         */
       
    78         TBool SetAutoKeyguardPeriod(const TInt newPeriod);
       
    79 
       
    80     private: // Private constructors
       
    81         /**
       
    82         * Default C++ contructor
       
    83         */
       
    84         CGSAutoKeyguardPluginModel();
       
    85 
       
    86         /**
       
    87         * Symbian OS default constructor
       
    88         * @return void
       
    89         */
       
    90         void ConstructL();
       
    91         
       
    92     private: // data
       
    93         CRepository* iSecurityRepository;
       
    94     
       
    95     };
       
    96 
       
    97 
       
    98 #endif //GSAUTOKEYGUARDPLUGINMODEL_H
       
    99 
       
   100 // End of File