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