wlansecuritysettings/wifiprotectedsetup/pluginsrc/wifiprotuiinprocess.cpp
branchRCL_3
changeset 46 c74b3d9f6b9e
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
       
     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 CWifiProtUiInProcess.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: tr1cfwln#7 %
       
    20 */
       
    21 
       
    22 // INCLUDE FILES
       
    23 
       
    24 #include <cmmanagerext.h>
       
    25 #include <wifiprotreturn.h>
       
    26 #include <wifiprotuiinprocess.h>
       
    27 
       
    28 #include "wifiprotdlgsplugin.h"
       
    29 #include "wifiprotlogger.h"
       
    30 
       
    31 using namespace WiFiProt;
       
    32 
       
    33 // =========================== MEMBER FUNCTIONS =============================
       
    34 
       
    35 // --------------------------------------------------------------------------
       
    36 // CWifiProtUiInProcess* CWifiProtUiInProcess::NewL()
       
    37 // --------------------------------------------------------------------------
       
    38 //
       
    39 EXPORT_C CWifiProtUiInProcess* CWifiProtUiInProcess::NewL( RCmManagerExt*
       
    40                                                               aCmManagerExt )
       
    41     {
       
    42     CLOG_ENTERFN( "WiFiProtDlgsPlugin::NewL" );
       
    43     
       
    44     CWifiProtUiInProcess* self = new ( ELeave ) CWifiProtUiInProcess();
       
    45     CleanupStack::PushL( self );
       
    46     self->ConstructL( aCmManagerExt );
       
    47     CleanupStack::Pop();
       
    48     CLOG_LEAVEFN( "WiFiProtDlgsPlugin::NewL" );
       
    49     return self;
       
    50     }
       
    51 
       
    52 
       
    53 // --------------------------------------------------------------------------
       
    54 // CWifiProtUiInProcess::~CWifiProtUiInProcess
       
    55 // --------------------------------------------------------------------------
       
    56 //
       
    57 CWifiProtUiInProcess::~CWifiProtUiInProcess( )
       
    58 
       
    59     {    
       
    60     CLOG_ENTERFN( "WiFiProtDlgsPlugin::~CWifiProtUiInProcess" );
       
    61     delete iWiFiProtDlgsPlugin; 
       
    62     CLOG_LEAVEFN( "WiFiProtDlgsPlugin::~CWifiProtUiInProcess" );
       
    63     }
       
    64         
       
    65 // --------------------------------------------------------------------------
       
    66 // WiFiProt::TWiFiReturn CWifiProtUiInProcess::StartFromUiL
       
    67 // --------------------------------------------------------------------------
       
    68 //
       
    69 EXPORT_C WiFiProt::TWiFiReturn CWifiProtUiInProcess::StartFromUiL(
       
    70                                              const TWlanSsid& aSSid,
       
    71                                              TBool aConnectionNeeded,
       
    72                                              RArray<TUint32>& aUidsReturned )
       
    73    {
       
    74     CLOG_ENTERFN( "WiFiProtDlgsPlugin::StartFromUiL" );
       
    75     
       
    76     WiFiProt::TWiFiReturn ret =
       
    77          iWiFiProtDlgsPlugin->StartFromUiL( aSSid,
       
    78                                             aConnectionNeeded,
       
    79                                             aUidsReturned );
       
    80     
       
    81     CLOG_LEAVEFN( "WiFiProtDlgsPlugin::StartFromUiL" );
       
    82     
       
    83     return ret;
       
    84     }
       
    85     
       
    86     
       
    87 // --------------------------------------------------------------------------
       
    88 // CWifiProtUiInProcess::CWifiProtUiInProcess
       
    89 // --------------------------------------------------------------------------
       
    90 //
       
    91 CWifiProtUiInProcess::CWifiProtUiInProcess( ):
       
    92                                 iWiFiProtDlgsPlugin(NULL)
       
    93     {    
       
    94     CLOG_ENTERFN( "WiFiProtDlgsPlugin::CWifiProtUiInProcess" );
       
    95     CLOG_LEAVEFN( "WiFiProtDlgsPlugin::CWifiProtUiInProcess" );
       
    96     }
       
    97 
       
    98 // --------------------------------------------------------------------------
       
    99 // void CWifiProtUiInProcess::ConstructL( )
       
   100 // --------------------------------------------------------------------------
       
   101 //
       
   102 void CWifiProtUiInProcess::ConstructL( RCmManagerExt* aCmManagerExt )
       
   103     {
       
   104     CLOG_ENTERFN( "WiFiProtDlgsPlugin::ConstructL" );
       
   105     
       
   106     iWiFiProtDlgsPlugin = CWiFiProtDlgsPlugin::NewL( ETrue, aCmManagerExt );
       
   107     
       
   108     CLOG_LEAVEFN( "WiFiProtDlgsPlugin::ConstructL" );
       
   109     
       
   110     }    
       
   111 // End of File