diff -r 000000000000 -r 29b1cd4cb562 bluetooth/btexample/example/btsocket/src/exbtutil.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bluetooth/btexample/example/btsocket/src/exbtutil.cpp Fri Jan 15 08:13:17 2010 +0200 @@ -0,0 +1,43 @@ +// Copyright (c) 2004-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: +// Name : exbtutil.cpp +// Part of : ex_btsocket +// Created : 17/11/2004 by Shane Kearns +// Helper functions +// Version : +// +// + +#include +#include "exbtutil.h" + +_LIT(KExBtPanicCat, "EX_BTSOCKET"); +#ifdef _DEBUG +_LIT(KLogDir, "BT"); +_LIT(KLogFile, "EX_BTSOCKET.txt"); +#endif // _DEBUG +void ExBtSocket::Panic(TExBtPanic aReason) +{ + User::Panic(KExBtPanicCat, aReason); +} + +#ifdef _DEBUG +void ExBtSocket::Log(const TRefByValue aFmt, ...) + { + VA_LIST list; + VA_START(list, aFmt); + RFileLogger::WriteFormat(KLogDir, KLogFile, EFileLoggingModeAppend, aFmt, list); + } +#endif +