wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsconmonwrapperscan_s60_p.h
changeset 46 2fbd1d709fe7
parent 45 d9ec2b8c6bad
child 47 b3d8f88532b7
child 50 d4198dcb9983
equal deleted inserted replaced
45:d9ec2b8c6bad 46:2fbd1d709fe7
     1 /*
       
     2 * Copyright (c) 2009-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 * Private implementation of wrapper for Symbian Connection Monitor
       
    16 * library's scan interface.
       
    17 */
       
    18 
       
    19 #ifndef WLANQTUTILSCONMONWRAPPERSCAN_S60_P_H
       
    20 #define WLANQTUTILSCONMONWRAPPERSCAN_S60_P_H
       
    21 
       
    22 // System includes
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <rconnmon.h>
       
    26 
       
    27 // User includes
       
    28 
       
    29 // Forward declarations
       
    30 
       
    31 class WlanQtUtilsAp;
       
    32 class WlanQtUtilsConMonWrapper;
       
    33 
       
    34 // External data types
       
    35 
       
    36 // Constants
       
    37 
       
    38 // Class declaration
       
    39 
       
    40 class WlanQtUtilsConMonWrapperScan : public CActive
       
    41 {
       
    42 public:
       
    43 
       
    44     // Data types
       
    45 
       
    46     WlanQtUtilsConMonWrapperScan(WlanQtUtilsConMonWrapper *wrapper);
       
    47 
       
    48     ~WlanQtUtilsConMonWrapperScan();
       
    49 
       
    50     void ScanAvailableWlanAPs();
       
    51 
       
    52     void StopScan();
       
    53 
       
    54 protected:
       
    55 
       
    56 private:
       
    57 
       
    58     void DoCancel();
       
    59 
       
    60     void RunL();
       
    61 
       
    62     void StoreConMonSecMode(
       
    63         QSharedPointer<WlanQtUtilsAp> ap,
       
    64         TUint conMonSecMode);
       
    65     
       
    66     void StoreConMonConnMode(
       
    67         QSharedPointer<WlanQtUtilsAp> ap,
       
    68         TInt conMonConnMode);
       
    69 
       
    70 private: // data
       
    71     
       
    72     // Owned data
       
    73 
       
    74     RConnectionMonitor iMonitor; //!< Handle to Connection Monitor Server
       
    75 
       
    76     //! Scan package used with Connection Monitor Server scan request
       
    77     CConnMonWlanNetworksPtrArrayPckg* iWlanBuf;
       
    78 
       
    79     //! wlan pointer used with Connection Monitor Server scan request
       
    80     TPtr iWlanPtr;
       
    81 
       
    82     /*!
       
    83        Has scanning been cancelled by client, are we allowed to report
       
    84        results?
       
    85      */
       
    86     TBool iScanCancelled;
       
    87     
       
    88     // Not owned data
       
    89 
       
    90     //! Public implementation to report progress to
       
    91     WlanQtUtilsConMonWrapper *q_ptr;
       
    92     
       
    93     // Friend classes
       
    94 };
       
    95 
       
    96 #endif // WLANQTUTILSCONMONWRAPPERSCAN_S60_P_H