1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/loggingservices/rfilelogger/Logger/Src/Server.inl Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,85 @@
1.4 +// Copyright (c) 2004-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 "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.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 +inline TRequestStatus& CActiveBase::Status()
1.21 + {return iStatus;}
1.22 +
1.23 +inline void CActiveBase::SetActive()
1.24 + {
1.25 + if(!IsActive())
1.26 + CActive::SetActive();
1.27 + }
1.28 +
1.29 +inline void CActiveBase::Kick()
1.30 + {
1.31 + Prime();
1.32 + Complete(KErrNone);
1.33 + }
1.34 +
1.35 +inline void CActiveBase::Prime()
1.36 + {
1.37 + iStatus = KRequestPending;
1.38 + if(!IsActive())
1.39 + CActive::SetActive();
1.40 + }
1.41 +
1.42 +inline void CActiveBase::Complete(TInt aCode)
1.43 + {
1.44 + TRequestStatus* status = &iStatus;
1.45 + User::RequestComplete(status,aCode);
1.46 + }
1.47 +
1.48 +inline CActiveBase::CActiveBase() : CActive(EPriorityStandard)
1.49 + {CActiveScheduler::Add(this);}
1.50 +
1.51 +inline CActiveBase::~CActiveBase()
1.52 + {}
1.53 +
1.54 +///////
1.55 +inline const TDesC& CLogFileControl::LogFile()
1.56 + {return iLogFileName;}
1.57 +
1.58 +inline void CLogFileControl::DoCancel()
1.59 + {}
1.60 +
1.61 +inline void CLogFileControl::AddSession()
1.62 + {iSessionCount++;}
1.63 +
1.64 +inline void CLogFileControl::RemoveSession()
1.65 + {iSessionCount--;}
1.66 +
1.67 +inline TInt CLogFileControl::SessionCount() const
1.68 + {return iSessionCount;}
1.69 +
1.70 +inline TBool CLogFileControl::QueueEmpty() const
1.71 + {return iQueue.IsEmpty();}
1.72 +
1.73 +inline void CLogFileControl::AddLogBuffer(CLogBuffer& aBuffer)
1.74 + {iQueue.AddLast(aBuffer);}
1.75 +
1.76 +///////
1.77 +inline RPointerArray<CLogFileControl>& CLogServer::LogControl()
1.78 + {return iControl;}
1.79 +
1.80 +inline RFs& CLogServer::Fs()
1.81 + {return iFs;}
1.82 +
1.83 +///////
1.84 +inline const TDesC8& CLogBuffer::Buf()
1.85 + {return iLogBuffer;}
1.86 +
1.87 +inline TInt CLogBuffer::LinkOffset()
1.88 + {return _FOFF(CLogBuffer,iLink);}