37
|
1 |
/*
|
|
2 |
* Copyright (c) 2005 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 "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: Inline methods for CTeUtlRecoverySystem.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
// INCLUDE FILES
|
|
21 |
#include "ctelerecoverysystem.h"
|
|
22 |
|
|
23 |
|
|
24 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
25 |
|
|
26 |
// -----------------------------------------------------------------------------
|
|
27 |
// CleanupEarlyDestruct::PushL
|
|
28 |
// -----------------------------------------------------------------------------
|
|
29 |
//
|
|
30 |
template <class T>
|
|
31 |
inline void CleanupEarlyDestruct<T>::PushL( T& aRef )
|
|
32 |
{
|
|
33 |
CleanupStack::PushL( TCleanupItem( &Cleanup, &aRef ) );
|
|
34 |
}
|
|
35 |
|
|
36 |
// -----------------------------------------------------------------------------
|
|
37 |
// CleanupEarlyDestruct::Cleanup
|
|
38 |
// -----------------------------------------------------------------------------
|
|
39 |
//
|
|
40 |
template <class T>
|
|
41 |
void CleanupEarlyDestruct<T>::Cleanup( TAny *aPtr )
|
|
42 |
{
|
|
43 |
( static_cast< T* >( aPtr ) )->EarlyDestruct();
|
|
44 |
}
|
|
45 |
|
|
46 |
// -----------------------------------------------------------------------------
|
|
47 |
// CleanupEarlyDestructPushL
|
|
48 |
// -----------------------------------------------------------------------------
|
|
49 |
//
|
|
50 |
template <class T>
|
|
51 |
inline void CleanupEarlyDestructPushL( T& aRef )
|
|
52 |
{
|
|
53 |
CleanupEarlyDestruct<T>::PushL( aRef );
|
|
54 |
}
|
|
55 |
|
|
56 |
// End of File
|