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 "ConfirmationQueryNotif.h" |
29 #include "wlanpowersavetestnotif.h" |
30 #include "ConnectViaNoteNotif.h" |
|
31 #include "easywapidlgnotif.h" |
30 #include "easywapidlgnotif.h" |
32 #include "nowlannetworksavailablenotif.h" |
31 #include "cellulardataconfirmation.h" |
33 #include "connectingviadiscreetpopupnotif.h" |
|
34 #include "connectionerrordiscreetpopupnotif.h" |
|
35 |
32 |
36 // CONSTANTS |
33 // CONSTANTS |
37 |
34 |
38 LOCAL_D const TInt KPluginGranularity = 4; |
35 LOCAL_D const TInt KPluginGranularity = 4; |
39 |
36 |
47 // Lib main entry point |
44 // Lib main entry point |
48 // --------------------------------------------------------- |
45 // --------------------------------------------------------- |
49 // |
46 // |
50 EXPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray() |
47 EXPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray() |
51 { |
48 { |
52 CArrayPtrFlat<MEikSrvNotifierBase2>* array = new (ELeave) |
49 CArrayPtrFlat<MEikSrvNotifierBase2>* array = NULL; |
53 CArrayPtrFlat<MEikSrvNotifierBase2>( KPluginGranularity ); |
50 TRAP_IGNORE( array = new (ELeave) |
|
51 CArrayPtrFlat<MEikSrvNotifierBase2>( KPluginGranularity ); ) |
54 |
52 |
55 if ( array ) |
53 if ( array ) |
56 { |
54 { |
57 TRAPD( err, CreateNotifiersL( array ) ); |
55 TRAPD( err, CreateNotifiersL( array ) ); |
58 if( err ) |
56 if( err ) |
111 resourceFileResponsible ); |
109 resourceFileResponsible ); |
112 CleanupStack::PushL( serNotify ); |
110 CleanupStack::PushL( serNotify ); |
113 aNotifiers->AppendL( serNotify ); |
111 aNotifiers->AppendL( serNotify ); |
114 CleanupStack::Pop( serNotify ); |
112 CleanupStack::Pop( serNotify ); |
115 |
113 |
116 serNotify = CConfirmationQueryNotif::NewL( resourceFileResponsible ); |
114 serNotify = CCellularDataConfirmation::NewL( resourceFileResponsible ); |
117 CleanupStack::PushL( serNotify ); |
115 CleanupStack::PushL( serNotify ); |
118 aNotifiers->AppendL( serNotify ); |
116 aNotifiers->AppendL( serNotify ); |
119 CleanupStack::Pop( serNotify ); |
117 CleanupStack::Pop( serNotify ); |
120 |
118 |
121 serNotify = CConnectViaNoteNotif::NewL( resourceFileResponsible ); |
119 serNotify = CWlanPowerSaveQueryNotif::NewL( resourceFileResponsible ); |
122 CleanupStack::PushL( serNotify ); |
120 CleanupStack::PushL( serNotify ); |
123 aNotifiers->AppendL( serNotify ); |
121 aNotifiers->AppendL( serNotify ); |
124 CleanupStack::Pop( serNotify ); |
122 CleanupStack::Pop( serNotify ); |
125 |
123 |
126 serNotify = CEasyWapiDlgNotif::NewL( resourceFileResponsible ); |
124 serNotify = CEasyWapiDlgNotif::NewL( resourceFileResponsible ); |
127 CleanupStack::PushL( serNotify ); |
125 CleanupStack::PushL( serNotify ); |
128 aNotifiers->AppendL( serNotify ); |
126 aNotifiers->AppendL( serNotify ); |
129 CleanupStack::Pop( serNotify ); |
127 CleanupStack::Pop( serNotify ); |
130 |
128 |
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 ); |
|
145 } |
129 } |
146 |
130 |
147 // End of File |
131 // End of File |