diff -r 000000000000 -r dfb7c4ff071f datacommsserver/esockserver/esock_params/inc/esock_params.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datacommsserver/esockserver/esock_params/inc/esock_params.inl Thu Dec 17 09:22:25 2009 +0200 @@ -0,0 +1,52 @@ +// Copyright (c) 2008-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: +// + +#ifndef ESOCK_PARAMS_INL +#define ESOCK_PARAMS_INL + +#include +#include + +inline TConnAPPref* TConnAPPref::NewL() + { + Meta::STypeId input = STypeId::CreateSTypeId(TConnAPPref::EUid,TConnAPPref::ETypeId); + return static_cast(Meta::SMetaDataECom::NewInstanceL(input)); + } + +inline TConnAPPref* TConnAPPref::NewL(TUint aAP) + { + TConnAPPref* self = NewL(); + self->SetAP(aAP); + return self; + } + +inline void TConnAPPref::SetAP(TUint aAP) + { + iAP = aAP; + } + +inline TInt TConnAPPref::GetAP() + { + return iAP; + } + +inline TConnAutoStartPref* TConnAutoStartPref::NewL() + { + Meta::STypeId input = STypeId::CreateSTypeId(TConnAutoStartPref::EUid,TConnAutoStartPref::ETypeId); + return static_cast(Meta::SMetaDataECom::NewInstanceL(input)); + } + + +#endif //ESOCK_PARAMS_INL