wlansecuritysettings/wepsecuritysettingsui/src/WEPSecuritySettings.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 CWEPSecuritySettings.     
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include <WEPSecuritySettingsUI.h>
       
    22 
       
    23 #include "WEPSecuritySettingsImpl.h"
       
    24 #include "WEPSecuritySettingsUiImpl.h"
       
    25 
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // ---------------------------------------------------------
       
    30 // CWEPSecuritySettings::NewL
       
    31 // ---------------------------------------------------------
       
    32 //
       
    33 EXPORT_C CWEPSecuritySettings* CWEPSecuritySettings::NewL()
       
    34     {
       
    35     CWEPSecuritySettings* settings = new ( ELeave ) CWEPSecuritySettings();
       
    36     CleanupStack::PushL( settings );
       
    37     settings->iImpl = CWEPSecuritySettingsImpl::NewL();
       
    38     CleanupStack::Pop( settings ); 
       
    39     return settings;    
       
    40     }
       
    41 
       
    42 
       
    43 // ---------------------------------------------------------
       
    44 // CWEPSecuritySettings::~CWEPSecuritySettings
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 EXPORT_C CWEPSecuritySettings::~CWEPSecuritySettings()
       
    48     {
       
    49     delete iImpl;
       
    50     }
       
    51 
       
    52 
       
    53 // ---------------------------------------------------------
       
    54 // CWEPSecuritySettings::LoadL
       
    55 // ---------------------------------------------------------
       
    56 //
       
    57 EXPORT_C void CWEPSecuritySettings::LoadL( TUint32 aIapId, 
       
    58                                            CCommsDatabase& aCommsDb )
       
    59     {
       
    60     iImpl->LoadL( aIapId, aCommsDb );
       
    61     }
       
    62 
       
    63 
       
    64 // ---------------------------------------------------------
       
    65 // CWEPSecuritySettings::SaveL
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 EXPORT_C void CWEPSecuritySettings::SaveL( TUint32 aIapId, 
       
    69                                            CCommsDatabase& aCommsDb ) const
       
    70     {
       
    71     iImpl->SaveL( aIapId, aCommsDb );
       
    72     }
       
    73     
       
    74 
       
    75 // ---------------------------------------------------------
       
    76 // CWEPSecuritySettings::EditL
       
    77 // ---------------------------------------------------------
       
    78 //
       
    79 EXPORT_C TInt CWEPSecuritySettings::EditL( CWEPSecuritySettingsUi& aUi,
       
    80                                            const TDesC& aTitle )
       
    81     {
       
    82     return aUi.iImpl->EditL( *iImpl, aTitle );
       
    83     }
       
    84 
       
    85 
       
    86 // ---------------------------------------------------------
       
    87 // CWEPSecuritySettings::IsValid
       
    88 // ---------------------------------------------------------
       
    89 //
       
    90 EXPORT_C TBool CWEPSecuritySettings::IsValid() const
       
    91     {
       
    92     return iImpl->IsValid();
       
    93     }
       
    94 
       
    95 
       
    96 // ---------------------------------------------------------
       
    97 // CWEPSecuritySettings::SetKeyDataL
       
    98 // ---------------------------------------------------------
       
    99 //
       
   100 EXPORT_C TInt CWEPSecuritySettings::SetKeyDataL( const TInt aElement,
       
   101                                                  const TDesC& aKeyData,
       
   102                                                  const TBool aHex )
       
   103     {
       
   104     return iImpl->SetKeyDataL( aElement, aKeyData, aHex );
       
   105     }
       
   106 
       
   107 
       
   108 // ---------------------------------------------------------
       
   109 // CWEPSecuritySettings::LoadL
       
   110 // ---------------------------------------------------------
       
   111 //
       
   112 EXPORT_C void CWEPSecuritySettings::LoadL( TUint32 aIapId, 
       
   113                                            CMDBSession& aSession )
       
   114     {
       
   115     iImpl->LoadL( aIapId, aSession );
       
   116     }
       
   117     
       
   118 
       
   119 // ---------------------------------------------------------
       
   120 // CWEPSecuritySettings::SaveL
       
   121 // ---------------------------------------------------------
       
   122 //
       
   123 EXPORT_C void CWEPSecuritySettings::SaveL( TUint32 aIapId, 
       
   124                                            CMDBSession& aSession ) const
       
   125     {
       
   126     iImpl->SaveL( aIapId, aSession );
       
   127     }
       
   128 
       
   129 
       
   130 // ---------------------------------------------------------
       
   131 // CWEPSecuritySettings::SetKeyInUse
       
   132 // ---------------------------------------------------------
       
   133 //
       
   134 EXPORT_C void CWEPSecuritySettings::SetKeyInUse( 
       
   135                                       CWEPSecuritySettings::TWEPKeyInUse aKey )
       
   136     {
       
   137     iImpl->SetKeyInUse( aKey );
       
   138     }
       
   139 
       
   140 
       
   141 // ---------------------------------------------------------
       
   142 // CWEPSecuritySettings::SetAuthentication
       
   143 // ---------------------------------------------------------
       
   144 //
       
   145 EXPORT_C void CWEPSecuritySettings::SetAuthentication( 
       
   146                      CWEPSecuritySettings::TWEPAuthentication aAuthentication )
       
   147     {
       
   148     iImpl->SetAuthentication( aAuthentication );
       
   149     }
       
   150 
       
   151 // End of File