wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlmplatformdata.cpp
branchRCL_3
changeset 3 6524e815f76f
parent 0 c40eb8fe8501
child 17 a828660c511c
--- a/wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlmplatformdata.cpp	Tue Feb 02 02:03:13 2010 +0200
+++ b/wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlmplatformdata.cpp	Sat Feb 20 00:38:18 2010 +0200
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -15,6 +15,9 @@
 *
 */
 
+/*
+* %version: 12 %
+*/
 
 // INCLUDE FILES
 #include <e32base.h>
@@ -93,6 +96,16 @@
         }
     User::LeaveIfError( iPsIndicator.Attach( KPSUidWlan,
        KPSWlanIndicator, EOwnerThread ) );
+       
+    // Create PubSub property for publishing WLAN BG scan interval
+    ret = RProperty::Define( KPSWlanBgScanInterval, KPSWlanBgScanIntervalType,
+        KWlmPSReadPolicy, KWlmPSWritePolicy );
+    if( ret != KErrAlreadyExists )
+        {
+        User::LeaveIfError( ret );
+        }
+    User::LeaveIfError( iPsBgScanInterval.Attach( KPSUidWlan,
+        KPSWlanBgScanInterval, EOwnerThread ) );
     }
 
 // ---------------------------------------------------------
@@ -120,6 +133,8 @@
     RProperty::Delete( KPSUidWlan, KPSWlanIndicator );
     iPsMacAddress.Close();
     RProperty::Delete( KPSUidWlan, KPSWlanMacAddress );
+    iPsBgScanInterval.Close();
+    RProperty::Delete( KPSUidWlan, KPSWlanBgScanInterval );
     delete iPropertySystemState;
     delete iBtConnections;
     delete iEmergencyCall;    
@@ -380,3 +395,16 @@
     TPtrC8 mac( aMacAddr.iMacAddress, KPSWlanMacAddressLength );
     return iPsMacAddress.Set( mac );
     }
+
+// ---------------------------------------------------------
+// CWlmPlatformData::PublishBgScanInterval
+// Status : Draft
+// ---------------------------------------------------------
+//
+TInt CWlmPlatformData::PublishBgScanInterval( TUint32& aInterval )
+    {
+    DEBUG1( "CWlmPlatformData::PublishBgScanInterval( %u )",
+        aInterval );
+    
+    return iPsBgScanInterval.Set( aInterval );
+    }