diff -r dbe86d96ce5b -r 2dc6da6fb431 wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsconmonwrapperscan_s60_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsconmonwrapperscan_s60_p.h Fri Jun 11 14:43:07 2010 +0300 @@ -0,0 +1,96 @@ +/* +* Copyright (c) 2009-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: +* Private implementation of wrapper for Symbian Connection Monitor +* library's scan interface. +*/ + +#ifndef WLANQTUTILSCONMONWRAPPERSCAN_S60_P_H +#define WLANQTUTILSCONMONWRAPPERSCAN_S60_P_H + +// System includes + +#include +#include + +// User includes + +// Forward declarations + +class WlanQtUtilsAp; +class WlanQtUtilsConMonWrapper; + +// External data types + +// Constants + +// Class declaration + +class WlanQtUtilsConMonWrapperScan : public CActive +{ +public: + + // Data types + + WlanQtUtilsConMonWrapperScan(WlanQtUtilsConMonWrapper *wrapper); + + ~WlanQtUtilsConMonWrapperScan(); + + void ScanAvailableWlanAPs(); + + void StopScan(); + +protected: + +private: + + void DoCancel(); + + void RunL(); + + void StoreConMonSecMode( + QSharedPointer ap, + TUint conMonSecMode); + + void StoreConMonConnMode( + QSharedPointer ap, + TInt conMonConnMode); + +private: // data + + // Owned data + + RConnectionMonitor iMonitor; //!< Handle to Connection Monitor Server + + //! Scan package used with Connection Monitor Server scan request + CConnMonWlanNetworksPtrArrayPckg* iWlanBuf; + + //! wlan pointer used with Connection Monitor Server scan request + TPtr iWlanPtr; + + /*! + Has scanning been cancelled by client, are we allowed to report + results? + */ + TBool iScanCancelled; + + // Not owned data + + //! Public implementation to report progress to + WlanQtUtilsConMonWrapper *q_ptr; + + // Friend classes +}; + +#endif // WLANQTUTILSCONMONWRAPPERSCAN_S60_P_H