author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 21:55:16 +0300 | |
branch | RCL_3 |
changeset 31 | 8baec10861af |
parent 30 | a5a39a295112 |
permissions | -rw-r--r-- |
30 | 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 |
// System includes |
|
23 |
#include <e32base.h> |
|
24 |
#include <aidevicestatuscontentmodel.h> |
|
25 |
||
26 |
// User includes |
|
27 |
#include "aidevicestatuspublisher.h" |
|
28 |
#include "ainetworkinfoobserver.h" |
|
29 |
||
30 |
// Forward declarations |
|
31 |
class MAiDeviceStatusContentObserver; |
|
32 |
class CHsContentPublisher; |
|
33 |
class CAiNetworkInfoListener; |
|
34 |
||
35 |
/** |
|
36 |
* @ingroup group_devicestatusplugin |
|
37 |
* |
|
38 |
* Micro Cellular Network (MCN) publisher. |
|
39 |
* |
|
40 |
* This publisher listens network info changes and publishes |
|
41 |
* received MCN messages. |
|
42 |
* |
|
43 |
* @since S60 3.2 |
|
44 |
*/ |
|
45 |
NONSHARABLE_CLASS( CAiMCNPublisher ) : public CBase, |
|
46 |
public MAiDeviceStatusPublisher, |
|
47 |
public MAiNetworkInfoObserver |
|
48 |
{ |
|
49 |
public: |
|
50 |
||
51 |
static CAiMCNPublisher* NewL(); |
|
52 |
||
53 |
virtual ~CAiMCNPublisher(); |
|
54 |
||
55 |
protected: |
|
56 |
||
57 |
// from base class MAiDeviceStatusPublisher |
|
58 |
||
59 |
void ResumeL(); |
|
60 |
void Subscribe( MAiContentObserver& aObserver, |
|
61 |
CHsContentPublisher& aExtension, |
|
62 |
MAiPublishPrioritizer& aPrioritizer, |
|
63 |
MAiPublisherBroadcaster& aBroadcaster ); |
|
64 |
void RefreshL( TBool aClean ); |
|
65 |
TBool RefreshL( TInt aContentId, TBool aClean ); |
|
66 |
||
67 |
||
68 |
//from base class MAiNetworkInfoObserver |
|
69 |
||
70 |
void HandleNetworkInfoChange( const MNWMessageObserver::TNWMessages& aMessage, |
|
71 |
const TNWInfo& aInfo, |
|
72 |
const TBool aShowOpInd ); |
|
73 |
||
74 |
||
75 |
private: |
|
76 |
||
77 |
CAiMCNPublisher(); |
|
78 |
||
79 |
void ConstructL(); |
|
80 |
||
81 |
private: // data |
|
82 |
||
83 |
||
84 |
/** |
|
85 |
* Content observer. |
|
86 |
* Not own. |
|
87 |
*/ |
|
88 |
MAiContentObserver* iContentObserver; |
|
89 |
||
90 |
/** |
|
91 |
* Property extension. |
|
92 |
* Not own. |
|
93 |
*/ |
|
94 |
CHsContentPublisher* iExtension; |
|
95 |
||
96 |
/** |
|
97 |
* Network info listener. |
|
98 |
* Own. |
|
99 |
*/ |
|
100 |
CAiNetworkInfoListener* iListener; |
|
31
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
101 |
|
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
102 |
/** |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
103 |
* MCN info to show |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
104 |
*/ |
8baec10861af
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
105 |
TNWMCNName iMCNName; |
30 | 106 |
}; |
107 |
||
108 |
||
109 |
#endif // C_AIMCNPUBLISHER_H |