|
1 /* |
|
2 * Copyright (c) 2005-2006 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: SIM registration status publisher |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AISIMREGFAILPUBLISHER_H |
|
20 #define C_AISIMREGFAILPUBLISHER_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "hs_app_aidevicestatuspublisher.h" |
|
25 #include "hs_app_aidevicestatuscontentmodel.h" |
|
26 #include "hs_app_ainetworkinfoobserver.h" |
|
27 |
|
28 |
|
29 class MAiDeviceStatusContentObserver; |
|
30 class MAiPropertyExtension; |
|
31 class CAiNetworkInfoListener; |
|
32 |
|
33 /** |
|
34 * @ingroup group_devicestatusplugin |
|
35 * |
|
36 * Listens SIM Registration status and publishes data if SIM registration failed. |
|
37 * |
|
38 * @since S60 3.2 |
|
39 */ |
|
40 class CAiSimRegPublisher : public CBase, public MAiDeviceStatusPublisher, |
|
41 public MAiNetworkInfoObserver |
|
42 { |
|
43 public: |
|
44 |
|
45 static CAiSimRegPublisher* NewL(); |
|
46 |
|
47 virtual ~CAiSimRegPublisher(); |
|
48 |
|
49 // from base class MAiDeviceStatusPublisher |
|
50 |
|
51 void ResumeL(); |
|
52 void Subscribe( MAiContentObserver& aObserver, |
|
53 MAiPropertyExtension& aExtension, |
|
54 MAiPublishPrioritizer& aPrioritizer, |
|
55 MAiPublisherBroadcaster& aBroadcaster ); |
|
56 void RefreshL( TBool aClean ); |
|
57 TBool RefreshL( TInt aContentId, TBool aClean ); |
|
58 |
|
59 protected: |
|
60 |
|
61 //from base class MAiNetworkInfoObserver |
|
62 |
|
63 void HandleNetworkInfoChange( const MNWMessageObserver::TNWMessages& aMessage, |
|
64 const TNWInfo& aInfo, |
|
65 const TBool aShowOpInd ); |
|
66 |
|
67 |
|
68 private: |
|
69 |
|
70 CAiSimRegPublisher(); |
|
71 |
|
72 void ConstructL(); |
|
73 |
|
74 |
|
75 private: // data |
|
76 |
|
77 /** |
|
78 * Content observer. |
|
79 * Not own. |
|
80 */ |
|
81 MAiContentObserver* iContentObserver; |
|
82 |
|
83 /** |
|
84 * Property extension. |
|
85 * Not own. |
|
86 */ |
|
87 MAiPropertyExtension* iExtension; |
|
88 |
|
89 /** |
|
90 * Network info listener. |
|
91 * Own. |
|
92 */ |
|
93 CAiNetworkInfoListener* iListener; |
|
94 }; |
|
95 |
|
96 |
|
97 #endif // C_AISIMREGFAILPUBLISHER_H |