|
1 /* |
|
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file contains the header file of the |
|
15 * CNWServiceProviderNameCommand class. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CNWSERVICEPROVIDERNAMECOMMAND_H |
|
22 #define CNWSERVICEPROVIDERNAMECOMMAND_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <etelmm.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CNWMessageHandler; |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Executes commands related to programmable operator logo. |
|
36 * |
|
37 * |
|
38 * @lib networkhandling.lib |
|
39 * @since Series 60_2.8 |
|
40 */ |
|
41 class CNWServiceProviderNameCommand : public CActive |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * C++ default constructor. |
|
47 */ |
|
48 CNWServiceProviderNameCommand( |
|
49 CNWMessageHandler& aOwner, |
|
50 RMobilePhone& aPhone, |
|
51 TNWInfo& aNetworkInfo ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CNWServiceProviderNameCommand(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 /** |
|
61 * Starts async. Service provider name query. |
|
62 */ |
|
63 void IssueRequest(); |
|
64 |
|
65 /** |
|
66 * Sets allow send message. If refresh is ongoing boolean gets EFalse otherwise value is ETrue |
|
67 */ |
|
68 void SetAllowSendMessage( TBool aAllowSending ); |
|
69 |
|
70 private: |
|
71 |
|
72 /** |
|
73 * Updates MMEtel Service Provider Name types to PE types. |
|
74 */ |
|
75 void UpdateNetworkInfo(); |
|
76 |
|
77 protected: // Functions from CActive |
|
78 |
|
79 /** |
|
80 * Cancels asyncronous request(s). |
|
81 */ |
|
82 void DoCancel(); |
|
83 |
|
84 /** |
|
85 * Informs object that asyncronous request is ready. |
|
86 */ |
|
87 void RunL(); |
|
88 |
|
89 private: |
|
90 // CNWMessageHandler object that owns this object |
|
91 CNWMessageHandler& iOwner; |
|
92 // Reference to the MMETel phone connection |
|
93 RMobilePhone& iPhone; |
|
94 // Reference to network info struct |
|
95 TNWInfo& iNWNetworkInfo; |
|
96 // Service Provider Name |
|
97 RMobilePhone::TMobilePhoneServiceProviderNameV2 iParamServiceProviderName; |
|
98 // Service Provider Name package . |
|
99 RMobilePhone::TMobilePhoneServiceProviderNameV2Pckg iServiceProviderNamePckg; |
|
100 // Allow ServiceProvidernameChange message to be sent |
|
101 TBool iAllowSending; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // CNWSERVICEPROVIDERNAMECOMMAND_H |
|
106 |
|
107 // End of File |