ipcm_plat/commsdat_wlan_api/inc/wlancontainer.h
changeset 0 5a93021fdf25
child 8 2e6c4614c58e
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2004 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 "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:  WLAN table container class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef WLAN_CONTAINER_H
       
    21 #define WLAN_CONTAINER_H
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <Metadatabase.h>
       
    27 #include <CommsDatTypesV1_1.h>
       
    28 #include <cmmanagertablefields.h>
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 using namespace CommsDat;
       
    35 
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 
       
    40 /**
       
    41  *  Class representing records in the WLAN Service table
       
    42  *  @since Series60_3.2
       
    43  */
       
    44 NONSHARABLE_CLASS( CCDWlanServiceRecord ) : public CCDRecordBase
       
    45     {
       
    46 	public:
       
    47 	IMPORT_C CCDWlanServiceRecord( TMDBElementId aElementId );
       
    48 
       
    49     IMPORT_C const SRecordTypeInfo* GetRecordInfo();
       
    50 	
       
    51     IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession );
       
    52     IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession );
       
    53 
       
    54 	DATA_VTABLE
       
    55 		
       
    56 	public:
       
    57 	CMDBField<TUint>    iWlanServiceId;
       
    58 	CMDBField<TUint>    iWlanConnMode;
       
    59 	CMDBField<TDesC>    iWLanSSID;
       
    60 	CMDBField<TDesC>    iWLanUsedSSID;
       
    61 	CMDBField<TDesC8>   iWLanWepKey1;
       
    62 	CMDBField<TDesC8>   iWLanWepKey2;
       
    63 	CMDBField<TDesC8>   iWLanWepKey3;
       
    64 	CMDBField<TDesC8>   iWLanWepKey4;
       
    65 	CMDBField<TUint>    iWlanWepIndex;
       
    66     CMDBField<TUint>    iWlanSecMode;
       
    67     CMDBField<TUint>    iWlanAuthMode;
       
    68     CMDBField<TUint>    iWlanEnableWpaPsk;
       
    69     CMDBField<TDesC8>   iWLanWpaPreSharedKey;
       
    70     CMDBField<TUint>    iWlanWpaKeyLength;
       
    71     CMDBField<TDesC>    iWLanEaps;
       
    72     CMDBField<TBool>    iWlanScanSSID;
       
    73     CMDBField<TUint>    iWlanChannelID;
       
    74     CMDBField<TUint>    iWlanFormatKey1;
       
    75     CMDBField<TUint>    iWlanFormatKey2;
       
    76     CMDBField<TUint>    iWlanFormatKey3;
       
    77     CMDBField<TUint>    iWlanFormatKey4;
       
    78     CMDBField<TBool>    iWlanAllowSSIDRoaming;
       
    79     CMDBField<TDesC8>   iWLanEnabledEaps;   // binary
       
    80     CMDBField<TDesC8>   iWLanDisabledEaps;  // binary
       
    81 
       
    82 	private:
       
    83 	
       
    84 		static const SRecordTypeInfo iRecordInfo[];
       
    85     };
       
    86 
       
    87 /**
       
    88  * Wlan Device settings record.
       
    89  * @since Series60_3.2
       
    90  */
       
    91 NONSHARABLE_CLASS( CCDWlanDeviceSettingsRecord ) : public CCDRecordBase
       
    92     {
       
    93 	public:
       
    94 	IMPORT_C CCDWlanDeviceSettingsRecord( TMDBElementId aElementId );
       
    95 
       
    96 	IMPORT_C const SRecordTypeInfo* GetRecordInfo();
       
    97 	
       
    98     IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession );
       
    99     IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession );
       
   100 
       
   101 	DATA_VTABLE
       
   102 		
       
   103 	public:
       
   104 	CMDBField<TUint>    iTableVersion;
       
   105 	CMDBField<TUint>    iWlanDeviceSettingsType;
       
   106 	CMDBField<TUint>    iBgScanInterval;
       
   107 	CMDBField<TUint>    iSavedBgScanInterval;
       
   108 	CMDBField<TBool>    iUseDefaultSettings;
       
   109 	CMDBField<TUint>    iWlanLongRetry;
       
   110 	CMDBField<TUint>    iWlanShortRetry;
       
   111 	CMDBField<TUint>    iWlanRTSThreshold;
       
   112 	CMDBField<TUint>    iTxPowerLevel;
       
   113 	CMDBField<TBool>    iAllowRadioMeasurements;
       
   114 	CMDBField<TBool>    iWlanPowerMode;
       
   115 
       
   116 	private:
       
   117 	
       
   118 		static const SRecordTypeInfo iRecordInfo[];
       
   119     };
       
   120 
       
   121 /**
       
   122  * Wlan Secure SSID record
       
   123  * @since Series60_3.2
       
   124  */
       
   125 NONSHARABLE_CLASS( CCDWLANSecSSIDTable ) : public CCDRecordBase
       
   126     {
       
   127 	public:
       
   128 	IMPORT_C CCDWLANSecSSIDTable( TMDBElementId aElementId );
       
   129 
       
   130 	IMPORT_C const SRecordTypeInfo* GetRecordInfo();
       
   131 	
       
   132     IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession );
       
   133     IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession );
       
   134 
       
   135 	DATA_VTABLE
       
   136 		
       
   137 	public:
       
   138 	CMDBField<TUint>    iWlanSecSSIDServiceId;
       
   139 	CMDBField<TDesC>    iWlanSecSSIDName;
       
   140 	CMDBField<TDesC>    iWlanSecSSIDScannedSSID;
       
   141 	CMDBField<TDesC>    iWlanSecSSIDUsedSSID;
       
   142 	CMDBField<TUint>    iWlanSecSSIDId;
       
   143 
       
   144 	private:
       
   145 	
       
   146 		static const SRecordTypeInfo iRecordInfo[];
       
   147     };
       
   148 
       
   149 /**
       
   150  * Destination Network record
       
   151  * @since Series60_3.2
       
   152  */
       
   153 NONSHARABLE_CLASS( CCDDestNWTable ) : public CCDRecordBase
       
   154     {
       
   155 	public:
       
   156 	IMPORT_C CCDDestNWTable( TMDBElementId aElementId );
       
   157 
       
   158 	IMPORT_C const SRecordTypeInfo* GetRecordInfo();
       
   159 	
       
   160     IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession );
       
   161     IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession );
       
   162 
       
   163 	DATA_VTABLE
       
   164 		
       
   165 	public:
       
   166 	CMDBField<TUint>    iDestNwShowRoaming;
       
   167 	CMDBField<TDesC>    iDestNwAccessNwId;
       
   168 
       
   169 	private:
       
   170 	
       
   171 		static const SRecordTypeInfo iRecordInfo[];
       
   172     };
       
   173 #endif      // WLAN_CONTAINER_H
       
   174 
       
   175 // End of File.