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 * CGMICommandHandler class declaration for AT+CGMI command |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef CGMICOMMANDHANDLER_H |
|
20 #define CGMICOMMANDHANDLER_H |
|
21 |
|
22 #include "atcmdsyncbase.h" |
|
23 |
|
24 #include <etel3rdparty.h> |
|
25 |
|
26 /** |
|
27 * AT+CGMI command handler implementation class |
|
28 */ |
|
29 NONSHARABLE_CLASS( CCGMICommandHandler ) : public CATCmdSyncBase |
|
30 { |
|
31 public: |
|
32 static CCGMICommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone); |
|
33 ~CCGMICommandHandler(); |
|
34 |
|
35 public: |
|
36 void SetManufacturer(const TDesC8& aManufacturer); |
|
37 void SetTelephonyError(TInt aTelError); |
|
38 |
|
39 private: // methods from CATCmdSyncBase |
|
40 virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded ); |
|
41 |
|
42 private: |
|
43 CCGMICommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone); |
|
44 void ConstructL(); |
|
45 |
|
46 private: |
|
47 TInt iTelError; |
|
48 TBuf8<CTelephony::KPhoneManufacturerIdSize> iManufacturer; |
|
49 |
|
50 RBuf8 iReply; |
|
51 }; |
|
52 |
|
53 #endif /* CGMICOMMANDHANDLER_H */ |
|