|
1 /* |
|
2 * Copyright (c) 2008 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 |
|
15 * CIAUpdateNetworkRegistration class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __IAUPDATE_NETWORK_REGISTRATION_H__ |
|
21 #define __IAUPDATE_NETWORK_REGISTRATION_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <etel3rdparty.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MIAUpdateNetworkRegistrationObserver; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * |
|
33 */ |
|
34 |
|
35 class CIAUpdateNetworkRegistration : public CActive |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Construct a CIAUpdateNetworkRegistration using two phase construction, |
|
41 * and return a pointer to the created object |
|
42 * @param aObserver Observer interface to be called when |
|
43 * network registration status monitoring is completed |
|
44 */ |
|
45 IMPORT_C static CIAUpdateNetworkRegistration* NewL( |
|
46 MIAUpdateNetworkRegistrationObserver& aObserver ); |
|
47 |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~CIAUpdateNetworkRegistration(); |
|
53 |
|
54 public: // new functions |
|
55 /** |
|
56 * Starts monitoring |
|
57 */ |
|
58 IMPORT_C void StartMonitoringL(); |
|
59 |
|
60 private: // from CActive |
|
61 |
|
62 /** |
|
63 * Cancels async network registration status monitoring |
|
64 * @see CActive::DoCancel |
|
65 * |
|
66 */ |
|
67 void DoCancel(); |
|
68 |
|
69 /** |
|
70 * When the server side has finished operation, the CActive object will |
|
71 * be informed about it, and as a result RunL will be called. This function |
|
72 * well inform the observer that the operation has been completed. |
|
73 * @see CActive::RunL |
|
74 * |
|
75 */ |
|
76 void RunL(); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * Perform the second phase construction of a CIAUpdateNetworkRegistration object |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 /** |
|
86 * C++ constructor |
|
87 * |
|
88 * @param aObserver Observer interface to be called when |
|
89 * network registration status monitoring is completed |
|
90 */ |
|
91 CIAUpdateNetworkRegistration( MIAUpdateNetworkRegistrationObserver& aObserver ); |
|
92 |
|
93 private: //data |
|
94 |
|
95 CTelephony* iTelephony; |
|
96 |
|
97 CTelephony::TNetworkRegistrationV1* iNetReg; |
|
98 |
|
99 CTelephony::TNetworkRegistrationV1Pckg* iNetRegPkg; |
|
100 |
|
101 MIAUpdateNetworkRegistrationObserver* iObserver; //not owned |
|
102 }; |
|
103 |
|
104 |
|
105 #endif // __IAUPDATE_NETWORK_REGISTRATION_H__ |