os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServOperationBase.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2002-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 // LOGSERVEROPERATIONBASE.INL
    15 // 
    16 //
    17 
    18 #ifndef __LOGSERVEROPERATIONBASE_INL__
    19 #define __LOGSERVEROPERATIONBASE_INL__
    20 
    21 
    22 inline RMessage2& CLogServOperationBase::Message()
    23 	{
    24 	return iMessage;
    25 	}
    26 
    27 inline void CLogServOperationBase::Cancel()
    28 	{
    29 	Complete(KErrCancel);
    30 	}
    31 
    32 inline TBool CLogServOperationBase::HaveMessagePointer() const
    33 	{
    34 	return (!iMessage.IsNull());
    35 	}
    36 
    37 inline void CLogServOperationBase::ClearMessagePointer()
    38 	{
    39 	iMessage = RMessage2();
    40 	}
    41 
    42 inline TLogOperationType CLogServOperationBase::Type() const
    43 	{
    44 	return iClientServerData.iOperationType;
    45 	}
    46 
    47 inline TLogOperationId CLogServOperationBase::Id() const
    48 	{
    49 	return iClientServerData.iOperationId;
    50 	}
    51 
    52 inline CLogPackage& CLogServOperationBase::Package()
    53 	{
    54 	return iPackage;
    55 	}
    56 
    57 inline MLogServTaskInterface& CLogServOperationBase::TaskInterface() const
    58 	{
    59 	return iTaskInterface;
    60 	}
    61 
    62 inline MLogServOperationManager& CLogServOperationBase::OperationManager() const
    63 	{
    64 	return iOperationManager;
    65 	}
    66 
    67 inline TLogServSessionId CLogServOperationBase::SessionId()
    68 	{
    69 	return iSessionId;
    70 	}
    71 
    72 inline const TLogClientServerData& CLogServOperationBase::ClientServerData() const
    73 	{
    74 	return iClientServerData;
    75 	}
    76 
    77 inline void CLogServOperationBase::SetMessageCompletion(const TBool aMessageCompletion)
    78 	{
    79 	iMessageCompletion = aMessageCompletion;
    80 	}
    81 
    82 #endif