diff -r 000000000000 -r d0791faffa3f mtptransports/mtpptpiptransport/ptpipdatatypes/src/tptpipinitevtack.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mtptransports/mtpptpiptransport/ptpipdatatypes/src/tptpipinitevtack.cpp Tue Feb 02 01:11:40 2010 +0200 @@ -0,0 +1,49 @@ +// 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: +// + +/** + @internalComponent +*/ + +#include "tptpipinitevtack.h" +#include "ptpipdatatypes.h" + +// Dataset element metadata. +const TPTPIPInitEvtAck::TElementInfo TPTPIPInitEvtAck::iElementMetaData[ENumElements] = + { + {EMTPTypeUINT32, 0, KMTPTypeUINT32Size}, // ELength + {EMTPTypeUINT32, 4, KMTPTypeUINT32Size}, // EType + }; + +/** +Constructor +*/ +EXPORT_C TPTPIPInitEvtAck::TPTPIPInitEvtAck() : + iElementInfo(iElementMetaData, ENumElements), + iBuffer(KSize) + { + SetBuffer(iBuffer); + } + +EXPORT_C TUint TPTPIPInitEvtAck::Type() const + { + return EPTPIPTypeInitEvtAck ; + } + +EXPORT_C const TMTPTypeFlatBase::TElementInfo& TPTPIPInitEvtAck::ElementInfo(TInt aElementId) const + { + __ASSERT_DEBUG((aElementId < ENumElements), User::Invariant()); + return iElementInfo[aElementId]; + }