--- a/cmmanager/gsconnsettingsplugin/src/gsconnsettingsplugincontainer.cpp Tue Feb 02 00:24:11 2010 +0200
+++ b/cmmanager/gsconnsettingsplugin/src/gsconnsettingsplugincontainer.cpp Fri Apr 16 15:21:37 2010 +0300
@@ -26,8 +26,8 @@
#include <aknlists.h>
#include <csxhelp/cp.hlp.hrh>
-#include <GSFWViewUIDs.h> // for KUidGS
-#include <GSListbox.h>
+#include <gsfwviewuids.h> // for KUidGS
+#include <gslistbox.h>
// EXTERNAL DATA STRUCTURES
@@ -143,7 +143,9 @@
MGSConnSettingsMskObserver& aMskObserver )
: iMskObserver( aMskObserver )
{
+ FeatureManager::InitializeLibL();
iIsWlanSupported = FeatureManager::FeatureSupported( KFeatureIdProtocolWlan );
+ FeatureManager::UnInitializeLib();
}
void CGSConnSettingsPluginContainer::SetPluginArray (
@@ -311,6 +313,13 @@
{
TInt currValue = iModel->DataUsageAbroad();
+ // We may have to do in this way because EDataUsageAbroadDisabled is equal to 3
+ // and the actual index number should be 2 in this case
+ if( !iIsWlanSupported && currValue == EDataUsageAbroadDisabled )
+ {
+ currValue --;
+ }
+
AppendListItemL( Index( EGSSettIdDataUsageAbroad ),
iListItems->operator[]( Index( EGSSettIdDataUsageAbroad ) ),
( *iDataUsageAbroadItems )[currValue] );
@@ -326,6 +335,13 @@
{
TInt currValue = iModel->DataUsageInHomeNw();
+ // We may have to do in this way because EDataUsageAbroadDisabled is equal to 3
+ // and the actual index number should be 2 in this case
+ if( !iIsWlanSupported && currValue == EDataUsageAbroadDisabled )
+ {
+ currValue --;
+ }
+
AppendListItemL( Index( EGSSettIdDataUsageHomeNw ),
iListItems->operator[]( Index( EGSSettIdDataUsageHomeNw ) ),
( *iDataUsageHomeNwItems )[currValue] );
@@ -449,7 +465,7 @@
void CGSConnSettingsPluginContainer::GetHelpContext( TCoeHelpContext& aContext ) const
{
aContext.iMajor = KUidGS;
- aContext.iContext = KHLP_OCC_CONN_SETTINGS;
+// aContext.iContext = KCP_HLP_DISPLAY;
}
// ---------------------------------------------------------------------------