sl@0: // Copyright (c) 2004-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 "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: inline TRequestStatus& CActiveBase::Status() sl@0: {return iStatus;} sl@0: sl@0: inline void CActiveBase::SetActive() sl@0: { sl@0: if(!IsActive()) sl@0: CActive::SetActive(); sl@0: } sl@0: sl@0: inline void CActiveBase::Kick() sl@0: { sl@0: Prime(); sl@0: Complete(KErrNone); sl@0: } sl@0: sl@0: inline void CActiveBase::Prime() sl@0: { sl@0: iStatus = KRequestPending; sl@0: if(!IsActive()) sl@0: CActive::SetActive(); sl@0: } sl@0: sl@0: inline void CActiveBase::Complete(TInt aCode) sl@0: { sl@0: TRequestStatus* status = &iStatus; sl@0: User::RequestComplete(status,aCode); sl@0: } sl@0: sl@0: inline CActiveBase::CActiveBase() : CActive(EPriorityStandard) sl@0: {CActiveScheduler::Add(this);} sl@0: sl@0: inline CActiveBase::~CActiveBase() sl@0: {} sl@0: sl@0: /////// sl@0: inline const TDesC& CLogFileControl::LogFile() sl@0: {return iLogFileName;} sl@0: sl@0: inline void CLogFileControl::DoCancel() sl@0: {} sl@0: sl@0: inline void CLogFileControl::AddSession() sl@0: {iSessionCount++;} sl@0: sl@0: inline void CLogFileControl::RemoveSession() sl@0: {iSessionCount--;} sl@0: sl@0: inline TInt CLogFileControl::SessionCount() const sl@0: {return iSessionCount;} sl@0: sl@0: inline TBool CLogFileControl::QueueEmpty() const sl@0: {return iQueue.IsEmpty();} sl@0: sl@0: inline void CLogFileControl::AddLogBuffer(CLogBuffer& aBuffer) sl@0: {iQueue.AddLast(aBuffer);} sl@0: sl@0: /////// sl@0: inline RPointerArray& CLogServer::LogControl() sl@0: {return iControl;} sl@0: sl@0: inline RFs& CLogServer::Fs() sl@0: {return iFs;} sl@0: sl@0: /////// sl@0: inline const TDesC8& CLogBuffer::Buf() sl@0: {return iLogBuffer;} sl@0: sl@0: inline TInt CLogBuffer::LinkOffset() sl@0: {return _FOFF(CLogBuffer,iLink);}