wlanutilities/wlanqtutilities/wrapper/src/wlanqtutilsscan.cpp
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 // System includes
       
    19 
       
    20 // User includes
       
    21 
       
    22 #include "wlanqtutilsscan_symbian.h"
       
    23 #include "wlanqtutilsscan.h"
       
    24 
       
    25 /*!
       
    26     \class WlanQtUtilsScan
       
    27     \brief WLAN scan platform specific implementation wrapper.
       
    28 
       
    29     This class implements the WLAN scanning functionality platform independently.
       
    30     The private implementation class implements the platform specific parts. 
       
    31 */
       
    32 
       
    33 // External function prototypes
       
    34 
       
    35 // Local constants
       
    36 
       
    37 // ======== LOCAL FUNCTIONS ========
       
    38 
       
    39 // ======== MEMBER FUNCTIONS ========
       
    40 
       
    41 /*!
       
    42     Constructor.
       
    43     
       
    44     @param [in] parent Parent object.
       
    45 */
       
    46 
       
    47 WlanQtUtilsScan::WlanQtUtilsScan(QObject *parent) :
       
    48     QObject(parent)
       
    49 {
       
    50     QT_TRAP_THROWING(d_ptr = WlanQtUtilsScanPrivate::NewL(this));
       
    51 }
       
    52 
       
    53 /*!
       
    54     Destructor.
       
    55 */
       
    56 
       
    57 WlanQtUtilsScan::~WlanQtUtilsScan()
       
    58 {
       
    59     delete d_ptr;
       
    60 }
       
    61 
       
    62 /*!
       
    63     Scans available WLAN AP's (i.e. broadcast scan).
       
    64 */
       
    65 
       
    66 void WlanQtUtilsScan::scanWlanAps()
       
    67 {
       
    68     d_ptr->Scan();
       
    69 }
       
    70 
       
    71 /*!
       
    72     Scans with given WLAN SSID (i.e. direct scan).
       
    73     
       
    74     @param [in] ssid WLAN SSID to scan.
       
    75 */
       
    76 
       
    77 void WlanQtUtilsScan::scanWlanDirect(const QString &ssid)
       
    78 {
       
    79     d_ptr->Scan(ssid);
       
    80 }
       
    81 
       
    82 /*!
       
    83     Stops current scan. Can also be called if there is no scan in progres.
       
    84 */
       
    85 
       
    86 void WlanQtUtilsScan::stopScan()
       
    87 {
       
    88     d_ptr->StopScan();
       
    89 }