accesssec_plat/wlan_eap_settings_ui_api/inc/EAPPluginConfigurationIf.h
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: This is the ECOM interface for EAP Plugin Configuration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __EAPPLUGINCONFIGURATIONIF_H__
       
    21 #define __EAPPLUGINCONFIGURATIONIF_H__
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <ecom/ecom.h>
       
    27 
       
    28 
       
    29 // CONSTANTS
       
    30 const TUid KEapPluginConfigInterfaceUid = {0x102072CA};
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 /**
       
    35 * CEAPPluginConfigurationIf class
       
    36 * ECOM interface for EAP PLugin Configuration.
       
    37 */
       
    38 class CEAPPluginConfigurationIf : public CBase
       
    39     {
       
    40     public:
       
    41         inline static CEAPPluginConfigurationIf* NewL( 
       
    42                                                 const TDesC8& aMatchString );
       
    43     
       
    44         inline virtual ~CEAPPluginConfigurationIf();
       
    45     
       
    46         /**
       
    47         * Load the EAP Plugin configuration
       
    48         * @param    aWPAEAPPlugin   The list of EAPs in use as it was read from
       
    49         *                           WlanEapList column of WLANServiceTable. In 
       
    50         *                           output it contains the new list as it has 
       
    51         *                           to be written in the same column of 
       
    52         *                           database.
       
    53         * @param    aConnectionName The name of the connection.
       
    54         * @return   The ID of the button pressed to close configuration: 
       
    55         *           typically EAknSoftkeyBack for back, EAknCmdExit for a 
       
    56         *           request of exit or EEikCmdExit for a request of shutdown
       
    57         */
       
    58         virtual TInt EAPPluginConfigurationL( TDes& aWPAEAPPlugin, 
       
    59                                               const TUint32 aIapID, 
       
    60                                               const TDes& aConnectionName ) = 0;
       
    61                                          
       
    62        /**
       
    63         * Load the EAP Plugin configuration (with expanded EAP types)
       
    64         * @param    aWPAEnabledEAPPlugin   The list of enabled EAPs in use as 
       
    65         *                           it was read from WlanEnabledEapList column 
       
    66         *                           of WLANServiceTable. In output it contains 
       
    67         *                           the new list as it has to be written in the 
       
    68         *                           same column of database.
       
    69         * @param    aWPADisabledEAPPlugin   The list of disabled EAPs in use as
       
    70         *                           it was read from WlanDisabledEapList column 
       
    71         *                           of WLANServiceTable. In output it contains 
       
    72         *                           the new list as it has to be written in the 
       
    73         *                           same column of database.
       
    74         * @param    aConnectionName The name of the connection.
       
    75         * @return   The ID of the button pressed to close configuration: 
       
    76         *           typically EAknSoftkeyBack for back, EAknCmdExit for a 
       
    77         *           request of exit or EEikCmdExit for a request of shutdown
       
    78         */
       
    79         virtual TInt EAPPluginConfigurationL( TDes8& aWPAEnabledEAPPlugin, 
       
    80                                               TDes8& aWPADisabledEAPPlugin, 
       
    81                                               const TUint32 aIapID, 
       
    82                                               const TDes& aConnectionName ) = 0;
       
    83 
       
    84         /**
       
    85         * Shows the EAP type info.
       
    86         */
       
    87         virtual void ShowEAPTypeInfo() = 0;
       
    88     
       
    89         /**
       
    90         * Deletes all EAP types' settings for
       
    91         * the given IAP.
       
    92         */
       
    93         virtual void DeleteSettingsL( const TUint32 aIapID ) = 0;
       
    94     
       
    95         /**
       
    96         * Changes the index of the EAP settings for all EAP types    
       
    97         */
       
    98         virtual void ChangeIapIDL( const TUint32 aOldIapID, 
       
    99                                    const TUint32 aNewIapID ) = 0;
       
   100 
       
   101 	    /**
       
   102         * Copies the EAP type settings to another ID
       
   103         */
       
   104 	    virtual void CopySettingsL( const TUint32 aSourceIapID, 
       
   105                                     const TUint32 aDestinationIapID ) = 0;
       
   106 
       
   107 
       
   108     private: // Data    
       
   109         // This variable holds the instance identifier.
       
   110         TUid iDtor_ID_Key; 
       
   111     };
       
   112     
       
   113 
       
   114 #include "EAPPluginConfigurationIf.inl" 
       
   115     
       
   116 #endif      // __EAPPLUGINCONFIGURATIONIF_H__
       
   117 
       
   118 // End of File