cryptomgmtlibs/securitycommonutils/inc/cleanuputils.h
changeset 8 35751d3474b7
child 62 b23410e29e22
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * Template class CleanupResetAndDestroy to clean up the array
       
    16 * of implementation information from the cleanup stack.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalTechnology
       
    24  @prototype
       
    25 */
       
    26 
       
    27 #ifndef CLEANUPUTILS_H
       
    28 #define CLEANUPUTILS_H
       
    29 
       
    30 #include <e32base.h>
       
    31 	
       
    32 template <class T>
       
    33 inline void CleanupResetAndDestroyPushL(T& aRef);
       
    34 
       
    35 template <typename T>
       
    36 inline void DeleteObjectZ(T*& aPtr);
       
    37 
       
    38 inline HBufC8* ConvertBufferTo8bitL(const TDesC& aBuffer);
       
    39 inline HBufC* ConvertBufferTo16bitL(const TDesC8& aBuffer);
       
    40 
       
    41 #include <scs/cleanuputils.inl>
       
    42 
       
    43 #endif /* CLEANUPUTILS_H*/