diff -r c1e808730d6c -r eedf2dcd43c6 omxil/mmilapi/ilif/inc/tilstruct.inl --- a/omxil/mmilapi/ilif/inc/tilstruct.inl Mon May 03 13:56:28 2010 +0300 +++ b/omxil/mmilapi/ilif/inc/tilstruct.inl Fri May 07 16:25:23 2010 +0100 @@ -1,99 +1,99 @@ -// 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: -// - -/** - @file - @internalTechnology - @prototype -*/ - -#ifndef TILSTRUCT_INL -#define TILSTRUCT_INL - -/** -Constructor -*/ -inline TILStruct::TILStruct() - : - iUid(KNullUid) - { - } - -/** -Obtain the UID identifying the structure. -@return The identifying UID of the structure. -*/ -inline const TUid& TILStruct::Uid() const - { - return iUid; - } - -/** -Constructor -@param aParameterStructure The structure to store -*/ -template -inline TILStructParam::TILStructParam(const T& aParameterStructure) - { - iUid = TUid::Uid(U); - iBuf = TPckgBuf(aParameterStructure); - } - -/** -Default Constructor -*/ -template -inline TILStructParam::TILStructParam() - { - iUid = TUid::Uid(U); - } - -/** -Operator to return the structure represented by the class. -@return The structure represented by the class. -*/ -template -inline TILStructParam::operator T&() - { - return iBuf(); - } - -/** -Static method to return the structure represented by TILStruct. -@param A const reference to the base structure. -@return A const pointer to the structure represented by the class. -*/ -template -inline const T* TILStructParam::GetStructure(const TILStruct& aConfig) - { - const T* ptr = &((static_cast& >(aConfig)).iBuf()); - return ptr; - } - -/** -Static method to return the structure represented by TILStruct. -@param A reference to the base structure. -@return A pointer to the structure represented by the class. -*/ -template -inline T* TILStructParam::GetStructure(TILStruct& aConfig) - { - T* ptr = &((static_cast& >(aConfig)).iBuf()); - return ptr; - } - - - -#endif // TILSTRUCT_INL +// 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: +// + +/** + @file + @internalTechnology + @prototype +*/ + +#ifndef TILSTRUCT_INL +#define TILSTRUCT_INL + +/** +Constructor +*/ +inline TILStruct::TILStruct() + : + iUid(KNullUid) + { + } + +/** +Obtain the UID identifying the structure. +@return The identifying UID of the structure. +*/ +inline const TUid& TILStruct::Uid() const + { + return iUid; + } + +/** +Constructor +@param aParameterStructure The structure to store +*/ +template +inline TILStructParam::TILStructParam(const T& aParameterStructure) + { + iUid = TUid::Uid(U); + iBuf = TPckgBuf(aParameterStructure); + } + +/** +Default Constructor +*/ +template +inline TILStructParam::TILStructParam() + { + iUid = TUid::Uid(U); + } + +/** +Operator to return the structure represented by the class. +@return The structure represented by the class. +*/ +template +inline TILStructParam::operator T&() + { + return iBuf(); + } + +/** +Static method to return the structure represented by TILStruct. +@param A const reference to the base structure. +@return A const pointer to the structure represented by the class. +*/ +template +inline const T* TILStructParam::GetStructure(const TILStruct& aConfig) + { + const T* ptr = &((static_cast& >(aConfig)).iBuf()); + return ptr; + } + +/** +Static method to return the structure represented by TILStruct. +@param A reference to the base structure. +@return A pointer to the structure represented by the class. +*/ +template +inline T* TILStructParam::GetStructure(TILStruct& aConfig) + { + T* ptr = &((static_cast& >(aConfig)).iBuf()); + return ptr; + } + + + +#endif // TILSTRUCT_INL