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