diff -r 682dd021f9be -r 7b3e49e4608a wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsscan_symbian.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsscan_symbian.h Thu Jun 24 10:49:51 2010 +0300 @@ -0,0 +1,104 @@ +/* +* Copyright (c) 2010 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: +* Symbian platform specific implementation of WLAN scanning. +*/ + +#ifndef WLANQTUTILSSCAN_SYMBIAN_H +#define WLANQTUTILSSCAN_SYMBIAN_H + +// System includes + +#include +#include +#include + +// User includes + +#include "wlanqtutilsap.h" + +// Forward declarations + +class CWlanMgmtClient; +class CWlanScanInfo; +class WlanQtUtilsScan; + +// External data types + +// Constants + +// Class declaration + +class WlanQtUtilsScanPrivate : public CActive +{ + +public: + + // Data types + + static WlanQtUtilsScanPrivate *NewL(WlanQtUtilsScan *q_ptr); + + ~WlanQtUtilsScanPrivate(); + + void Scan(); + + void Scan(const QString &ssid); + + void StopScan(); + +protected: + + void RunL(); + + void DoCancel(); + +private: + + explicit WlanQtUtilsScanPrivate(WlanQtUtilsScan *q_ptr); + + void ConstructL(); + + void ExtractScanResults( + QList< QSharedPointer > &scanResults); + + QString ExtractSsid(); + + QByteArray ExtractBssid(); + + void StoreSecMode( + QSharedPointer ap, + TUint wlanSecMode); + +private: // data + + //! Public implementation reference + WlanQtUtilsScan *q_ptr; + + // Owned data + + //! WLAN Management Client + CWlanMgmtClient *mWlanMgmtClient; + + //! Scanned SSID + TWlanSsid mWlanSsid; + + //! Scan results + CWlanScanInfo *mResults; + + // Not owned data + + // Friend classes +}; + +#endif // WLANQTUTILSSCAN_SYMBIAN_H