epoc32/include/flogger.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 /**
    19  @file
    20  @internalTechnology
    21 */
    22 
    23 #ifndef __FLOGGER_INL__
    24 #define __FLOGGER_INL__
    25 
    26 #include <flogger.h>
    27 
    28 /**
    29 TSignal inline functions
    30 */
    31 
    32 inline FLogger::TSignal::TSignal(TRequestStatus& aStatus)
    33 	:iStatus(&aStatus),iId(RThread().Id())
    34 /**
    35 Sets aStatus with the value KRequestPending.
    36 
    37 */
    38 	{
    39 	aStatus=KRequestPending;
    40 	}
    41 
    42 inline TPtrC FLogger::TSignal::Command() const
    43 /**
    44 */
    45 	{
    46 	return TPtrC((const TText*)this,sizeof(*this)/sizeof(TText));
    47 	}
    48 
    49 inline TInt FLogger::TSignal::Set(const TDesC& aCommand)
    50 /**
    51 Sets aCommand with "this" pointer value.
    52 
    53 @return KErrNone, if successful.
    54 */
    55 	{
    56 	if (aCommand.Size()!=sizeof(*this))
    57 		return KErrGeneral;
    58 	
    59 	return (Mem::Copy(this,aCommand.Ptr(),sizeof(*this)),KErrNone);
    60 	}
    61 
    62 /**
    63 TLogFile inline functions
    64 */
    65 
    66 inline TBool TLogFile::Valid() const
    67 /**
    68 @return EFalse for invalid file name.
    69 */
    70 	{
    71 	return iValid;
    72 	}
    73 
    74 inline TFileName TLogFile::Directory() const
    75 /**
    76 @return iDirectory the full path of the folder.
    77 */
    78 	{
    79 	return iDirectory;
    80 	}
    81 	
    82 inline TFileName TLogFile::Name() const
    83 /**
    84 @return iName the file name of the log.
    85 */
    86 	{
    87 	return iName;
    88 	}
    89 
    90 inline TFileLoggingMode TLogFile::Mode() const
    91 /**
    92 @return iMode the mode of the log file.
    93 */
    94 	{
    95 	return iMode;
    96 	}	
    97 
    98 inline void TLogFile::SetValid(TBool aValid)
    99 /**
   100 Sets iValid with the value aValid.
   101 */
   102 	{
   103 	iValid=aValid;
   104 	}
   105 
   106 #endif // __FLOGGER_INL__