diff -r 000000000000 -r 29b1cd4cb562 bluetoothcommsprofiles/btpan/panproviders/inc/panprovisioninfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetoothcommsprofiles/btpan/panproviders/inc/panprovisioninfo.h Fri Jan 15 08:13:17 2010 +0200 @@ -0,0 +1,116 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// PAN Provisioning information +// +// + +/** + @file + @internalComponent +*/ + +#ifndef SYMBIAN_PANPROVISIONINFO_H +#define SYMBIAN_PANPROVISIONINFO_H + +#include +#include +#include + +#include +#include +#include +#include + +NONSHARABLE_CLASS(CPanProvisionInfo) : public CBase, public Meta::SMetaData + { + enum + { + EUid = 0x1028376E, + ETypeId = 1, + }; + + +public: + inline CPanProvisionInfo(); + + ~CPanProvisionInfo() {}; + + inline const Messages::TNodeId& BnepConnectionMgr(); + inline void SetBnepConnectionMgr(const Messages::TNodeId& aConnMgr); + + inline CPacketDriverOwner& PacketDriverOwner() const; + inline void SetPacketDriverOwner(CPacketDriverOwner& aPktDrvOwner); + + inline void Reset(); + + DATA_VTABLE + +private: + Messages::TNodeId iBnepConnectionMgr; + CPacketDriverOwner* iPktDrvOwner; + }; + + + +inline CPanProvisionInfo::CPanProvisionInfo() + { + } + +inline CPacketDriverOwner& CPanProvisionInfo::PacketDriverOwner() const + { + #ifdef __FLOG_ACTIVE + _LIT8(KLogComponent, LOG_COMPONENT_PAN_PROVIDERS); + #endif + + #ifdef _DEBUG + PANICCATEGORY("btprovider"); + #endif + + ASSERT_DEBUG(iPktDrvOwner); + return *iPktDrvOwner; + } + +inline void CPanProvisionInfo::SetPacketDriverOwner(CPacketDriverOwner& aPktDrvOwner) + { + #ifdef __FLOG_ACTIVE + _LIT8(KLogComponent, LOG_COMPONENT_PAN_PROVIDERS); + #endif + + #ifdef _DEBUG + PANICCATEGORY("btprovider"); + #endif + + ASSERT_DEBUG(!iPktDrvOwner); // should only be set once + iPktDrvOwner = &aPktDrvOwner; + } + + +inline const Messages::TNodeId& CPanProvisionInfo::BnepConnectionMgr() + { + return iBnepConnectionMgr; + } + +inline void CPanProvisionInfo::SetBnepConnectionMgr(const Messages::TNodeId& aConnMgr) + { + iBnepConnectionMgr = aConnMgr; + } + +inline void CPanProvisionInfo::Reset() + { + iBnepConnectionMgr = Messages::TNodeId::NullId(); + iPktDrvOwner = NULL; + } + +#endif +// SYMBIAN_PANPROVISIONINFO_H