wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsscan.h
changeset 46 2fbd1d709fe7
child 53 bdc64aa9b954
equal deleted inserted replaced
45:d9ec2b8c6bad 46:2fbd1d709fe7
       
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 * WLAN scan platform specific implementation wrapper.
       
    16 */
       
    17 
       
    18 #ifndef WLANQTUTILSSCAN_H
       
    19 #define WLANQTUTILSSCAN_H
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <QObject>
       
    24 #include <QList>
       
    25 #include <QSharedPointer>
       
    26 
       
    27 // User includes
       
    28 
       
    29 #include "wlanqtutilsap.h"
       
    30 
       
    31 // Forward declarations
       
    32 
       
    33 class WlanQtUtilsScanPrivate;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 // Class declaration
       
    40 
       
    41 class WlanQtUtilsScan : public QObject
       
    42 {
       
    43     Q_OBJECT
       
    44 
       
    45 public:
       
    46 
       
    47     // Data types
       
    48 
       
    49     explicit WlanQtUtilsScan(QObject *parent = 0);
       
    50     
       
    51     ~WlanQtUtilsScan();
       
    52 
       
    53     void scanWlanAps();
       
    54 
       
    55     void scanWlanDirect(const QString &ssid);
       
    56 
       
    57     void stopScan();
       
    58 
       
    59 signals:
       
    60     
       
    61     /*!
       
    62         Signal indicating available WLAN access points.
       
    63 
       
    64         @param [in] availableWlans Available WLAN access points found in scan.
       
    65     */
       
    66     void availableWlanAps(
       
    67         QList< QSharedPointer<WlanQtUtilsAp> > &availableWlans);
       
    68 
       
    69     /*!
       
    70         Signal indicating that scanning failed.
       
    71         
       
    72         @param [in] status Scan status code (ScanStatus).
       
    73     */
       
    74     void scanFailed(int status);
       
    75     
       
    76 public slots:
       
    77 
       
    78 protected:
       
    79 
       
    80 protected slots:
       
    81 
       
    82 private:
       
    83 
       
    84     Q_DISABLE_COPY(WlanQtUtilsScan)
       
    85 
       
    86 private slots:
       
    87 
       
    88 private: // data
       
    89 
       
    90     // Owned data
       
    91 
       
    92     //! Private implementation of scan interface
       
    93     WlanQtUtilsScanPrivate *d_ptr;
       
    94 
       
    95     // Not owned data
       
    96     
       
    97     // Friend classes
       
    98 
       
    99     // Needed to be able to emit public signals directly from
       
   100     // private implementation.
       
   101     friend class WlanQtUtilsScanPrivate;
       
   102 };
       
   103 
       
   104 #endif // WLANQTUTILSSCAN_H