24 #include "OfflineWlanNoteNotif.h" |
24 #include "OfflineWlanNoteNotif.h" |
25 #include "OfflineWlanDisabledNoteNotif.h" |
25 #include "OfflineWlanDisabledNoteNotif.h" |
26 #include "EasyWepDlgNotif.h" |
26 #include "EasyWepDlgNotif.h" |
27 #include "EasyWpaDlgNotif.h" |
27 #include "EasyWpaDlgNotif.h" |
28 #include "WLANNetworkUnavailableNoteNotif.h" |
28 #include "WLANNetworkUnavailableNoteNotif.h" |
29 #include "wlanpowersavetestnotif.h" |
29 #include "ConfirmationQueryNotif.h" |
|
30 #include "ConnectViaNoteNotif.h" |
30 #include "easywapidlgnotif.h" |
31 #include "easywapidlgnotif.h" |
31 #include "cellulardataconfirmation.h" |
32 #include "nowlannetworksavailablenotif.h" |
|
33 #include "connectingviadiscreetpopupnotif.h" |
|
34 #include "connectionerrordiscreetpopupnotif.h" |
32 |
35 |
33 // CONSTANTS |
36 // CONSTANTS |
34 |
37 |
35 LOCAL_D const TInt KPluginGranularity = 4; |
38 LOCAL_D const TInt KPluginGranularity = 4; |
36 |
39 |
44 // Lib main entry point |
47 // Lib main entry point |
45 // --------------------------------------------------------- |
48 // --------------------------------------------------------- |
46 // |
49 // |
47 EXPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray() |
50 EXPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray() |
48 { |
51 { |
49 CArrayPtrFlat<MEikSrvNotifierBase2>* array = NULL; |
52 CArrayPtrFlat<MEikSrvNotifierBase2>* array = new (ELeave) |
50 TRAP_IGNORE( array = new (ELeave) |
53 CArrayPtrFlat<MEikSrvNotifierBase2>( KPluginGranularity ); |
51 CArrayPtrFlat<MEikSrvNotifierBase2>( KPluginGranularity ); ) |
|
52 |
54 |
53 if ( array ) |
55 if ( array ) |
54 { |
56 { |
55 TRAPD( err, CreateNotifiersL( array ) ); |
57 TRAPD( err, CreateNotifiersL( array ) ); |
56 if( err ) |
58 if( err ) |
109 resourceFileResponsible ); |
111 resourceFileResponsible ); |
110 CleanupStack::PushL( serNotify ); |
112 CleanupStack::PushL( serNotify ); |
111 aNotifiers->AppendL( serNotify ); |
113 aNotifiers->AppendL( serNotify ); |
112 CleanupStack::Pop( serNotify ); |
114 CleanupStack::Pop( serNotify ); |
113 |
115 |
114 serNotify = CCellularDataConfirmation::NewL( resourceFileResponsible ); |
116 serNotify = CConfirmationQueryNotif::NewL( resourceFileResponsible ); |
115 CleanupStack::PushL( serNotify ); |
117 CleanupStack::PushL( serNotify ); |
116 aNotifiers->AppendL( serNotify ); |
118 aNotifiers->AppendL( serNotify ); |
117 CleanupStack::Pop( serNotify ); |
119 CleanupStack::Pop( serNotify ); |
118 |
120 |
119 serNotify = CWlanPowerSaveQueryNotif::NewL( resourceFileResponsible ); |
121 serNotify = CConnectViaNoteNotif::NewL( resourceFileResponsible ); |
120 CleanupStack::PushL( serNotify ); |
122 CleanupStack::PushL( serNotify ); |
121 aNotifiers->AppendL( serNotify ); |
123 aNotifiers->AppendL( serNotify ); |
122 CleanupStack::Pop( serNotify ); |
124 CleanupStack::Pop( serNotify ); |
123 |
125 |
124 serNotify = CEasyWapiDlgNotif::NewL( resourceFileResponsible ); |
126 serNotify = CEasyWapiDlgNotif::NewL( resourceFileResponsible ); |
125 CleanupStack::PushL( serNotify ); |
127 CleanupStack::PushL( serNotify ); |
126 aNotifiers->AppendL( serNotify ); |
128 aNotifiers->AppendL( serNotify ); |
127 CleanupStack::Pop( serNotify ); |
129 CleanupStack::Pop( serNotify ); |
128 |
130 |
|
131 serNotify = CConnectingViaDiscreetPopupNotif::NewL( resourceFileResponsible ); |
|
132 CleanupStack::PushL( serNotify ); |
|
133 aNotifiers->AppendL( serNotify ); |
|
134 CleanupStack::Pop( serNotify ); |
|
135 |
|
136 serNotify = CNoWLANNetworksAvailableNotif::NewL( resourceFileResponsible ); |
|
137 CleanupStack::PushL( serNotify ); |
|
138 aNotifiers->AppendL( serNotify ); |
|
139 CleanupStack::Pop( serNotify ); |
|
140 |
|
141 serNotify = CConnectionErrorDiscreetPopupNotif::NewL( resourceFileResponsible ); |
|
142 CleanupStack::PushL( serNotify ); |
|
143 aNotifiers->AppendL( serNotify ); |
|
144 CleanupStack::Pop( serNotify ); |
129 } |
145 } |
130 |
146 |
131 // End of File |
147 // End of File |