26
|
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 : CPwdCommandHandler class declaration for AT+CPWD command
|
|
13 |
*
|
|
14 |
*/
|
|
15 |
|
|
16 |
|
|
17 |
#ifndef CPWDCOMMANDHANDLER_H
|
|
18 |
#define CPWDCOMMANDHANDLER_H
|
|
19 |
#include <e32base.h>
|
|
20 |
#include <etelmm.h>
|
|
21 |
|
32
|
22 |
#include "atcmdasyncbase.h"
|
26
|
23 |
|
|
24 |
/**
|
|
25 |
* This class implements an AO for AT+CPWD command using ATExt plugin framework.
|
|
26 |
*/
|
|
27 |
NONSHARABLE_CLASS( CCPWDCommandHandler ) : public CATCmdAsyncBase
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
/**
|
|
31 |
* @param aCallback is used to notfiy ATExt server to complete the AT command request.
|
|
32 |
*/
|
|
33 |
static CCPWDCommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
|
|
34 |
~CCPWDCommandHandler();
|
|
35 |
|
|
36 |
private:
|
|
37 |
// methods inherited from CActive
|
|
38 |
virtual void RunL();
|
|
39 |
virtual void DoCancel();
|
|
40 |
// RunError is not required because RunL doesn't leave.
|
|
41 |
|
32
|
42 |
// method from CATCmdAsyncBase::MATCmdBase
|
26
|
43 |
virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded );
|
|
44 |
|
|
45 |
CCPWDCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
|
|
46 |
void ConstructL();
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Change password according to AT command arguments
|
|
50 |
*/
|
|
51 |
void ChangePassword();
|
|
52 |
|
|
53 |
/**
|
|
54 |
* request Etel server to change password and active the AO
|
|
55 |
* @param aType type of password to be changed
|
|
56 |
* @param aOldPassword old password
|
|
57 |
* @param aNewPassword new password
|
|
58 |
*/
|
|
59 |
void ChangeSecurityCode(RMobilePhone::TMobilePhoneSecurityCode aType, TDesC8& aOldPassword, TDesC8& aNewPassword);
|
|
60 |
|
|
61 |
private:
|
|
62 |
TInt iPendingEvent;
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif /* CPWDCOMMANDHANDLER_H */
|