controlpanelui/src/seccodeui/src/seccodesettings.h
changeset 19 36aa4756ee82
parent 12 624337f114fe
child 20 22d3abee08da
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
     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 *
       
    16 */
       
    17 
       
    18 #ifndef SECCODESETTINGS_H
       
    19 #define SECCODESETTINGS_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "seccodeuiglobal.h"
       
    23 
       
    24 class SecCodeSettingsPrivate;
       
    25 
       
    26 class SECCODEUI_EXPORT SecCodeSettings : public QObject
       
    27 {
       
    28 	Q_OBJECT
       
    29 public:
       
    30 	explicit SecCodeSettings(QObject *parent = 0);
       
    31 	virtual ~SecCodeSettings();
       
    32 	
       
    33 	bool pinCodeRequest() const;
       
    34 	
       
    35 	void setPinCodeRequest(bool on);
       
    36 	
       
    37 	void changePinCode();
       
    38 	
       
    39 	void changePin2Code();
       
    40 	
       
    41 	bool deviceLock() const;
       
    42 	
       
    43 	void setDeviceLock(bool on);
       
    44 	
       
    45 	void changeLockCode();
       
    46 	
       
    47 	int autoLockPeriod() const;
       
    48 	
       
    49 	void setAutoLockPeriod(int period);
       
    50 	
       
    51 	bool remoteLock() const;
       
    52 	
       
    53 	void setRemoteLock(bool on,const QString &lockCode);
       
    54 	
       
    55 private:
       
    56 	SecCodeSettingsPrivate *d_ptr;
       
    57 };
       
    58 
       
    59 #endif //SECCODESETTINGS_H