os/persistentdata/loggingservices/rfilelogger/Logger/Src/Server.inl
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
sl@0
    17
inline TRequestStatus& CActiveBase::Status()
sl@0
    18
	{return iStatus;}
sl@0
    19
sl@0
    20
inline void CActiveBase::SetActive()
sl@0
    21
	{
sl@0
    22
	if(!IsActive())
sl@0
    23
		CActive::SetActive();
sl@0
    24
	}
sl@0
    25
sl@0
    26
inline void CActiveBase::Kick()
sl@0
    27
	{
sl@0
    28
	Prime();
sl@0
    29
	Complete(KErrNone);
sl@0
    30
	}
sl@0
    31
sl@0
    32
inline void CActiveBase::Prime()
sl@0
    33
	{
sl@0
    34
	iStatus = KRequestPending;
sl@0
    35
	if(!IsActive())
sl@0
    36
		CActive::SetActive();
sl@0
    37
	}
sl@0
    38
sl@0
    39
inline void CActiveBase::Complete(TInt aCode)
sl@0
    40
	{
sl@0
    41
	TRequestStatus* status = &iStatus;
sl@0
    42
	User::RequestComplete(status,aCode);
sl@0
    43
	}
sl@0
    44
sl@0
    45
inline	CActiveBase::CActiveBase() : CActive(EPriorityStandard)
sl@0
    46
	{CActiveScheduler::Add(this);}
sl@0
    47
sl@0
    48
inline CActiveBase::~CActiveBase()
sl@0
    49
	{}
sl@0
    50
sl@0
    51
///////
sl@0
    52
inline const TDesC& CLogFileControl::LogFile()
sl@0
    53
	{return iLogFileName;}
sl@0
    54
sl@0
    55
inline void CLogFileControl::DoCancel()
sl@0
    56
	{}
sl@0
    57
sl@0
    58
inline void CLogFileControl::AddSession()
sl@0
    59
	{iSessionCount++;}
sl@0
    60
sl@0
    61
inline void CLogFileControl::RemoveSession()
sl@0
    62
	{iSessionCount--;}
sl@0
    63
sl@0
    64
inline TInt CLogFileControl::SessionCount() const
sl@0
    65
	{return iSessionCount;}
sl@0
    66
sl@0
    67
inline TBool CLogFileControl::QueueEmpty() const
sl@0
    68
	{return iQueue.IsEmpty();}
sl@0
    69
sl@0
    70
inline void CLogFileControl::AddLogBuffer(CLogBuffer& aBuffer)
sl@0
    71
	{iQueue.AddLast(aBuffer);}
sl@0
    72
sl@0
    73
///////
sl@0
    74
inline RPointerArray<CLogFileControl>& CLogServer::LogControl()
sl@0
    75
	{return iControl;}
sl@0
    76
sl@0
    77
inline RFs& CLogServer::Fs()
sl@0
    78
	{return iFs;}
sl@0
    79
sl@0
    80
///////
sl@0
    81
inline const TDesC8& CLogBuffer::Buf()
sl@0
    82
	{return iLogBuffer;} 
sl@0
    83
sl@0
    84
inline TInt CLogBuffer::LinkOffset()
sl@0
    85
	{return _FOFF(CLogBuffer,iLink);}