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: Implements simcontrol key sequence handling. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SIMCONTROLKEYSEQUENCEHANDLER_H |
|
19 #define SIMCONTROLKEYSEQUENCEHANDLER_H |
|
20 |
|
21 #include "keysequencehandler.h" |
|
22 |
|
23 class CManualSecuritySettings; |
|
24 |
|
25 class SimControlKeySequenceHandler : public KeySequenceHandler |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 |
|
31 SimControlKeySequenceHandler(QObject *parent = 0); |
|
32 ~SimControlKeySequenceHandler(); |
|
33 |
|
34 bool executeKeySequence(const QString &keySequence); |
|
35 |
|
36 enum SimOperation |
|
37 { |
|
38 None, |
|
39 Pin1, |
|
40 Pin2, |
|
41 Unblock1, |
|
42 Unblock2 |
|
43 }; |
|
44 |
|
45 private: |
|
46 |
|
47 bool parseString(const QString &keySequence); |
|
48 void processChangePin( |
|
49 SimOperation op, |
|
50 const QString &oldPin, |
|
51 const QString &newPin, |
|
52 const QString &verifyNew); |
|
53 |
|
54 void processUnblockPin( |
|
55 SimOperation op, |
|
56 const QString &puk, |
|
57 const QString &newPin, |
|
58 const QString &verifyNew); |
|
59 |
|
60 private: |
|
61 CManualSecuritySettings* m_securityModel; |
|
62 }; |
|
63 |
|
64 #endif // SIMCONTROLKEYSEQUENCEHANDLER_H |
|