wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsscaniap_symbian.h
branchRCL_3
changeset 25 f28ada11abbf
parent 24 63be7eb3fc78
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
     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 * Symbian platform specific implementation of WLAN IAP scanning.
       
    16 */
       
    17 
       
    18 #ifndef WLANQTUTILSSCANIAP_SYMBIAN_H
       
    19 #define WLANQTUTILSSCANIAP_SYMBIAN_H
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <wlanmgmtclient.h>
       
    24 #include <QSharedPointer>
       
    25 
       
    26 // User includes
       
    27 
       
    28 #include "wlanqtutilsiap.h"
       
    29 
       
    30 // Forward declarations
       
    31 
       
    32 class CWlanMgmtClient;
       
    33 class WlanQtUtilsScan;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 // Class declaration
       
    40 
       
    41 class WlanQtUtilsScanIapPrivate : public CActive
       
    42 {
       
    43 
       
    44 public:
       
    45 
       
    46     // Data types
       
    47 
       
    48     static WlanQtUtilsScanIapPrivate *NewL(WlanQtUtilsScan *wrapper);
       
    49     
       
    50     ~WlanQtUtilsScanIapPrivate();
       
    51 
       
    52     void ScanIaps();
       
    53 
       
    54     void StopScan();
       
    55     
       
    56 protected:
       
    57 
       
    58     void RunL();
       
    59 
       
    60     void DoCancel();
       
    61 
       
    62 private:
       
    63 
       
    64     explicit WlanQtUtilsScanIapPrivate(WlanQtUtilsScan *wrapper);
       
    65 
       
    66     void ConstructL();
       
    67 
       
    68     void ExtractScanResults(
       
    69         QList< QSharedPointer<WlanQtUtilsIap> > &scanResults);
       
    70 
       
    71 private: // data
       
    72     
       
    73     //! Public implementation reference
       
    74     WlanQtUtilsScan *q_ptr;
       
    75     
       
    76     // Owned data
       
    77 
       
    78     //! WLAN Management Client
       
    79     CWlanMgmtClient *mWlanMgmtClient;
       
    80 
       
    81     //! Accepted cache lifetime
       
    82     TInt mCacheLifetime;
       
    83     
       
    84     //! Accepted maximum delay
       
    85     TUint mMaxDelay;
       
    86     
       
    87     //! Scan results
       
    88     RArray<TWlanIapAvailabilityData> mAvailableIaps;
       
    89 
       
    90     // Not owned data
       
    91     
       
    92     // Friend classes
       
    93 };
       
    94 
       
    95 #endif // WLANQTUTILSSCANIAP_SYMBIAN_H