cpsecplugins/simpincodeplugin/src/seccodesettings.cpp
changeset 19 098e361762d2
child 30 cc1cea6aabaf
equal deleted inserted replaced
17:8957df7b0072 19:098e361762d2
       
     1 /*
       
     2  * Copyright (c) 2010 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 // User includes
       
    19 #include "seccodesettings.h"
       
    20 #include "seccodemodel.h"
       
    21 
       
    22 // Class declaration
       
    23 class SecCodeSettingsPrivate
       
    24 {
       
    25 public:
       
    26     SecCodeSettingsPrivate()
       
    27     {
       
    28         mSecCodeModel = new SecCodeModel();
       
    29     }
       
    30     
       
    31     ~SecCodeSettingsPrivate()
       
    32     {
       
    33         delete mSecCodeModel;
       
    34     }
       
    35     
       
    36     SecCodeModel *mSecCodeModel;
       
    37 };
       
    38 
       
    39 // ======== MEMBER FUNCTIONS ========
       
    40 
       
    41 /*!
       
    42     Constructor
       
    43 */
       
    44 SecCodeSettings::SecCodeSettings(QObject * parent /*= 0*/)
       
    45     : QObject(parent), d_ptr(new SecCodeSettingsPrivate())
       
    46 {
       
    47 
       
    48 }
       
    49 
       
    50 /*!
       
    51     Destructor
       
    52 */
       
    53 SecCodeSettings::~SecCodeSettings()
       
    54 {
       
    55     delete d_ptr;
       
    56 }
       
    57 
       
    58 /*!
       
    59     Get Pin Code Request
       
    60 */
       
    61 bool SecCodeSettings::pinCodeRequest() const
       
    62 {
       
    63     return d_ptr->mSecCodeModel->pinCodeRequest();
       
    64 }
       
    65 
       
    66 /*!
       
    67     Change Pin Code request
       
    68 */
       
    69 bool SecCodeSettings::changePinCodeRequest()
       
    70 {
       
    71     return d_ptr->mSecCodeModel->changePinCodeRequest();
       
    72 }
       
    73 
       
    74 /*!
       
    75     Change Pin Code
       
    76 */
       
    77 void SecCodeSettings::changePinCode()
       
    78 {
       
    79     d_ptr->mSecCodeModel->changePinCode();
       
    80 }
       
    81 
       
    82 /*!
       
    83     Change Pin2 Code
       
    84 */
       
    85 void SecCodeSettings::changePin2Code()
       
    86 {    
       
    87     d_ptr->mSecCodeModel->changePin2Code();
       
    88 }