epoc32/include/http/thttpevent.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
permissions -rw-r--r--
Final list of Symbian^2 public API header files

// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// 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
// which accompanies this distribution, and is available
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//


inline THTTPEvent::THTTPEvent(TInt aStatus, TUint aUID)
: iStatus(aStatus), iUID(aUID), iIsSessionEventFlag(EFalse)
	{
	}

inline THTTPEvent::THTTPEvent(TStandardEvent aStatus)
: iStatus(aStatus), iUID(KHTTPUid), iIsSessionEventFlag(EFalse)
	{
	}

inline THTTPEvent::THTTPEvent(TTransactionEvent aStatus)
: iStatus(aStatus), iUID(KHTTPUid), iIsSessionEventFlag(EFalse)
	{
	}

inline THTTPEvent& THTTPEvent::operator=(TStandardEvent aStatus)
	{
	iUID = KHTTPUid;
	iStatus = aStatus;
	return *this;
	}

inline THTTPEvent& THTTPEvent::operator=(TTransactionEvent aStatus)
	{
	iUID = KHTTPUid;
	iStatus = aStatus;
	return *this;
	}

inline TBool THTTPEvent::operator==(THTTPEvent aThat) const
	{
	return (iStatus == aThat.iStatus && iUID == aThat.iUID);
	}

inline TBool THTTPEvent::operator!=(THTTPEvent aThat) const
	{
	return !(*this == aThat);
	}

inline TBool THTTPEvent::operator==(TStandardEvent aStatus) const
	{
	return (iStatus == aStatus && iUID == KHTTPUid);
	}

inline TBool THTTPEvent::operator!=(TStandardEvent aStatus) const
	{
	return !(*this == aStatus);
	}

inline TBool THTTPEvent::operator==(TTransactionEvent aStatus) const
	{
	return (iStatus == aStatus && iUID == KHTTPUid);
	}

inline TBool THTTPEvent::operator!=(TTransactionEvent aStatus) const
	{
	return !(*this == aStatus);
	}

inline TBool THTTPEvent::IsSessionEvent() const
	{
	return iIsSessionEventFlag;
	}

inline THTTPSessionEvent::THTTPSessionEvent(TInt aStatus, TUint aUID)
: THTTPEvent(aStatus, aUID)
	{
	iIsSessionEventFlag = ETrue;
	}

inline THTTPSessionEvent::THTTPSessionEvent(TStandardEvent aStatus)
: THTTPEvent(aStatus)
	{
	iIsSessionEventFlag = ETrue;
	}

inline THTTPSessionEvent::THTTPSessionEvent(TSessionEvent aStatus)
: THTTPEvent(aStatus)
	{
	iIsSessionEventFlag = ETrue;
	}

inline THTTPSessionEvent& THTTPSessionEvent::operator=(TSessionEvent aStatus)
	{
	iUID = KHTTPUid;
	iStatus = aStatus;
	return *this;
	}

inline TBool THTTPSessionEvent::operator==(TSessionEvent aStatus) const
	{
	return (iStatus == aStatus && iUID == KHTTPUid);
	}

inline TBool THTTPSessionEvent::operator!=(TSessionEvent aStatus) const
	{
	return !(*this == aStatus);
	}