diff -r 000000000000 -r 5a93021fdf25 ipcm_plat/commsdat_wlan_api/inc/wlancontainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ipcm_plat/commsdat_wlan_api/inc/wlancontainer.h Thu Dec 17 08:55:21 2009 +0200 @@ -0,0 +1,175 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: WLAN table container class. +* +*/ + + + +#ifndef WLAN_CONTAINER_H +#define WLAN_CONTAINER_H + + +// INCLUDES +#include +#include +#include +#include + +// FORWARD DECLARATIONS + +// CONSTANTS + +using namespace CommsDat; + + +// CLASS DECLARATION + + +/** + * Class representing records in the WLAN Service table + * @since Series60_3.2 + */ +NONSHARABLE_CLASS( CCDWlanServiceRecord ) : public CCDRecordBase + { + public: + IMPORT_C CCDWlanServiceRecord( TMDBElementId aElementId ); + + IMPORT_C const SRecordTypeInfo* GetRecordInfo(); + + IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession ); + IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession ); + + DATA_VTABLE + + public: + CMDBField iWlanServiceId; + CMDBField iWlanConnMode; + CMDBField iWLanSSID; + CMDBField iWLanUsedSSID; + CMDBField iWLanWepKey1; + CMDBField iWLanWepKey2; + CMDBField iWLanWepKey3; + CMDBField iWLanWepKey4; + CMDBField iWlanWepIndex; + CMDBField iWlanSecMode; + CMDBField iWlanAuthMode; + CMDBField iWlanEnableWpaPsk; + CMDBField iWLanWpaPreSharedKey; + CMDBField iWlanWpaKeyLength; + CMDBField iWLanEaps; + CMDBField iWlanScanSSID; + CMDBField iWlanChannelID; + CMDBField iWlanFormatKey1; + CMDBField iWlanFormatKey2; + CMDBField iWlanFormatKey3; + CMDBField iWlanFormatKey4; + CMDBField iWlanAllowSSIDRoaming; + CMDBField iWLanEnabledEaps; // binary + CMDBField iWLanDisabledEaps; // binary + + private: + + static const SRecordTypeInfo iRecordInfo[]; + }; + +/** + * Wlan Device settings record. + * @since Series60_3.2 + */ +NONSHARABLE_CLASS( CCDWlanDeviceSettingsRecord ) : public CCDRecordBase + { + public: + IMPORT_C CCDWlanDeviceSettingsRecord( TMDBElementId aElementId ); + + IMPORT_C const SRecordTypeInfo* GetRecordInfo(); + + IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession ); + IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession ); + + DATA_VTABLE + + public: + CMDBField iTableVersion; + CMDBField iWlanDeviceSettingsType; + CMDBField iBgScanInterval; + CMDBField iSavedBgScanInterval; + CMDBField iUseDefaultSettings; + CMDBField iWlanLongRetry; + CMDBField iWlanShortRetry; + CMDBField iWlanRTSThreshold; + CMDBField iTxPowerLevel; + CMDBField iAllowRadioMeasurements; + CMDBField iWlanPowerMode; + + private: + + static const SRecordTypeInfo iRecordInfo[]; + }; + +/** + * Wlan Secure SSID record + * @since Series60_3.2 + */ +NONSHARABLE_CLASS( CCDWLANSecSSIDTable ) : public CCDRecordBase + { + public: + IMPORT_C CCDWLANSecSSIDTable( TMDBElementId aElementId ); + + IMPORT_C const SRecordTypeInfo* GetRecordInfo(); + + IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession ); + IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession ); + + DATA_VTABLE + + public: + CMDBField iWlanSecSSIDServiceId; + CMDBField iWlanSecSSIDName; + CMDBField iWlanSecSSIDScannedSSID; + CMDBField iWlanSecSSIDUsedSSID; + CMDBField iWlanSecSSIDId; + + private: + + static const SRecordTypeInfo iRecordInfo[]; + }; + +/** + * Destination Network record + * @since Series60_3.2 + */ +NONSHARABLE_CLASS( CCDDestNWTable ) : public CCDRecordBase + { + public: + IMPORT_C CCDDestNWTable( TMDBElementId aElementId ); + + IMPORT_C const SRecordTypeInfo* GetRecordInfo(); + + IMPORT_C static TMDBElementId CreateTableL( CMDBSession& aSession ); + IMPORT_C static TMDBElementId TableIdL( CMDBSession& aSession ); + + DATA_VTABLE + + public: + CMDBField iDestNwShowRoaming; + CMDBField iDestNwAccessNwId; + + private: + + static const SRecordTypeInfo iRecordInfo[]; + }; +#endif // WLAN_CONTAINER_H + +// End of File.