hotspotfw/hsserver/inc/hssscan.h
changeset 0 56b72877c1cb
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     1 /*
       
     2 * Copyright (c) 2002-2006 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:    Implementation of Active Object
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HSSSCAN_H
       
    21 #define HSSSCAN_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "HSSInterface.h"
       
    25 #include "hotspotsession.h"
       
    26 
       
    27 // Active object for Notification support
       
    28 // FORWARD DECLARATIONS
       
    29 class CHotSpotSession;
       
    30 
       
    31 
       
    32 class CWlanMgmtClient;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36 * Active object for Notification support.
       
    37 */
       
    38 class CHssScan : public CActive
       
    39     {
       
    40     public:
       
    41 
       
    42         /**
       
    43         * C++ constructor and destructor
       
    44         */
       
    45         CHssScan( CWlanMgmtClient* aWlanMgmtClient, CHotSpotSession& aCallback);
       
    46         virtual ~CHssScan();
       
    47         
       
    48         /**
       
    49         * Initialize Scan to WlanEngine
       
    50         * @return None
       
    51         */
       
    52         void IssueRequest();
       
    53 
       
    54         /**
       
    55         * RunL to catch answer from WlanEngine
       
    56         * @return None
       
    57         */
       
    58         void RunL();
       
    59         
       
    60         /**
       
    61         * RunError to handle error situations
       
    62         * @return KErrNone
       
    63         */
       
    64         TInt RunError( TInt aError );
       
    65         
       
    66         /**
       
    67         * DoCancel to handle Cancel
       
    68         * @return None
       
    69         */
       
    70         void DoCancel();
       
    71 
       
    72     private:
       
    73     
       
    74         /**
       
    75         * Callback interface to Session.
       
    76         */
       
    77         CHotSpotSession& iCallback;
       
    78 
       
    79         /**
       
    80         * handle to wlanMgmtClient
       
    81         */
       
    82         CWlanMgmtClient* iMgmtClient;
       
    83         
       
    84         /**
       
    85         * pointer to scaninfo.
       
    86         */
       
    87         CWlanScanInfo* iScanInfo;
       
    88     };
       
    89 
       
    90 
       
    91 #endif