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 atgetmodel.h |
|
15 // This contains CATGetModel which is defines the AT command for Getting Model |
|
16 // |
|
17 |
|
18 #ifndef ATGETMODEL_H__ |
|
19 #define ATGETMODEL_H__ |
|
20 |
|
21 //system include |
|
22 #include <etelmm.h> |
|
23 //user include |
|
24 #include "atcommandbase.h" |
|
25 /** |
|
26 * \class CATGetModel |
|
27 * \brief get the phone Model in the GSM Network. |
|
28 * |
|
29 * CATGetModel inherits from the CAtCommandBase class. |
|
30 * This class transmits the AT+CGMM Command in order to get Serial Numuber |
|
31 * in the phone |
|
32 */ |
|
33 class CATGetModel : public CAtCommandBase |
|
34 { |
|
35 public: |
|
36 static CATGetModel* NewL(CGlobalPhonemanager& aGloblePhone, |
|
37 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
38 /** |
|
39 * Destructor |
|
40 * |
|
41 */ |
|
42 ~CATGetModel(); |
|
43 |
|
44 /** |
|
45 * Virtual function. Inherited from CAtCommandBase |
|
46 * Start Execute AT Command |
|
47 */ |
|
48 virtual void ExecuteCommand(); |
|
49 /** |
|
50 * Get the return value executed AT Command |
|
51 */ |
|
52 RMobilePhone::TMobilePhoneIdentityV1 GetPhoneModel(); |
|
53 /** |
|
54 * Get error value executed AT Command |
|
55 */ |
|
56 TInt GetErrorValue(); |
|
57 /** |
|
58 * Virtual function. Inherited from CAtCommandBase |
|
59 * @param aResponseBuf Line buf reading from baseband |
|
60 */ |
|
61 void ParseResponseL(const TDesC8& aResponseBuf); |
|
62 /** |
|
63 * Start this request |
|
64 */ |
|
65 virtual void StartRequest(); |
|
66 protected: |
|
67 /** |
|
68 * Constructor |
|
69 * |
|
70 * @param aGloblePhone |
|
71 * @param aCtsyDispatcherCallback |
|
72 */ |
|
73 CATGetModel(CGlobalPhonemanager& aGloblePhone, |
|
74 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
75 |
|
76 /** |
|
77 * 2nd Constructor |
|
78 */ |
|
79 void ConstructL(); |
|
80 private: |
|
81 /** |
|
82 * The return infomation is multi-word? |
|
83 */ |
|
84 TBool iMoreInfoFlag; |
|
85 /** |
|
86 * The return phone infomation of AT command executed |
|
87 */ |
|
88 RMobilePhone::TMobilePhoneIdentityV1 iPhoneId; |
|
89 /** |
|
90 * The return error value of AT command executed |
|
91 */ |
|
92 TInt iError; |
|
93 }; |
|
94 |
|
95 #endif // ATGETMODEL_H__ |
|