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 |
*
|
|
13 |
* Description :
|
|
14 |
*
|
|
15 |
* CCBCCommandHandler class declaration for AT+CBC command
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef CBCCOMMANDHANDLER_H
|
|
20 |
#define CBCCOMMANDHANDLER_H
|
|
21 |
|
32
|
22 |
#include "atcmdasyncbase.h"
|
26
|
23 |
|
|
24 |
/**
|
|
25 |
* AT+CBC command handler implementation class
|
|
26 |
*/
|
|
27 |
NONSHARABLE_CLASS( CCBCCommandHandler ) : public CATCmdAsyncBase
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
static CCBCCommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
|
|
31 |
~CCBCCommandHandler();
|
|
32 |
|
|
33 |
private: // methods from CActive
|
|
34 |
virtual void RunL();
|
|
35 |
virtual void DoCancel();
|
|
36 |
// RunError not needed as RunL does not leave
|
|
37 |
|
32
|
38 |
private: // method from CATCmdAsyncBase::MATCmdBase
|
26
|
39 |
virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded );
|
|
40 |
|
|
41 |
private:
|
|
42 |
CCBCCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
|
|
43 |
void ConstructL();
|
|
44 |
|
|
45 |
private:
|
|
46 |
RBuf8 iReply;
|
|
47 |
|
|
48 |
RMobilePhone::TMobilePhoneBatteryInfoV1 iBatteryInfo;
|
|
49 |
};
|
|
50 |
|
|
51 |
#endif /* CBCCOMMANDHANDLER_H */
|