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 : CCNUMCommandHandler class declaration for AT+CNUM command
|
|
13 |
*
|
|
14 |
*/
|
|
15 |
|
|
16 |
#ifndef CNUMCOMMANDHANDLER_H
|
|
17 |
#define CNUMCOMMANDHANDLER_H
|
|
18 |
|
32
|
19 |
#include "atcmdasyncbase.h"
|
26
|
20 |
|
|
21 |
/**
|
|
22 |
* This class implements an AO for AT+CPIN command using ATExt plugin framework.
|
|
23 |
*/
|
|
24 |
NONSHARABLE_CLASS( CCNUMCommandHandler ) : public CATCmdAsyncBase
|
|
25 |
{
|
|
26 |
public:
|
|
27 |
/**
|
|
28 |
* @param aCallback is used to notfiy ATExt server to complete the AT command request.
|
|
29 |
*/
|
|
30 |
static CCNUMCommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser,
|
|
31 |
RMobilePhone& aPhone, RTelServer& aTelServer);
|
|
32 |
~CCNUMCommandHandler();
|
|
33 |
|
|
34 |
private:
|
|
35 |
// methods inherited from CActive
|
|
36 |
virtual void RunL();
|
|
37 |
virtual void DoCancel();
|
|
38 |
// RunError is not required because RunL doesn't leave.
|
|
39 |
|
32
|
40 |
// method from CATCmdAsyncBase::MATCmdBase
|
26
|
41 |
virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded );
|
|
42 |
|
|
43 |
CCNUMCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser,
|
|
44 |
RMobilePhone& aPhone, RTelServer& aTelServer);
|
|
45 |
void ConstructL();
|
|
46 |
|
|
47 |
private:
|
|
48 |
enum TATNumState
|
|
49 |
{
|
|
50 |
EATNumGetStoreInfo,
|
|
51 |
EATNumReadNumber
|
|
52 |
};
|
|
53 |
|
|
54 |
RTelServer& iTelServer;
|
|
55 |
TInt iPendingEvent;
|
|
56 |
|
|
57 |
RMobileONStore iOwnNumberStore;
|
|
58 |
RMobileONStore::TMobileONStoreInfoV1 iOwnStoreInfo;
|
|
59 |
RMobileONStore::TMobileONStoreInfoV1Pckg iOwnStoreInfoPckg;
|
|
60 |
RMobileONStore::TMobileONEntryV1 iOwnNumberEntry;
|
|
61 |
RMobileONStore::TMobileONEntryV1Pckg iOwnNumberEntryPckg;
|
|
62 |
RBuf8 iReplyBuffer;
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif /* CNUMCOMMANDHANDLER_H */
|