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