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