equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2001-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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "ct.h" |
|
21 #include "ct/logger.h" |
|
22 |
|
23 EXPORT_C void MCTTokenInterface::Release() |
|
24 { |
|
25 LOG(_L("MCTTokenInterface::Release: token interface released")); |
|
26 LOG_INC_INDENT(); |
|
27 |
|
28 // Get a copy of the token now before we delete the object |
|
29 MCTToken& token = Token(); |
|
30 // Delete the object |
|
31 DoRelease(); |
|
32 // THE OBJECT MAY NOW BE DELETED |
|
33 // Tell the token what's happened. |
|
34 token.Release(); |
|
35 |
|
36 LOG_DEC_INDENT(); |
|
37 } |
|
38 |
|
39 EXPORT_C void MCTTokenInterface::DoRelease() |
|
40 { |
|
41 LOG(_L("MCTTokenInterface::DoRelease: destroying token interface")); |
|
42 LOG_INC_INDENT(); |
|
43 |
|
44 delete this; |
|
45 |
|
46 LOG_DEC_INDENT(); |
|
47 } |