dbcreator/commsdatcreator/Inc/cdcprocessorwlan.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
    26 
    26 
    27 #include <e32base.h>
    27 #include <e32base.h>
    28 #include <cmmanagerext.h>
    28 #include <cmmanagerext.h>
    29 #include <cmconnectionmethodext.h>
    29 #include <cmconnectionmethodext.h>
    30 #include <metadatabase.h>
    30 #include <metadatabase.h>
    31 #include <EapGeneralSettings.h>
    31 #include <EapSettings.h>
    32 #include <EapExpandedType.h>
       
    33 
    32 
    34 #include "cdcprocessorbase.h"
    33 #include "cdcprocessorbase.h"
    35 
    34 
    36 using namespace CommsDat;
    35 using namespace CommsDat;
    37 
    36 
    48         {
    47         {
    49         public:
    48         public:
    50         ~CEapTypeElement();
    49         ~CEapTypeElement();
    51 		HBufC* iName;
    50 		HBufC* iName;
    52         EAPSettings* iEapSettings; 
    51         EAPSettings* iEapSettings; 
    53         TEapExpandedType iEncapsulatingEapId; 
    52         EAPSettings::TEapType iEncapsulatingEapId;
    54         };
    53         };
    55 
    54 
    56 
    55 
    57 /**
    56 /**
    58 * CProcessorWlan
    57 * CProcessorWlan
   219         * @param aIapId Access point id WEP security settings belongs to.
   218         * @param aIapId Access point id WEP security settings belongs to.
   220         */
   219         */
   221         void SaveWPAL( TUint32 aIapId );
   220         void SaveWPAL( TUint32 aIapId );
   222         
   221         
   223         /**
   222         /**
   224         * Gets the expanded EAP type
       
   225         * @param aFieldId is the id of the field 
       
   226         * @return expanded EAP type
       
   227         */
       
   228         TEapExpandedType GetExpandedEapTypeIdL( TDesC& aField );
       
   229         
       
   230         /**
       
   231         * Gets the TagContainer index that belongst to the given WPA field
   223         * Gets the TagContainer index that belongst to the given WPA field
   232         * @param aFieldId is the id of the field 
   224         * @param aFieldId is the id of the field 
   233         * @return index in TagContainer
   225         * @return index in TagContainer
   234         */
   226         */
   235         TInt WPAIndex( TDbCreatorWPAFields aFieldId );
   227         TInt WPAIndex( TDbCreatorWPAFields aFieldId );
   266          */
   258          */
   267         virtual void Reset(); 
   259         virtual void Reset(); 
   268         
   260         
   269         /*
   261         /*
   270          * Sets the values of the expanded Eap lists to the database 
   262          * Sets the values of the expanded Eap lists to the database 
   271          * @param aServiceId for accessing the EAP data 
   263          * @param aGeneric for accessing the database records 
   272          */
   264          */
   273         void SetExpandedEapListL( const TUint aServiceId );
   265         void SetExpandedEapListL( CMDBGenericRecord* aGeneric );
   274         
   266         
       
   267         /*
       
   268          * Creates expanded Eap list from the common Eap list
       
   269          * @param aEapList the common Eap list from which the expanded list
       
   270          *              will be created 
       
   271          * @param aEnabledNeed indicates the type of the result expanded  
       
   272          *           Eap list. If it is ETrue then the enabled expanded
       
   273          *           Eap list will be created. Else the disbled one.
       
   274          * @return The created expanded Eap list. It can be empty. 
       
   275          */
       
   276         HBufC8* ExpandedEapListLC( HBufC16* aEapList, TBool aEnabledNeed );
       
   277   
       
   278         /*
       
   279          * Adds one item to the expanded Eap list
       
   280          * @param aExpandedEapList to which the new item will be added.
       
   281          * @param aSlice the common Eap list slice containing one 
       
   282          *              3 digit long number with sign.
       
   283          */
       
   284         void AddToList( HBufC8* aExpandedEapList, TPtrC16 aSlice );
       
   285 
   275     private:
   286     private:
   276     
   287     
   277         void AddSecurityDataL( TInt aField, HBufC* aPtrTag, TBool aIsWep );
   288         void AddSecurityDataL( TInt aField, HBufC* aPtrTag, TBool aIsWep );
   278 
   289 
   279 		void AddEAPSettingL( const TInt aField, HBufC16* aValue );
   290 		void AddEAPSettingL( const TInt aField, const HBufC16* const aValue );
   280 		
   291 		
   281 		TBool EAPSetting( const TInt aField );
   292 		TBool EAPSetting( const TInt aField );
   282 	
   293 	
   283 		void FillCipherSuitesL( const HBufC16* const aPtrTag, const TInt aEapIndex );
   294 		void FillCipherSuitesL( const HBufC16* const aPtrTag, const TInt aEapIndex );
   284 		
   295 		
   285 		TEapExpandedType GetEapTypeIdFromSettingId( const TInt aField ); 
   296 		EAPSettings::TEapType GetEapTypeIdFromSettingId( const TInt aField );
   286 		
   297 		
   287 		TUint FindCertificateEntryL( const EapCertificateEntry::TCertType aCertType, const TInt aEapIndex );
   298 		TUint FindCertificateEntryL( const CertificateEntry::TCertType aCertType, const TInt aEapIndex );
   288 		
   299 		
   289 		void ConvertSubjectKeyIdToBinaryL( const HBufC16* const aSubjectKeyIdString, TKeyIdentifier& aBinaryKey);
   300 		void ConvertSubjectKeyIdToBinaryL( const HBufC16* const aSubjectKeyIdString, TDes& aBinaryKey);
       
   301         /*
       
   302         // @var Stores indexes of WEP fields
       
   303         TInt iWEPIndex[KWEPKeyNumOfFields];
       
   304         
       
   305         // @var Stores indexes of WPA fields
       
   306         TInt iWPAIndex[KWPAKeyNumOfFields];
       
   307         */
   290         
   308         
   291         // @var Indicates the WLAN security mode
   309         // @var Indicates the WLAN security mode
   292         TDbCreatorSecurityMode iSecurityMode;
   310         TDbCreatorSecurityMode iSecurityMode;
   293         // @var Indicates the WLAN security mode name
   311         // @var Indicates the WLAN security mode name
   294         HBufC* iSecurityModeString;
   312         HBufC* iSecurityModeString;
   302 		// @var access point is Easy WLAN if true
   320 		// @var access point is Easy WLAN if true
   303         TBool iIsEasyWlan;
   321         TBool iIsEasyWlan;
   304        
   322        
   305         // @var HBufC for empty WEP and WPA tags
   323         // @var HBufC for empty WEP and WPA tags
   306         HBufC* iEmptyTag;
   324         HBufC* iEmptyTag;
       
   325 
       
   326         // @var Stores indexes of WEP fields
       
   327         ////RPointerArray< HBufC > iWepData;
   307         
   328         
   308         HBufC* iWepData[KWEPKeyNumOfFields];
   329         HBufC* iWepData[KWEPKeyNumOfFields];
   309         
   330         
       
   331         // @var Stores indexes of WPA fields
       
   332         ////RPointerArray< HBufC > iWpaData;
       
   333         
   310         HBufC* iWpaData[KWPAKeyNumOfFields];
   334         HBufC* iWpaData[KWPAKeyNumOfFields];
   311 
   335 
   312         TInt iDataStart;
   336         TInt iDataStart;
   313 
   337 
   314         RArray< RPointerArray< HBufC > >* iTest;
   338         RArray< RPointerArray< HBufC > >* iTest;