connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifSrc/WlanNetworkDataProvider.cpp
changeset 47 cb7afde124a3
parent 0 5a93021fdf25
child 58 83ca720e2b9a
child 61 8b0c979bbe8c
equal deleted inserted replaced
46:95d45f234cf3 47:cb7afde124a3
    62 // ---------------------------------------------------------
    62 // ---------------------------------------------------------
    63 // CWlanNetworkDataProvider::CWlanNetworkDataProvider
    63 // CWlanNetworkDataProvider::CWlanNetworkDataProvider
    64 // ---------------------------------------------------------
    64 // ---------------------------------------------------------
    65 //
    65 //
    66 CWlanNetworkDataProvider::CWlanNetworkDataProvider() 
    66 CWlanNetworkDataProvider::CWlanNetworkDataProvider() 
    67 : CBase()
    67 : CBase(),
       
    68 #ifndef __WINS__
       
    69   iWlanMgmt( NULL ),
       
    70   iScanInfo( NULL ),
       
    71 #endif // !__WINS__
       
    72   iNetworkInfoArray( NULL )
    68     {
    73     {
    69     }
    74     }
    70 
    75 
    71 
    76 
    72 // ---------------------------------------------------------
    77 // ---------------------------------------------------------
    83         {
    88         {
    84         iWlanMgmt->CancelGetScanResults();
    89         iWlanMgmt->CancelGetScanResults();
    85         }
    90         }
    86     delete iWlanMgmt;
    91     delete iWlanMgmt;
    87     delete iScanInfo;
    92     delete iScanInfo;
    88 #endif
    93 #endif // !__WINS__
    89 
    94 
    90     CLOG_LEAVEFN( "CWlanNetworkDataProvider::~CWlanNetworkDataProvider" );
    95     CLOG_LEAVEFN( "CWlanNetworkDataProvider::~CWlanNetworkDataProvider" );
    91     }
    96     }
    92 
    97 
    93 
    98 
   275                                    TNetworkMode aNetworkMode,
   280                                    TNetworkMode aNetworkMode,
   276                                    TWlanConnectionSecurityMode aSecurityMode,
   281                                    TWlanConnectionSecurityMode aSecurityMode,
   277                                    TWlanConnectionExtentedSecurityMode aExtSecurityMode,
   282                                    TWlanConnectionExtentedSecurityMode aExtSecurityMode,
   278                                    TBool aProtectedSetupSupported )
   283                                    TBool aProtectedSetupSupported )
   279     {
   284     {
   280     TBuf<KWlanMaxSsidLength> networkName16;
   285     TName networkName16;
   281     networkName16.Copy( aNetworkName );
   286     networkName16.Copy( aNetworkName );
   282     TInt index = iNetworkInfoArray->GetArrayIndex( networkName16 );
   287     TInt index = iNetworkInfoArray->GetArrayIndex( networkName16 );
   283 
   288 
   284     // if not found
   289     // if not found
   285     if ( index == KErrNotFound )
   290     if ( index == KErrNotFound )