wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/inc/wlanbgscanawscommsinterface.h
branchRCL_3
changeset 3 6524e815f76f
equal deleted inserted replaced
0:c40eb8fe8501 3:6524e815f76f
       
     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 the License "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:  This abstract class defines WLAN scan provider interface.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 3 %
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef WLANBGSCANAWSCOMMSINTERFACE_H
       
    24 #define WLANBGSCANAWSCOMMSINTERFACE_H
       
    25 
       
    26 #include <e32def.h>
       
    27 #include <e32base.h>
       
    28 
       
    29 /**
       
    30  * @brief Interface definition for WLAN Scan Result Provider API.
       
    31  *
       
    32  * This class defines the methods used for issuing and cancelling Scan requests.
       
    33  *
       
    34  * @since S60 v5.2
       
    35  */
       
    36 class MWlanBgScanAwsComms
       
    37     {
       
    38     
       
    39 public:
       
    40     
       
    41     virtual ~MWlanBgScanAwsComms(){};
       
    42     
       
    43     /**
       
    44      * AWS commands.
       
    45      */
       
    46     enum TAwsCommand
       
    47         {
       
    48         EStart = 0,
       
    49         EStop,
       
    50         ESetPowerSaveMode,
       
    51         EAwsStartupCompleted,
       
    52         EAwsCommandMax //not a real command
       
    53         };
       
    54     
       
    55     /**
       
    56      * AWS message.
       
    57      */
       
    58     struct TAwsMessage
       
    59         {
       
    60         TAwsCommand iCmd;
       
    61         TInt iParameter;
       
    62         };
       
    63 
       
    64     /**
       
    65      * Send or queue a message to be sent to AWS.
       
    66      *
       
    67      * @param aMessage Message to be sent
       
    68      * @since S60 v5.2
       
    69      */
       
    70     virtual void SendOrQueueAwsCommand( TAwsMessage& aMessage ) = 0;
       
    71 
       
    72     };
       
    73 
       
    74 
       
    75 // forward declarations
       
    76 class CWlanBgScan;
       
    77 
       
    78 class CWlanBgScanAwsCommsFactory : public CBase
       
    79     {
       
    80 public:
       
    81     static MWlanBgScanAwsComms* InstanceL( CWlanBgScan& aBgScan );
       
    82     };
       
    83 
       
    84 
       
    85 
       
    86 #endif // WLANBGSCANAWSCOMMSINTERFACE_H