wlan_bearer/wlannwif/inc/wlanmcpr.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     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:  Defines WLAN meta connection provider
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 5 %
       
    20 */
       
    21 
       
    22 #ifndef __WLANMCPR_H__
       
    23 #define __WLANMCPR_H__
       
    24 
       
    25 #include <comms-infras/ss_mcprnodemessages.h>
       
    26 #include <comms-infras/agentmcpr.h>
       
    27 
       
    28 
       
    29 namespace WlanMCprStates
       
    30     {
       
    31 	class TSendProvision;
       
    32     DECLARE_EXPORT_ACTIVITY_MAP(stateMap)	
       
    33     }
       
    34     
       
    35 class CWlanMetaConnectionProviderFactory;
       
    36 
       
    37 class CWlanMetaConnectionProvider : public CAgentMetaConnectionProvider
       
    38     {
       
    39     friend class WlanMCprStates::TSendProvision;
       
    40 
       
    41 public:
       
    42     typedef CWlanMetaConnectionProviderFactory FactoryType;
       
    43 
       
    44 	IMPORT_C static CWlanMetaConnectionProvider* NewL(ESock::CMetaConnectionProviderFactoryBase& aFactory, const ESock::TProviderInfo& aProviderInfo);
       
    45 	IMPORT_C virtual ~CWlanMetaConnectionProvider();
       
    46 
       
    47 protected:
       
    48     IMPORT_C CWlanMetaConnectionProvider(ESock::CMetaConnectionProviderFactoryBase& aFactory,
       
    49 							   const ESock::TProviderInfo& aProviderInfo,
       
    50 							   const MeshMachine::TNodeActivityMap& aActivityMap);    
       
    51     
       
    52     void SetAccessPointConfigFromDbL();
       
    53 	IMPORT_C virtual void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage);
       
    54 	IMPORT_C void ConstructL();
       
    55 
       
    56 private:
       
    57 	void ProvisionNetworkConfigL(ESock::CCommsDatIapView* aIapView, ESock::RMetaExtensionContainer& aMec);
       
    58     void ProvisionIp4ConfigL(ESock::CCommsDatIapView* aIapView, TUint32 aOrder, ESock::RMetaExtensionContainer& aMec);
       
    59     void ProvisionIp6ConfigL(ESock::CCommsDatIapView* aIapView, TUint32 aOrder, ESock::RMetaExtensionContainer& aMec);
       
    60     };
       
    61 
       
    62 #endif // __WLANMCPR_H__