cmmanager/cmmgr/cmmplugins/cmpluginwlan/inc/cmwlancoveragecheck.h
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
     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 *        Declaration of WLAN Coverage Check class
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CMWLANCOVERAGECHECK_H
       
    20 #define CMWLANCOVERAGECHECK_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <cmpluginwlandef.h>
       
    25 
       
    26 using namespace CMManager;
       
    27 
       
    28 /**
       
    29  *  WLAN Coverage Check
       
    30  *
       
    31  *  ?more_complete_description
       
    32  *
       
    33  *  @since S60 3.2
       
    34  */
       
    35 class CCmWlanCoverageCheck : public CActive
       
    36     {
       
    37     enum EWlanCoverageState
       
    38         {
       
    39         EServiceStatus,
       
    40         EScanning,
       
    41         EDone,
       
    42         };
       
    43 
       
    44     public:
       
    45 
       
    46         CCmWlanCoverageCheck();
       
    47         ~CCmWlanCoverageCheck();
       
    48 
       
    49         TBool GetCoverageL();
       
    50 
       
    51         /**
       
    52         * Returns whether the passed ssid and length results in a hidden or
       
    53         * a non-hidden ssid.
       
    54         *
       
    55         * @since S60 3.2
       
    56         * @param aSsidLength The length of the ssid
       
    57         * @param aSsid The ssid
       
    58         * @return ETrue if the ssid is hidden.
       
    59         */
       
    60         TBool IsHiddenSsid( TUint aSsidLength, const TUint8* aSsid ) const;
       
    61 
       
    62     protected:  // from CActive
       
    63 
       
    64         virtual void DoCancel();
       
    65         virtual void RunL();
       
    66 
       
    67     private:
       
    68 
       
    69         TUint32                 iProgState;
       
    70         TBool                   iCoverage;
       
    71         CActiveSchedulerWait    iWait;
       
    72     };
       
    73 
       
    74 
       
    75 #endif // CMWLANCOVERAGECHECK_H