1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/smsulog.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,97 @@
1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +
1.20 +
1.21 +
1.22 +/**
1.23 + @file
1.24 +
1.25 + Tests whether the Log Engine is installed.
1.26 +
1.27 + @publishedAll
1.28 + @released
1.29 + @return True if there is a Log Engine, otherwise false
1.30 +
1.31 +*/
1.32 +inline TBool CSmsEventLogger::ClientAvailable() const
1.33 + {
1.34 + return iLogWrapper->ClientAvailable();
1.35 + }
1.36 +
1.37 +
1.38 +/**
1.39 + * Gets a standard string from the specified resource.
1.40 + *
1.41 + * @publishedAll
1.42 + * @released
1.43 + * @param aString On return, string read from resource
1.44 + * @param aId Resource ID
1.45 + * @return KErrNone, if successful; otherwise, one of the other system wide error
1.46 + * codes
1.47 + */
1.48 +inline TInt CSmsEventLogger::GetString(TDes& aString, TInt aId) const
1.49 + {
1.50 + return iLogWrapper->Log().GetString(aString,aId);
1.51 + }
1.52 +
1.53 +
1.54 +/**
1.55 + * Gets the current log event.
1.56 + *
1.57 + * @publishedAll
1.58 + * @released
1.59 + * @return Current log event
1.60 + */
1.61 +inline CLogEvent& CSmsEventLogger::Event()
1.62 + {
1.63 + return *iLogEvent;
1.64 + }
1.65 +
1.66 +
1.67 +/**
1.68 + * Gets the current (const) log event.
1.69 + *
1.70 + * @publishedAll
1.71 + * @released
1.72 + * @return Current log event
1.73 + */
1.74 +inline const CLogEvent& CSmsEventLogger::Event() const
1.75 + {
1.76 + return *iLogEvent;
1.77 + }
1.78 +
1.79 +
1.80 +/**
1.81 + * Gets the current event's SMS PDU data.
1.82 + *
1.83 + * @publishedAll
1.84 + * @released
1.85 + * @return Current event's SMS PDU data
1.86 + */
1.87 +inline const TLogSmsPduData& CSmsEventLogger::SmsPDUData() const
1.88 + {
1.89 + return iSmsPDUData;
1.90 + }
1.91 +
1.92 +
1.93 +/**
1.94 + * Gets the current event's SMS PDU data.
1.95 + * @internalComponent
1.96 + */
1.97 +inline void CSmsEventLogger::GetStringL(TDes& aString, TInt aId) const
1.98 + {
1.99 + User::LeaveIfError(iLogWrapper->Log().GetString(aString,aId));
1.100 + }