diff -r d9ec2b8c6bad -r 2fbd1d709fe7 wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsscan.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsscan.h Tue Jul 06 15:29:22 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: +* WLAN scan platform specific implementation wrapper. +*/ + +#ifndef WLANQTUTILSSCAN_H +#define WLANQTUTILSSCAN_H + +// System includes + +#include +#include +#include + +// User includes + +#include "wlanqtutilsap.h" + +// Forward declarations + +class WlanQtUtilsScanPrivate; + +// External data types + +// Constants + +// Class declaration + +class WlanQtUtilsScan : public QObject +{ + Q_OBJECT + +public: + + // Data types + + explicit WlanQtUtilsScan(QObject *parent = 0); + + ~WlanQtUtilsScan(); + + void scanWlanAps(); + + void scanWlanDirect(const QString &ssid); + + void stopScan(); + +signals: + + /*! + Signal indicating available WLAN access points. + + @param [in] availableWlans Available WLAN access points found in scan. + */ + void availableWlanAps( + QList< QSharedPointer > &availableWlans); + + /*! + Signal indicating that scanning failed. + + @param [in] status Scan status code (ScanStatus). + */ + void scanFailed(int status); + +public slots: + +protected: + +protected slots: + +private: + + Q_DISABLE_COPY(WlanQtUtilsScan) + +private slots: + +private: // data + + // Owned data + + //! Private implementation of scan interface + WlanQtUtilsScanPrivate *d_ptr; + + // Not owned data + + // Friend classes + + // Needed to be able to emit public signals directly from + // private implementation. + friend class WlanQtUtilsScanPrivate; +}; + +#endif // WLANQTUTILSSCAN_H