diff -r e1b950c65cb4 -r 837f303aceeb epoc32/include/uloggerdatatypes.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/uloggerdatatypes.h Wed Mar 31 12:33:34 2010 +0100 @@ -0,0 +1,81 @@ +// 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: +// ULogger +// +// + +/** + @file + @publishedPartner + @prototype +*/ +#ifndef DATATYPES_INL_ +#define DATATYPES_INL_ + +#include + +namespace Ulogger +{ + +const TInt KPluginConfigMaxKeySize = 256; +const TInt KPluginConfigMaxValSize = KPluginConfigMaxKeySize; + +/** +Class to store 'key - value' data on heap. +*/ +class TPluginConfiguration + { +public: + void SetKey(const TDesC& aKey) + { + iKey.Copy(aKey); + } + + void SetKey(const TDesC8& aKey) + { + iKey.Copy(aKey); + } + + const TBuf& Key() const + { + return iKey; + } + + void SetValue(const TDesC& aValue) + { + iValue.Copy(aValue); + } + + void SetValue(const TDesC8& aValue) + { + iValue.Copy(aValue); + } + + const TBuf& Value() const + { + return iValue; + } + +private: + TBuf iKey; + TBuf iValue; + }; + + enum //TBufferMode + { + ECircularBuffer = 0, + EStraightBuffer + }; +} //end of namespace +#endif /*DATATYPES_INL_*/