|
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 * CNWProgrammableOperatorNameCommand class. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CNWPROGRAMMABLEOPERATORNAMECOMMAND_H |
|
22 #define CNWPROGRAMMABLEOPERATORNAMECOMMAND_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "NWHandlingEngine.h" |
|
26 #include <etelmm.h> |
|
27 #include <rmmcustomapi.h> |
|
28 |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Executes commands related to programmable operator logo. |
|
34 * |
|
35 * |
|
36 * @lib networkhandling.lib |
|
37 * @since Series 60_2.8 |
|
38 */ |
|
39 class CNWProgrammableOperatorNameCommand : public CActive |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * C++ default constructor. |
|
45 */ |
|
46 CNWProgrammableOperatorNameCommand( |
|
47 CNWMessageHandler& aOwner, |
|
48 RMmCustomAPI& aCustomAPI, |
|
49 TNWInfo& aNetworkInfo ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CNWProgrammableOperatorNameCommand(); |
|
55 |
|
56 public: // New functions |
|
57 |
|
58 /** |
|
59 * Starts async. Programmable Operator info query. |
|
60 */ |
|
61 void IssueRequest(); |
|
62 |
|
63 |
|
64 protected: // Functions from CActive |
|
65 /** |
|
66 * Cancels asyncronous request(s). |
|
67 * |
|
68 */ |
|
69 void DoCancel(); |
|
70 |
|
71 /** |
|
72 * Informs object that asyncronous request is ready. |
|
73 * |
|
74 */ |
|
75 void RunL(); |
|
76 |
|
77 private: // New functions |
|
78 |
|
79 /** |
|
80 * Update network info to the client's TNWInfo struct |
|
81 */ |
|
82 void UpdateNetworkInfo(); |
|
83 |
|
84 private: |
|
85 // CNWMessageHandler object that owns this object |
|
86 CNWMessageHandler& iOwner; |
|
87 // Reference to the Custom API connection |
|
88 RMmCustomAPI& iCustomAPI; |
|
89 // Reference to internal network info struct |
|
90 TNWInfo& iNetworkInfo; |
|
91 // Operator Name |
|
92 RMmCustomAPI::TOperatorNameInfo iOperatorName; |
|
93 }; |
|
94 |
|
95 #endif // CNWPROGRAMMABLEOPERATORNAMECOMMAND_H |
|
96 |
|
97 // End of File |