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