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 #include <../../inc/cpsecplugins.h> |
|
22 |
|
23 // Class declaration |
|
24 class SecCodeSettingsPrivate |
|
25 { |
|
26 public: |
|
27 SecCodeSettingsPrivate() |
|
28 { |
|
29 mSecCodeModel = new SecCodeModel(); |
|
30 } |
|
31 |
|
32 ~SecCodeSettingsPrivate() |
|
33 { |
|
34 delete mSecCodeModel; |
|
35 } |
|
36 |
|
37 SecCodeModel *mSecCodeModel; |
|
38 }; |
|
39 |
|
40 // ======== MEMBER FUNCTIONS ======== |
|
41 |
|
42 /*! |
|
43 Constructor |
|
44 */ |
|
45 SecCodeSettings::SecCodeSettings(QObject * parent /*= 0*/) |
|
46 : QObject(parent), d_ptr(new SecCodeSettingsPrivate()) |
|
47 { |
|
48 RDEBUG("0", 0); |
|
49 } |
|
50 |
|
51 /*! |
|
52 Destructor |
|
53 */ |
|
54 SecCodeSettings::~SecCodeSettings() |
|
55 { |
|
56 delete d_ptr; |
|
57 } |
|
58 |
|
59 /*! |
|
60 Get Pin Code Request |
|
61 */ |
|
62 bool SecCodeSettings::pinCodeRequest() const |
|
63 { |
|
64 RDEBUG("0", 0); |
|
65 return d_ptr->mSecCodeModel->pinCodeRequest(); |
|
66 } |
|
67 |
|
68 /*! |
|
69 Change Pin Code request |
|
70 */ |
|
71 bool SecCodeSettings::changePinCodeRequest() |
|
72 { |
|
73 RDEBUG("0", 0); |
|
74 return d_ptr->mSecCodeModel->changePinCodeRequest(); |
|
75 } |
|
76 |
|
77 /*! |
|
78 Change Pin Code |
|
79 */ |
|
80 void SecCodeSettings::changePinCode() |
|
81 { |
|
82 RDEBUG("0", 0); |
|
83 d_ptr->mSecCodeModel->changePinCode(); |
|
84 } |
|
85 |
|
86 /*! |
|
87 Change Pin2 Code |
|
88 */ |
|
89 void SecCodeSettings::changePin2Code() |
|
90 { |
|
91 RDEBUG("0", 0); |
|
92 d_ptr->mSecCodeModel->changePin2Code(); |
|
93 } |
|