wlansecuritysettings/wifiprotectedsetup/src/wifiprotuiclient.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Implementation of class CWiFiProtUiClient.  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include <wifiprotuiclient.h>
       
    22 
       
    23 #include "wifiprotuiclientimpl.h"
       
    24 #include "wifiprotlogger.h"
       
    25 
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // ---------------------------------------------------------
       
    30 // CWiFiProtUiClient::NewL
       
    31 // ---------------------------------------------------------
       
    32 //
       
    33 EXPORT_C CWiFiProtUiClient* CWiFiProtUiClient::NewL()
       
    34     {
       
    35     CLOG_ENTERFN( "CWiFiProtUiClient::NewL" );
       
    36     CWiFiProtUiClient* wifi = new ( ELeave ) CWiFiProtUiClient();
       
    37     CleanupStack::PushL( wifi );
       
    38     wifi->iImpl = CWiFiProtUiClientImpl::NewL();
       
    39     CleanupStack::Pop( wifi );
       
    40     CLOG_LEAVEFN( "CWiFiProtUiClient::NewL" ); 
       
    41     return wifi;
       
    42     }
       
    43 
       
    44 
       
    45 // ---------------------------------------------------------
       
    46 // CWiFiProtUiClient::~CWiFiProtUiClient
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CWiFiProtUiClient::~CWiFiProtUiClient()
       
    50     {
       
    51     CLOG_ENTERFN( "CWiFiProtUiClient::~CWiFiProtUiClient" );
       
    52     delete iImpl;
       
    53     CLOG_LEAVEFN( "CWiFiProtUiClient::~CWiFiProtUiClient" );
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------
       
    57 // CWiFiProtUiClient::StartWiFiProtL
       
    58 // ---------------------------------------------------------
       
    59 //
       
    60 EXPORT_C void CWiFiProtUiClient::StartWiFiProtL( const TWlanSsid& aSSid,
       
    61                                                  TBool aConnectionNeeded,
       
    62                                                  RArray<TUint32>& aUidsReturned,
       
    63                                                  WiFiProt::TWiFiReturn& aReturnValue,
       
    64                                                  TRequestStatus& aStatus )
       
    65     {
       
    66     CLOG_ENTERFN( "CWiFiProtUiClient::StartWiFiProtL" );
       
    67     iImpl->StartWiFiProtL( aSSid, aConnectionNeeded, aUidsReturned, aReturnValue, aStatus );
       
    68     CLOG_LEAVEFN( "CWiFiProtUiClient::StartWiFiProtL" );
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------
       
    72 // CWiFiProtUiClient::StartWiFiProtL
       
    73 // ---------------------------------------------------------
       
    74 //
       
    75 EXPORT_C WiFiProt::TWiFiReturn CWiFiProtUiClient::StartWiFiProtSyncL(
       
    76  const TWlanSsid& aSSid, TBool aConnectionNeeded,RArray<TUint32>& aUidsReturned )
       
    77     {
       
    78     CLOG_WRITE( "CWiFiProtUiClient::StartWiFiProtSyncL" );
       
    79     return iImpl->StartWiFiProtSyncL( aSSid, aConnectionNeeded, aUidsReturned );
       
    80     }
       
    81 
       
    82 // ---------------------------------------------------------
       
    83 // CWiFiProtUiClient::CancelWiFiProt
       
    84 // ---------------------------------------------------------
       
    85 //
       
    86 EXPORT_C void CWiFiProtUiClient::CancelWiFiProt()
       
    87     {
       
    88     CLOG_ENTERFN( "CWiFiProtUiClient::CancelWiFiProt" );
       
    89     iImpl->CancelWiFiProt();
       
    90     CLOG_LEAVEFN( "CWiFiProtUiClient::CancelWiFiProt" );
       
    91     }
       
    92 
       
    93 // ---------------------------------------------------------
       
    94 // CWiFiProtUiClient::StartWiFiProtConnL
       
    95 // ---------------------------------------------------------
       
    96 //
       
    97 EXPORT_C void CWiFiProtUiClient::StartWiFiProtConnL( const TWlanSsid& aSSid,
       
    98                                       TWlanProtectedSetupCredentialAttribute&
       
    99                                         aNetworkSettings,
       
   100                                       WiFiProt::TWiFiReturn& aReturnValue,
       
   101                                       TRequestStatus& aStatus )
       
   102     {
       
   103     CLOG_ENTERFN( "CWiFiProtUiClient::StartWiFiProtConnL" );
       
   104     iImpl->StartWiFiProtConnL( aSSid, aNetworkSettings, aReturnValue, aStatus );
       
   105     CLOG_LEAVEFN( "CWiFiProtUiClient::StartWiFiProtConnL" );
       
   106     }
       
   107 // End of File