diff -r 000000000000 -r 62f9d29f7211 webservices/wsutils/src/senattributes.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webservices/wsutils/src/senattributes.cpp Thu Jan 07 16:19:19 2010 +0200 @@ -0,0 +1,162 @@ +/* +* Copyright (c) 2005 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: +* +*/ + + + + + + + + +#include "senattributes.h" + +#include "sendebug.h" +#include "senlogger.h" + + +EXPORT_C CSenAttributes* CSenAttributes::NewL() + { + CSenAttributes* self = NewLC(); + CleanupStack::Pop(self); + return self; + } + +EXPORT_C CSenAttributes* CSenAttributes::NewLC() + { + CSenAttributes* self = new (ELeave) CSenAttributes(); + CleanupStack::PushL(self); + self->BaseConstructL(); + return self; + } + +EXPORT_C CSenAttributes* CSenAttributes::NewL(const CSenAttributes& aAttributes) + { + CSenAttributes* self = NewLC(aAttributes); + CleanupStack::Pop(self); + return self; + } + +EXPORT_C CSenAttributes* CSenAttributes::NewLC(const CSenAttributes& aAttributes) + { + CSenAttributes* self = new (ELeave) CSenAttributes(); + CleanupStack::PushL(self); + self->BaseConstructL(aAttributes); + return self; + } + +void CSenAttributes::BaseConstructL() + { + TLSLOG_OPEN(KSenUtilsLogChannel,KSenUtilsLogLevel,KSenUtils,KSenUtilsLog); + TLSLOG_L(KSenUtilsLogChannel,KMinLogLevel ,"CSenAttributes::BaseConstructL(): Log opened"); + TLSLOG_L(KSenUtilsLogChannel,KMinLogLevel ,"CSenAttributes::BaseConstructL(): End"); + } + +void CSenAttributes::BaseConstructL(const CSenAttributes& aAttributes) + { + TLSLOG_OPEN(KSenUtilsLogChannel,KSenUtilsLogLevel,KSenUtils,KSenUtilsLog); + TLSLOG_L(KSenUtilsLogChannel,KMinLogLevel ,"CSenAttributes::BaseConstructL(): Log opened"); + TLSLOG_L(KSenUtilsLogChannel,KMinLogLevel ,"CSenAttributes::BaseConstructL(): End"); + + TInt error(KErrNone); + for (TInt i = 0; i