1.1 --- a/epoc32/include/flogger.inl Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,106 +0,0 @@
1.4 -// Copyright (c) 1997-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 - @file
1.23 - @internalTechnology
1.24 -*/
1.25 -
1.26 -#ifndef __FLOGGER_INL__
1.27 -#define __FLOGGER_INL__
1.28 -
1.29 -#include <flogger.h>
1.30 -
1.31 -/**
1.32 -TSignal inline functions
1.33 -*/
1.34 -
1.35 -inline FLogger::TSignal::TSignal(TRequestStatus& aStatus)
1.36 - :iStatus(&aStatus),iId(RThread().Id())
1.37 -/**
1.38 -Sets aStatus with the value KRequestPending.
1.39 -
1.40 -*/
1.41 - {
1.42 - aStatus=KRequestPending;
1.43 - }
1.44 -
1.45 -inline TPtrC FLogger::TSignal::Command() const
1.46 -/**
1.47 -*/
1.48 - {
1.49 - return TPtrC((const TText*)this,sizeof(*this)/sizeof(TText));
1.50 - }
1.51 -
1.52 -inline TInt FLogger::TSignal::Set(const TDesC& aCommand)
1.53 -/**
1.54 -Sets aCommand with "this" pointer value.
1.55 -
1.56 -@return KErrNone, if successful.
1.57 -*/
1.58 - {
1.59 - if (aCommand.Size()!=sizeof(*this))
1.60 - return KErrGeneral;
1.61 -
1.62 - return (Mem::Copy(this,aCommand.Ptr(),sizeof(*this)),KErrNone);
1.63 - }
1.64 -
1.65 -/**
1.66 -TLogFile inline functions
1.67 -*/
1.68 -
1.69 -inline TBool TLogFile::Valid() const
1.70 -/**
1.71 -@return EFalse for invalid file name.
1.72 -*/
1.73 - {
1.74 - return iValid;
1.75 - }
1.76 -
1.77 -inline TFileName TLogFile::Directory() const
1.78 -/**
1.79 -@return iDirectory the full path of the folder.
1.80 -*/
1.81 - {
1.82 - return iDirectory;
1.83 - }
1.84 -
1.85 -inline TFileName TLogFile::Name() const
1.86 -/**
1.87 -@return iName the file name of the log.
1.88 -*/
1.89 - {
1.90 - return iName;
1.91 - }
1.92 -
1.93 -inline TFileLoggingMode TLogFile::Mode() const
1.94 -/**
1.95 -@return iMode the mode of the log file.
1.96 -*/
1.97 - {
1.98 - return iMode;
1.99 - }
1.100 -
1.101 -inline void TLogFile::SetValid(TBool aValid)
1.102 -/**
1.103 -Sets iValid with the value aValid.
1.104 -*/
1.105 - {
1.106 - iValid=aValid;
1.107 - }
1.108 -
1.109 -#endif // __FLOGGER_INL__