|
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 atselectnetwork.h |
|
15 //This file defines the AT command for Selecting Network |
|
16 |
|
17 #ifndef __CATSELECTNETWORK_H__ |
|
18 #define __CATSELECTNETWORK_H__ |
|
19 |
|
20 //user include |
|
21 #include "atcommandbase.h" |
|
22 |
|
23 /** |
|
24 * class CATSelectNetwork |
|
25 * |
|
26 * CATSelectNetwork inherits from the CAtCommandBase class. |
|
27 * This class transmits the AT+COPS=1,2,x Command in order to |
|
28 * Select Network |
|
29 */ |
|
30 class CATSelectNetwork : public CAtCommandBase |
|
31 { |
|
32 public: |
|
33 static CATSelectNetwork* NewL(CGlobalPhonemanager& aGloblePhone, |
|
34 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
35 /** |
|
36 * Destructor |
|
37 * |
|
38 */ |
|
39 ~CATSelectNetwork(); |
|
40 |
|
41 /** |
|
42 * Virtual function. Inherited from CAtCommandBase |
|
43 * Start Execute AT Command |
|
44 */ |
|
45 virtual void ExecuteCommand(); |
|
46 /** |
|
47 * Virtual function. Inherited from CAtCommandBase |
|
48 * Cancel the AT Command execution |
|
49 */ |
|
50 virtual void CancelCommand(); |
|
51 |
|
52 virtual void StartRequest(); |
|
53 /** |
|
54 * Virtual function. Inherited from CAtCommandBase |
|
55 * @param aResponseBuf Line buf reading from baseband |
|
56 */ |
|
57 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
58 /** |
|
59 * Will be called by AT Manager whenever a event was triggered |
|
60 * |
|
61 * @param aEventSource |
|
62 * @param aStatus |
|
63 */ |
|
64 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
65 |
|
66 void SetNetworkSelection(const RMobilePhone::TMobilePhoneNetworkManualSelection& aNetworkManualSelection); |
|
67 public: |
|
68 TBool iCommandRunning; |
|
69 TBool iCommandCancel; |
|
70 TBool iCommandSetBack; |
|
71 protected: |
|
72 /** |
|
73 * Constructor |
|
74 * |
|
75 * @param aGloblePhone |
|
76 * @param aCtsyDispatcherCallback |
|
77 */ |
|
78 CATSelectNetwork(CGlobalPhonemanager& aGloblePhone, |
|
79 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
80 /** |
|
81 * 2nd Constructor |
|
82 */ |
|
83 void ConstructL(); |
|
84 /** |
|
85 * |
|
86 */ |
|
87 void ExecuteSetBackCommand(); |
|
88 |
|
89 private: |
|
90 TInt iError; |
|
91 RMobilePhone::TMobilePhoneNetworkManualSelection iNetworkManualSelection; |
|
92 }; |
|
93 #endif |