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 atgetsignalstrength.h |
|
15 // |
|
16 |
|
17 /** |
|
18 * @file |
|
19 * |
|
20 * AT command definition |
|
21 * This file defines the AT command for Getting Signal level |
|
22 * This queries the ME (Mobile Equipment) Signal level, |
|
23 * using a standard (ETSI GSM 07.07 April 1997) AT command : AT+CSQ? |
|
24 * |
|
25 */ |
|
26 |
|
27 #ifndef __CSIGNAL_H__ |
|
28 #define __CSIGNAL_H__ |
|
29 |
|
30 //system include |
|
31 #include <etelmm.h> |
|
32 //user include |
|
33 #include "atcommandbase.h" |
|
34 |
|
35 // forward class |
|
36 class MCallBackPhoneHander; |
|
37 /** |
|
38 * \class CATGetSignal |
|
39 * \brief get Modem status. |
|
40 * |
|
41 * CATGetSignal inherits from the CAtCommandBase class. |
|
42 * This class transmits the AT Command in order to get Getting Signal level |
|
43 * in the phone, using a standard AT command : AT+CSQ? |
|
44 */ |
|
45 class CATGetSignal : public CAtCommandBase |
|
46 { |
|
47 public: |
|
48 static CATGetSignal* NewL(CGlobalPhonemanager& aGloblePhone, |
|
49 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 * |
|
54 */ |
|
55 ~CATGetSignal(); |
|
56 |
|
57 /** |
|
58 * Virtual function. Inherited from CAtCommandBase |
|
59 * Start Execute AT Command |
|
60 */ |
|
61 virtual void ExecuteCommand(); |
|
62 /** |
|
63 * Get network signal information of phone |
|
64 */ |
|
65 TTsySignalInfo getSignalInfo(); |
|
66 /** |
|
67 * Will be called by AT Manager whenever a event was triggered |
|
68 * |
|
69 * @param aEventSource |
|
70 * @param aStatus |
|
71 */ |
|
72 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
73 /** |
|
74 * Virtual function. Inherited from CAtCommandBase |
|
75 * @param aResponseBuf Line buf reading from baseband |
|
76 */ |
|
77 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
78 /** |
|
79 * The return error value of AT command executed |
|
80 */ |
|
81 TInt GetErrorValue(); |
|
82 /** |
|
83 * Start this request |
|
84 */ |
|
85 virtual void StartRequest(); |
|
86 |
|
87 protected: |
|
88 /** |
|
89 * Constructor |
|
90 * |
|
91 * @param aGloblePhone |
|
92 * @param aCtsyDispatcherCallback |
|
93 */ |
|
94 CATGetSignal(CGlobalPhonemanager& aGloblePhone, |
|
95 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
96 /** |
|
97 * 2nd Constructor |
|
98 */ |
|
99 void ConstructL(); |
|
100 |
|
101 private: |
|
102 TTsySignalInfo iSignalInfo; |
|
103 TInt iError; |
|
104 }; |
|
105 #endif |
|