wlan_bearer/wlanagent/inc/wlanagt.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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:  WLAN Agent class
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 6 %
       
    20 */
       
    21 
       
    22 #ifndef _WLANAGT_H_
       
    23 #define _WLANAGT_H_
       
    24 
       
    25 #include <comms-infras/nifagt.h>
       
    26 #include <comms-infras/cstatemachineagentbase.h>
       
    27 
       
    28 const TInt KMajorVersionNumber=0;
       
    29 const TInt KMinorVersionNumber=0;
       
    30 const TInt KBuildVersionNumber=0;
       
    31 
       
    32 _LIT(KWlanAgentName,"wlanagt");
       
    33 
       
    34 /**
       
    35  * WLAN agent factory
       
    36  * 
       
    37  *  @lib wlanagt.agt
       
    38  *  @since S60 v3.0
       
    39  */
       
    40 NONSHARABLE_CLASS( CWlanAgentFactory ) : public CNifAgentFactory
       
    41     {
       
    42 protected:
       
    43 
       
    44     /**
       
    45      * InstallL
       
    46      *
       
    47      * @since S60 v3.0
       
    48      */
       
    49     void InstallL();
       
    50 
       
    51     /**
       
    52      * NewAgentL
       
    53      *
       
    54      * @since S60 v3.0
       
    55      * @param aName of the agent
       
    56      * @return instance of the requested agent
       
    57      */
       
    58     CNifAgentBase* NewAgentL(const TDesC& aName);
       
    59 
       
    60     /**
       
    61      * Info
       
    62      *
       
    63      * @since S60 v3.0
       
    64      * @param aInfo
       
    65      * @param aIndex
       
    66      * @return 
       
    67      */
       
    68     TInt Info(TNifAgentInfo& aInfo, TInt aIndex) const;
       
    69     };
       
    70 
       
    71 /**
       
    72  * WLAN agent
       
    73  * 
       
    74  *  @lib wlanagt.agt
       
    75  *  @since S60 v3.0
       
    76  */
       
    77 NONSHARABLE_CLASS( CWlanAgent ): public CStateMachineAgentBase
       
    78     {
       
    79 public:
       
    80 
       
    81     /**
       
    82      * NewL
       
    83      *
       
    84      * @since S60 v3.0
       
    85      * @return instance of the requested agent
       
    86      */
       
    87     static CWlanAgent* NewL();
       
    88 
       
    89     /**
       
    90      * destructor
       
    91      */
       
    92     virtual ~CWlanAgent();
       
    93 
       
    94 protected:
       
    95 
       
    96     /**
       
    97      * ConstructL
       
    98      *
       
    99      * @since S60 v3.0
       
   100      */
       
   101     void ConstructL();
       
   102     
       
   103     /**
       
   104      * constructor
       
   105      *
       
   106      * @since S60 v3.0
       
   107      */
       
   108     CWlanAgent();
       
   109 
       
   110 public: // From CStateMachineAgentBase
       
   111 
       
   112     /**
       
   113      * Info
       
   114      *
       
   115      * @since S60 v3.0
       
   116      * @param aInfo
       
   117      */
       
   118     void Info(TNifAgentInfo& aInfo) const;
       
   119 
       
   120     /**
       
   121      * CreateAgentSML
       
   122      *
       
   123      * @since S60 v3.0
       
   124      * @param aObserver
       
   125      * @param aDlgPrc
       
   126      * @param aDb
       
   127      * @param aDir
       
   128      * @return instance of the requested agent statemachine
       
   129      */
       
   130     CAgentSMBase* CreateAgentSML(
       
   131         MAgentNotify& aObserver, 
       
   132         CDialogProcessor* aDlgPrc, 
       
   133         CCommsDbAccess& aDb, 
       
   134         TCommDbConnectionDirection aDir );
       
   135 
       
   136     /**
       
   137      * Retrieve the bearer information to the Agent CPR.
       
   138      *
       
   139      * @return Bearer information to the Agent CPR.
       
   140      */
       
   141     TUint32 GetBearerInfo() const;
       
   142     };
       
   143 
       
   144 #endif // _WLANAGT_H_