williamr@2: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: /** williamr@2: @file williamr@2: williamr@2: Tests whether the Log Engine is installed. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @return True if there is a Log Engine, otherwise false williamr@2: williamr@2: */ williamr@2: inline TBool CSmsEventLogger::ClientAvailable() const williamr@4: { williamr@4: return iLogWrapper->ClientAvailable(); williamr@4: } williamr@2: williamr@2: /** williamr@2: * Gets a standard string from the specified resource. williamr@2: * williamr@2: * @publishedAll williamr@2: * @released williamr@2: * @param aString On return, string read from resource williamr@2: * @param aId Resource ID williamr@2: * @return KErrNone, if successful; otherwise, one of the other system wide error williamr@2: * codes williamr@2: */ williamr@2: inline TInt CSmsEventLogger::GetString(TDes& aString, TInt aId) const williamr@4: { williamr@4: return iLogWrapper->Log().GetString(aString,aId); williamr@4: } williamr@2: williamr@2: /** williamr@2: * Gets the current log event. williamr@2: * williamr@2: * @publishedAll williamr@2: * @released williamr@2: * @return Current log event williamr@2: */ williamr@2: inline CLogEvent& CSmsEventLogger::Event() williamr@4: { williamr@4: return *iLogEvent; williamr@4: } williamr@2: williamr@2: /** williamr@2: * Gets the current (const) log event. williamr@2: * williamr@2: * @publishedAll williamr@2: * @released williamr@2: * @return Current log event williamr@2: */ williamr@2: inline const CLogEvent& CSmsEventLogger::Event() const williamr@4: { williamr@4: return *iLogEvent; williamr@4: } williamr@2: williamr@2: /** williamr@2: * Gets the current event's SMS PDU data. williamr@2: * williamr@2: * @publishedAll williamr@2: * @released williamr@2: * @return Current event's SMS PDU data williamr@2: */ williamr@2: inline const TLogSmsPduData& CSmsEventLogger::SmsPDUData() const williamr@4: { williamr@4: return iSmsPDUData; williamr@4: } williamr@2: williamr@2: /** williamr@2: * Gets the current event's SMS PDU data. williamr@4: * @publishedAll williamr@2: */ williamr@2: inline void CSmsEventLogger::GetStringL(TDes& aString, TInt aId) const williamr@4: { williamr@4: User::LeaveIfError(iLogWrapper->Log().GetString(aString,aId)); williamr@4: }