wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlmplatformdata.cpp
changeset 13 ab7247ff6ef9
parent 0 c40eb8fe8501
child 19 629e60dfa279
child 42 a828660c511c
equal deleted inserted replaced
0:c40eb8fe8501 13:ab7247ff6ef9
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    13 *
    13 *
    14 * Description:  Interface class to CenRep and PubSub
    14 * Description:  Interface class to CenRep and PubSub
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 /*
       
    19 * %version: 12 %
       
    20 */
    18 
    21 
    19 // INCLUDE FILES
    22 // INCLUDE FILES
    20 #include <e32base.h>
    23 #include <e32base.h>
    21 #include <etelmm.h>
    24 #include <etelmm.h>
    22 #include <mmtsy_names.h>
    25 #include <mmtsy_names.h>
    91         {
    94         {
    92         User::LeaveIfError( ret );
    95         User::LeaveIfError( ret );
    93         }
    96         }
    94     User::LeaveIfError( iPsIndicator.Attach( KPSUidWlan,
    97     User::LeaveIfError( iPsIndicator.Attach( KPSUidWlan,
    95        KPSWlanIndicator, EOwnerThread ) );
    98        KPSWlanIndicator, EOwnerThread ) );
       
    99        
       
   100     // Create PubSub property for publishing WLAN BG scan interval
       
   101     ret = RProperty::Define( KPSWlanBgScanInterval, KPSWlanBgScanIntervalType,
       
   102         KWlmPSReadPolicy, KWlmPSWritePolicy );
       
   103     if( ret != KErrAlreadyExists )
       
   104         {
       
   105         User::LeaveIfError( ret );
       
   106         }
       
   107     User::LeaveIfError( iPsBgScanInterval.Attach( KPSUidWlan,
       
   108         KPSWlanBgScanInterval, EOwnerThread ) );
    96     }
   109     }
    97 
   110 
    98 // ---------------------------------------------------------
   111 // ---------------------------------------------------------
    99 // CWlmPlatformData::NewL
   112 // CWlmPlatformData::NewL
   100 // ---------------------------------------------------------
   113 // ---------------------------------------------------------
   118 
   131 
   119     iPsIndicator.Close();
   132     iPsIndicator.Close();
   120     RProperty::Delete( KPSUidWlan, KPSWlanIndicator );
   133     RProperty::Delete( KPSUidWlan, KPSWlanIndicator );
   121     iPsMacAddress.Close();
   134     iPsMacAddress.Close();
   122     RProperty::Delete( KPSUidWlan, KPSWlanMacAddress );
   135     RProperty::Delete( KPSUidWlan, KPSWlanMacAddress );
       
   136     iPsBgScanInterval.Close();
       
   137     RProperty::Delete( KPSUidWlan, KPSWlanBgScanInterval );
   123     delete iPropertySystemState;
   138     delete iPropertySystemState;
   124     delete iBtConnections;
   139     delete iBtConnections;
   125     delete iEmergencyCall;    
   140     delete iEmergencyCall;    
   126     }
   141     }
   127 
   142 
   378     DEBUG_MAC( aMacAddr.iMacAddress );
   393     DEBUG_MAC( aMacAddr.iMacAddress );
   379 
   394 
   380     TPtrC8 mac( aMacAddr.iMacAddress, KPSWlanMacAddressLength );
   395     TPtrC8 mac( aMacAddr.iMacAddress, KPSWlanMacAddressLength );
   381     return iPsMacAddress.Set( mac );
   396     return iPsMacAddress.Set( mac );
   382     }
   397     }
       
   398 
       
   399 // ---------------------------------------------------------
       
   400 // CWlmPlatformData::PublishBgScanInterval
       
   401 // Status : Draft
       
   402 // ---------------------------------------------------------
       
   403 //
       
   404 TInt CWlmPlatformData::PublishBgScanInterval( TUint32& aInterval )
       
   405     {
       
   406     DEBUG1( "CWlmPlatformData::PublishBgScanInterval( %u )",
       
   407         aInterval );
       
   408     
       
   409     return iPsBgScanInterval.Set( aInterval );
       
   410     }