1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file atgetrevision.h |
|
15 // This contains CATGprsAttach which is defines the AT command for retrieving the |
|
16 // protocol stack revision being used. |
|
17 |
|
18 |
|
19 #ifndef ATGETREVISION_H__ |
|
20 #define ATGETREVISION_H__ |
|
21 |
|
22 //system include |
|
23 #include <etelmm.h> |
|
24 //user include |
|
25 #include "atcommandbase.h" |
|
26 /** |
|
27 * \class CATGetRevision |
|
28 * \brief retrieving the protocol stack revision being used. |
|
29 * |
|
30 * CATGetRevision inherits from the CAtCommandBase class. |
|
31 * This class transmits the AT+CGMR Command in order to the protocol |
|
32 * stack revision being used |
|
33 * |
|
34 */ |
|
35 class CATGetRevision : public CAtCommandBase |
|
36 { |
|
37 public: |
|
38 static CATGetRevision* NewL(CGlobalPhonemanager& aGloblePhone, |
|
39 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 * |
|
44 */ |
|
45 ~CATGetRevision(); |
|
46 |
|
47 /** |
|
48 * Virtual function. Inherited from CAtCommandBase |
|
49 * Start Execute AT Command |
|
50 */ |
|
51 virtual void ExecuteCommand(); |
|
52 /** |
|
53 * Get the return value executed AT Command |
|
54 */ |
|
55 RMobilePhone::TMobilePhoneIdentityV1 GetPhoneRevision(); |
|
56 /** |
|
57 * Get error value executed AT Command |
|
58 */ |
|
59 TInt GetErrorValue(); |
|
60 /** |
|
61 * Virtual function. Inherited from CAtCommandBase |
|
62 * @param aResponseBuf Line buf reading from baseband |
|
63 */ |
|
64 void ParseResponseL(const TDesC8& aResponseBuf); |
|
65 /** |
|
66 * Start this request |
|
67 */ |
|
68 virtual void StartRequest(); |
|
69 |
|
70 protected: |
|
71 /** |
|
72 * Constructor |
|
73 * |
|
74 * @param aGloblePhone |
|
75 * @param aCtsyDispatcherCallback |
|
76 */ |
|
77 CATGetRevision(CGlobalPhonemanager& aGloblePhone, |
|
78 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
79 /** |
|
80 * 2nd Constructor |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 private: |
|
85 /** |
|
86 * The return infomation is multi-word? |
|
87 */ |
|
88 TBool iMoreInfoFlag; |
|
89 /** |
|
90 * The return phone infomation of AT command executed |
|
91 */ |
|
92 RMobilePhone::TMobilePhoneIdentityV1 iPhoneId; |
|
93 /** |
|
94 * The return error value of AT command executed |
|
95 */ |
|
96 TInt iError; |
|
97 }; |
|
98 |
|
99 #endif // ATGETREVISION_H__ |
|