cpsecplugins/simpincodeplugin/src/seccodemodel.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 "seccodemodel.h"
       
    20 #include "seccodemodel_p.h"
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 /*!
       
    25     Constructor
       
    26 */
       
    27 SecCodeModel::SecCodeModel(QObject *parent/*= 0*/)
       
    28     : QObject(parent)
       
    29 {
       
    30     QT_TRAP_THROWING(d_ptr = SecCodeModelPrivate::NewL());
       
    31 }
       
    32 
       
    33 /*!
       
    34     Destructor
       
    35 */
       
    36 SecCodeModel::~SecCodeModel()
       
    37 {
       
    38     delete d_ptr;
       
    39 }
       
    40 
       
    41 /*!
       
    42     Get Pin Code Request State
       
    43 */
       
    44 bool SecCodeModel::pinCodeRequest() const
       
    45 {
       
    46     return d_ptr->pinCodeRequest();
       
    47 }
       
    48 
       
    49 /*!
       
    50     Change Pin Code
       
    51 */
       
    52 bool SecCodeModel::changePinCodeRequest()
       
    53 {
       
    54     return d_ptr->changePinCodeRequest();
       
    55 }
       
    56 
       
    57 /*!
       
    58     Change Pin Code
       
    59 */
       
    60 int SecCodeModel::changePinCode()
       
    61 {
       
    62     return d_ptr->changePinCode();
       
    63 }
       
    64 
       
    65 /*!
       
    66     Change Pin2 Code
       
    67 */
       
    68 int SecCodeModel::changePin2Code()
       
    69 {
       
    70     return d_ptr->changePin2Code();
       
    71 }