|
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 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * Description : CCPIMCommandHandler class declaration for AT+CPIN command |
|
13 * |
|
14 */ |
|
15 |
|
16 #ifndef CPINCOMMANDHANDLER_H |
|
17 #define CPINCOMMANDHANDLER_H |
|
18 |
|
19 #include "atmisccmdplugin.h" |
|
20 |
|
21 /** |
|
22 * This class implements an AO for AT+CPIN command using ATExt plugin framework. |
|
23 */ |
|
24 NONSHARABLE_CLASS( CCPINCommandHandler ) : public CATCmdAsyncBase |
|
25 { |
|
26 public: |
|
27 /** |
|
28 * @param aCallback is used to notfiy ATExt server to complete the AT command request. |
|
29 */ |
|
30 static CCPINCommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone); |
|
31 ~CCPINCommandHandler(); |
|
32 |
|
33 private: |
|
34 // Methods inherited from CActive |
|
35 virtual void RunL(); |
|
36 virtual void DoCancel(); |
|
37 // RunError is not required because RunL doesn't leave. |
|
38 |
|
39 /** |
|
40 * @see CATCmdAsyncBase::HandleCommand |
|
41 */ |
|
42 virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded ); |
|
43 /** |
|
44 * @see CATCmdAsyncBase::HandleCommandCancel |
|
45 */ |
|
46 virtual void HandleCommandCancel(); |
|
47 |
|
48 CCPINCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone); |
|
49 void ConstructL(); |
|
50 |
|
51 /** |
|
52 * Handle status change event for RMobilePhone::GetLockInfo method |
|
53 */ |
|
54 void HandleGetLockInfo(); |
|
55 /** |
|
56 * Handle status change event for RMobilePhone::HandleVerifySecurityCode method |
|
57 */ |
|
58 void HandleVerifySecurityCode(); |
|
59 /** |
|
60 * Change SIM PIN with PUK code |
|
61 */ |
|
62 void ChangePassword(); |
|
63 |
|
64 private: |
|
65 |
|
66 RMobilePhone::TMobilePhoneLockInfoV1 iLockInfo; |
|
67 RMobilePhone::TMobilePhoneLockInfoV1Pckg iLockInfoPckg; |
|
68 |
|
69 TInt iPendingEvent; |
|
70 }; |
|
71 |
|
72 |
|
73 #endif /* CPINCOMMANDHANDLER_H */ |