|
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 |
|
22 #include "atmisccmdplugin.h" |
|
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 |
|
38 private: // methods from CATCmdAsyncBase |
|
39 virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded ); |
|
40 virtual void HandleCommandCancel(); |
|
41 |
|
42 private: |
|
43 CCBCCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone); |
|
44 void ConstructL(); |
|
45 |
|
46 private: |
|
47 RBuf8 iReply; |
|
48 |
|
49 RMobilePhone::TMobilePhoneBatteryInfoV1 iBatteryInfo; |
|
50 }; |
|
51 |
|
52 #endif /* CBCCOMMANDHANDLER_H */ |