loggingservices/filelogger/SSVR/FLOGMAN.INL
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 /**
       
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalTechnology
       
    23 */
       
    24 
       
    25 #ifndef __FLOGSVR_INL__
       
    26 #define __FLOGSVR_INL__
       
    27 
       
    28 inline void CFileLogger::IncrementAccessCount()
       
    29 /**
       
    30 Increments access count for every new client
       
    31 
       
    32 */
       
    33 	{
       
    34 	iAccessCount++;
       
    35 	}
       
    36 
       
    37 inline void CFileLogger::DecrementAccessCount()
       
    38 /**
       
    39 Decrements server acess count
       
    40 */
       
    41 	{
       
    42 
       
    43 	iAccessCount--;
       
    44 	__ASSERT_DEBUG(iAccessCount>=0, User::Invariant());
       
    45 	}
       
    46 
       
    47 inline TInt CFileLogger::AccessCount() const
       
    48 /**
       
    49 Returns the count of accesses in the server
       
    50 
       
    51 @return Acess count of server session
       
    52 */
       
    53 	{
       
    54 	return iAccessCount;
       
    55 	}
       
    56 
       
    57 inline TLogFile CFileLogger::LogFile() const
       
    58 	{
       
    59 	return iLogFile;
       
    60 	}
       
    61 
       
    62 inline TBool CFileLogger::DeletionTimerActive() const
       
    63 	{
       
    64 	return iTimer->IsActive();
       
    65 	}
       
    66 
       
    67 #endif // __FLOGSVR_INL__
       
    68