wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/rwlmserver.cpp
branchRCL_3
changeset 14 13838cf40350
parent 3 6524e815f76f
child 17 a828660c511c
equal deleted inserted replaced
12:af3fb27c7511 14:13838cf40350
    14 * Description:  Implementation of interface for WLAN services.
    14 * Description:  Implementation of interface for WLAN services.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 28 %
    19 * %version: 28.1.1 %
    20 */
    20 */
    21 
    21 
    22 #include <in_sock.h>
    22 #include <in_sock.h>
    23 #include "wlandevicesettings.h"
    23 #include "wlandevicesettings.h"
    24 #include "rwlmserver.h"
    24 #include "rwlmserver.h"
   364 // ---------------------------------------------------------
   364 // ---------------------------------------------------------
   365 //
   365 //
   366 EXPORT_C TInt RWLMServer::GetAvailableIaps(
   366 EXPORT_C TInt RWLMServer::GetAvailableIaps(
   367     TWlmAvailableIaps& aAvailableIaps,
   367     TWlmAvailableIaps& aAvailableIaps,
   368     TInt& aCacheLifetime,
   368     TInt& aCacheLifetime,
   369     TUint& aMaxDelay )
   369     TUint& aMaxDelay,
   370     {
   370     TBool aFilteredResults )
   371     DEBUG2( "RWLMServer::GetAvailableIaps( aAvailableIaps, aCacheLifetime(%d), aMaxDelay(%u) )",
   371     {
   372             aCacheLifetime, aMaxDelay );
   372     DEBUG3( "RWLMServer::GetAvailableIaps( aAvailableIaps, aCacheLifetime(%d), aMaxDelay(%u), aFilteredResult(%u) )",
       
   373         aCacheLifetime, aMaxDelay, aFilteredResults );
   373 
   374 
   374     TRequestStatus status;
   375     TRequestStatus status;
   375     TPckg<TWlmAvailableIaps> inPckg( aAvailableIaps );
   376     TPckg<TWlmAvailableIaps> inPckg( aAvailableIaps );
   376     TPckg<TInt> inPckg2( aCacheLifetime );
   377     TPckg<TInt> inPckg2( aCacheLifetime );
   377     TPckg<TUint> inPckg3( aMaxDelay );
   378     TPckg<TUint> inPckg3( aMaxDelay );
   378     GetAvailableIaps( inPckg, inPckg2, inPckg3, status );
   379     GetAvailableIaps( inPckg, inPckg2, inPckg3, aFilteredResults, status );
   379     User::WaitForRequest( status );
   380     User::WaitForRequest( status );
   380     DEBUG1( "RWLMServer::GetAvailableIaps() - Server returned status %d", status.Int() );    
   381     DEBUG1( "RWLMServer::GetAvailableIaps() - Server returned status %d", status.Int() );    
   381 
   382 
   382     return status.Int();
   383     return status.Int();
   383     }
   384     }
   387 //
   388 //
   388 EXPORT_C void RWLMServer::GetAvailableIaps( 
   389 EXPORT_C void RWLMServer::GetAvailableIaps( 
   389     TDes8& aAvailableIaps,
   390     TDes8& aAvailableIaps,
   390     TDes8& aCacheLifetime,
   391     TDes8& aCacheLifetime,
   391     TDes8& aMaxDelay,
   392     TDes8& aMaxDelay,
       
   393     TBool aFilteredResults,
   392     TRequestStatus& aStatus )
   394     TRequestStatus& aStatus )
   393     {
   395     {
   394     DEBUG( "RWLMServer::GetAvailableIaps( aAvailableIaps, aCacheLifetime, aMaxDelay, aStatus )" );
   396     DEBUG1( "RWLMServer::GetAvailableIaps( aAvailableIaps, aCacheLifetime, aMaxDelay, aFilteredResult(%u), aStatus )",
   395     
   397         aFilteredResults );
       
   398 
   396     aStatus = KRequestPending;
   399     aStatus = KRequestPending;
   397     TIpcArgs params( &aAvailableIaps, &aCacheLifetime, &aMaxDelay );
   400     TIpcArgs params( &aAvailableIaps, &aCacheLifetime, &aMaxDelay, aFilteredResults );
   398     SendReceive( EGetAvailableIaps, params, aStatus );
   401     SendReceive( EGetAvailableIaps, params, aStatus );
   399     }
   402     }
   400 
   403 
   401 // ---------------------------------------------------------
   404 // ---------------------------------------------------------
   402 // ---------------------------------------------------------
   405 // ---------------------------------------------------------