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 getoperatorname.h |
|
15 // |
|
16 |
|
17 #ifndef __GETOPERATORNAME_H__ |
|
18 #define __GETOPERATORNAME_H__ |
|
19 |
|
20 //user include |
|
21 #include "atcommandcontrolbase.h" |
|
22 #include "athelpercommand.h" |
|
23 |
|
24 // forward class |
|
25 class CATNetworkInfo; |
|
26 class CATHelperCommand; |
|
27 |
|
28 /** |
|
29 * CGetOperatorNmae inherits from the CATCommandControlBase class. |
|
30 * |
|
31 */ |
|
32 class CGetOperatorNmae : public CATCommandControlBase |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Two-phased constructor. |
|
37 * @param aGloblePhone |
|
38 * @param aCtsyDispatcherCallback |
|
39 */ |
|
40 static CGetOperatorNmae* NewL(CGlobalPhonemanager& aGloblePhone, |
|
41 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
42 /** |
|
43 * Destructor |
|
44 * |
|
45 */ |
|
46 ~CGetOperatorNmae(); |
|
47 virtual void AtCommandExecuteComplete(TAtEventSource aEventSource, TInt aStatus); |
|
48 void StartRequest(); |
|
49 void SetRequestTypeL(TInt aIpc); |
|
50 |
|
51 protected: |
|
52 /** |
|
53 * Constructor |
|
54 * |
|
55 * @param aGloblePhone |
|
56 * @param aCtsyDispatcherCallback |
|
57 */ |
|
58 CGetOperatorNmae(CGlobalPhonemanager& aGloblePhone, |
|
59 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
60 /** |
|
61 * 2nd Constructor |
|
62 */ |
|
63 void ConstructL(); |
|
64 |
|
65 private: |
|
66 void StartATCommand(CAtCommandBase* aAtCommand); |
|
67 void EndATCommand(CAtCommandBase* aAtCommand); |
|
68 void SetOperFormatComplete(const TInt aError); |
|
69 void CtsyDispatcherCallBack(const TInt aError); |
|
70 private: |
|
71 CATNetworkInfo* iATNetworkInfo; |
|
72 CATHelperCommand* iATHelperCommand; |
|
73 RMobilePhone::TMobilePhoneNetworkInfoV5 iNetworkInfo; |
|
74 TInt iError; |
|
75 TInt iRequestIpc; |
|
76 TLtsyATCommandType iATType; |
|
77 enum |
|
78 { |
|
79 EATNone, |
|
80 EATNetworkInfo, |
|
81 EATSimpleCommand |
|
82 } iATCommandName; |
|
83 |
|
84 }; |
|
85 #endif //__GETOPERATORNAME_H__ |
|