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 atgetphonecellinfo.h |
|
15 // This contains CATGetPhoneCellInfo which is defines the AT command for Getting Battery status |
|
16 // |
|
17 |
|
18 #ifndef __ATGETPHONECELLINFO_H__ |
|
19 #define __ATGETPHONECELLINFO_H__ |
|
20 |
|
21 //system include |
|
22 #include <etelmm.h> |
|
23 |
|
24 //user include |
|
25 #include "atcommandbase.h" |
|
26 |
|
27 // forward class |
|
28 |
|
29 /** |
|
30 * class CATGetPhoneCellInfo |
|
31 * brief Determines the Operators present in the GSM Network. |
|
32 * |
|
33 * CATGetPhoneCellInfo inherits from the CAtCommandBase class. |
|
34 * This class transmits the AT+COPS=? Command in order to get |
|
35 * Battery status in this phone |
|
36 */ |
|
37 class CATGetPhoneCellInfo : public CAtCommandBase |
|
38 { |
|
39 public: |
|
40 static CATGetPhoneCellInfo* NewL(CGlobalPhonemanager& aGloblePhone, |
|
41 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 * |
|
46 */ |
|
47 ~CATGetPhoneCellInfo(); |
|
48 |
|
49 /** |
|
50 * Virtual function. Inherited from CAtCommandBase |
|
51 * Start Execute AT Command |
|
52 */ |
|
53 virtual void ExecuteCommand(); |
|
54 /** |
|
55 * Will be called by AT Manager whenever a event was triggered |
|
56 * |
|
57 * @param aEventSource |
|
58 * @param aStatus |
|
59 */ |
|
60 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
61 /** |
|
62 * Virtual function. Inherited from CAtCommandBase |
|
63 * @param aResponseBuf Line buf reading from baseband |
|
64 */ |
|
65 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
66 |
|
67 /** |
|
68 * Start this request |
|
69 */ |
|
70 virtual void StartRequest(); |
|
71 |
|
72 protected: |
|
73 /** |
|
74 * Constructor |
|
75 * |
|
76 * @param aGloblePhone |
|
77 * @param aCtsyDispatcherCallback |
|
78 */ |
|
79 CATGetPhoneCellInfo(CGlobalPhonemanager& aGloblePhone, |
|
80 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
81 /** |
|
82 * 2nd Constructor |
|
83 */ |
|
84 void ConstructL(); |
|
85 |
|
86 private: |
|
87 /* |
|
88 * The return battery infomation of AT command executed |
|
89 */ |
|
90 RMobilePhone::TMobilePhoneCellInfoV9 iCellInfo; |
|
91 |
|
92 /** |
|
93 * Store the error code |
|
94 */ |
|
95 TInt iError; |
|
96 }; |
|
97 #endif //__ATGETPHONECELLINFO_H__ |
|