|
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 atdetectnetwork.h |
|
15 // This contains CATDetectNetwork which is describes the GSM Network & Operator information. |
|
16 // |
|
17 #ifndef __ATDETECTNETWORK_H__ |
|
18 #define __ATDETECTNETWORK_H__ |
|
19 |
|
20 #include <mmlist.h> |
|
21 //User include |
|
22 #include "atcommandbase.h" |
|
23 |
|
24 |
|
25 /** |
|
26 * CATDetectNetwork inherits from the CAtCommandBase class. |
|
27 * brief Determines the Operators present in the GSM Network. |
|
28 * This class transmits the AT+COPS=? Command in order to determine all the Operators |
|
29 * present in the GSM Network. |
|
30 * |
|
31 */ |
|
32 class CATDetectNetwork : public CAtCommandBase |
|
33 { |
|
34 public: |
|
35 static CATDetectNetwork* NewL(CGlobalPhonemanager& aGloblePhone, |
|
36 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
37 /** |
|
38 * Destructor |
|
39 * |
|
40 */ |
|
41 ~CATDetectNetwork(); |
|
42 |
|
43 /** |
|
44 * Virtual function. Inherited from CAtCommandBase |
|
45 * Start Execute AT Command |
|
46 */ |
|
47 virtual void ExecuteCommand(); |
|
48 /** |
|
49 * Virtual function. Inherited from CAtCommandBase |
|
50 * Cancel the AT Command execution |
|
51 */ |
|
52 virtual void CancelCommand(); |
|
53 /** |
|
54 * Start the request |
|
55 */ |
|
56 virtual void StartRequest(); |
|
57 /** |
|
58 * Virtual function. Inherited from CAtCommandBase |
|
59 * @param aResponseBuf Line buf reading from baseband |
|
60 */ |
|
61 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
62 /** |
|
63 * Will be called by AT Manager whenever a event was triggered |
|
64 * |
|
65 * @param aEventSource |
|
66 * @param aStatus |
|
67 */ |
|
68 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
69 protected: |
|
70 /** |
|
71 * Constructor |
|
72 * |
|
73 * @param aGloblePhone |
|
74 * @param aCtsyDispatcherCallback |
|
75 */ |
|
76 CATDetectNetwork(CGlobalPhonemanager& aGloblePhone, |
|
77 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
78 /** |
|
79 * 2nd Constructor |
|
80 */ |
|
81 void ConstructL(); |
|
82 public: |
|
83 /** |
|
84 * Detect Network Command is running? or not |
|
85 */ |
|
86 TBool iCommandRunning; |
|
87 /** |
|
88 * Detect Network Cancel Command is running? or not |
|
89 */ |
|
90 TBool iCommandCancel; |
|
91 private: |
|
92 /* |
|
93 * Returned all the Operators which present in the GSM Network. |
|
94 */ |
|
95 CMobilePhoneNetworkListV2* iList; |
|
96 /* |
|
97 * The return value of AT command executed |
|
98 */ |
|
99 TInt iError; |
|
100 }; |
|
101 |
|
102 #endif |