controlpanelui/src/seccodeui/src/seccodemodel.cpp
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 #include "seccodemodel.h"
       
    19 #include "seccodemodel_p.h"
       
    20 
       
    21 SecCodeModel::SecCodeModel(QObject * parent /*= 0*/)
       
    22 : QObject(parent),d_ptr(new SecCodeModelPrivate())
       
    23 {
       
    24 }
       
    25 
       
    26 SecCodeModel::~SecCodeModel()
       
    27 {
       
    28 	delete d_ptr;
       
    29 }
       
    30 
       
    31 bool SecCodeModel::simCardRemoved()
       
    32 {
       
    33 //    return d_ptr->simCardRemoved();
       
    34     return false;
       
    35 }
       
    36 
       
    37 
       
    38 int SecCodeModel::pinRemainingAttempts()
       
    39 {
       
    40  //   return d_ptr->pinRemainingAttempts();
       
    41     return 3;
       
    42 }
       
    43 
       
    44 int SecCodeModel::pin2RemainingAttempts()
       
    45 {
       
    46 //    return d_ptr->pin2RemainingAttempts();
       
    47     return 3;
       
    48 }
       
    49 
       
    50 int SecCodeModel::changePinCode(const QString &oldCode,const QString &newCode,const QString &verifyCode)
       
    51 {
       
    52 	Q_UNUSED(oldCode);
       
    53 	Q_UNUSED(newCode);
       
    54 	Q_UNUSED(verifyCode);
       
    55     return 0;
       
    56 }
       
    57 
       
    58 int SecCodeModel::changePin2Code(const QString &oldCode,const QString &newCode,const QString &verifyCode)
       
    59 {
       
    60 	Q_UNUSED(oldCode);
       
    61 	Q_UNUSED(newCode);
       
    62 	Q_UNUSED(verifyCode);
       
    63 
       
    64     return 0;
       
    65 }