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 atgetmanufacturer.h |
|
15 // This contains CATGetManufacturer which is defines the AT command for Getting manufacturer |
|
16 // |
|
17 |
|
18 #ifndef ATGETMANUFACTURER_H__ |
|
19 #define ATGETMANUFACTURER_H__ |
|
20 |
|
21 //system include |
|
22 #include <etelmm.h> |
|
23 //user include |
|
24 #include "atcommandbase.h" |
|
25 /** |
|
26 * \class CATGetManufacturer |
|
27 * \brief get the phone manufacturer in the GSM Network. |
|
28 * |
|
29 * CATGetManufacturer inherits from the CAtCommandBase class. |
|
30 * This class transmits the AT+CGMI Command in order to get manufacturer |
|
31 * in the phone. |
|
32 */ |
|
33 class CATGetManufacturer : public CAtCommandBase |
|
34 { |
|
35 public: |
|
36 static CATGetManufacturer* NewL(CGlobalPhonemanager& aGloblePhone, |
|
37 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
38 /** |
|
39 * Destructor |
|
40 * |
|
41 */ |
|
42 ~CATGetManufacturer(); |
|
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 GetPhoneManufacturer(); |
|
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 CATGetManufacturer(CGlobalPhonemanager& aGloblePhone, |
|
74 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
75 /** |
|
76 * 2nd Constructor |
|
77 */ |
|
78 void ConstructL(); |
|
79 private: |
|
80 /** |
|
81 * The return infomation is multi-word? |
|
82 */ |
|
83 TBool iMoreInfoFlag; |
|
84 /** |
|
85 * The return phone infomation of AT command executed |
|
86 */ |
|
87 RMobilePhone::TMobilePhoneIdentityV1 iPhoneId; |
|
88 /** |
|
89 * The return error value of AT command executed |
|
90 */ |
|
91 TInt iError; |
|
92 }; |
|
93 #endif // ATGETMANUFACTURER_H__ |
|