sl@0: /* sl@0: * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include sl@0: #include "ct.h" sl@0: #include "ct/logger.h" sl@0: sl@0: EXPORT_C void MCTTokenInterface::Release() sl@0: { sl@0: LOG(_L("MCTTokenInterface::Release: token interface released")); sl@0: LOG_INC_INDENT(); sl@0: sl@0: // Get a copy of the token now before we delete the object sl@0: MCTToken& token = Token(); sl@0: // Delete the object sl@0: DoRelease(); sl@0: // THE OBJECT MAY NOW BE DELETED sl@0: // Tell the token what's happened. sl@0: token.Release(); sl@0: sl@0: LOG_DEC_INDENT(); sl@0: } sl@0: sl@0: EXPORT_C void MCTTokenInterface::DoRelease() sl@0: { sl@0: LOG(_L("MCTTokenInterface::DoRelease: destroying token interface")); sl@0: LOG_INC_INDENT(); sl@0: sl@0: delete this; sl@0: sl@0: LOG_DEC_INDENT(); sl@0: }