diff -r 2fe1408b6811 -r e1b950c65cb4 epoc32/include/mw/sip_subconevents.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/mw/sip_subconevents.inl Wed Mar 31 12:27:01 2010 +0100 @@ -0,0 +1,91 @@ +// Copyright (c) 2005-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: +// SIPSCPR_subconevents.inl +// SIP extension events definition +// +// + + + +/** + @file + @publishedAll +*/ + + +inline CSubConSIPResponseEvent::CSubConSIPResponseEvent() +:iResponse(EInvalidResponse) + { + } + + +inline void CSubConSIPResponseEvent::SetResponse(TInt aResponse) + { + iResponse = aResponse; + } + +inline TInt CSubConSIPResponseEvent::GetResponse() const + { + return iResponse; + } + +inline CSubConSIPResponseEvent* CSubConSIPResponseEvent::NewL() + { + STypeId typeId(KSubConSIPEventsUid, KSubConSIPResponseEventType); + return static_cast(CSubConNotificationEvent::NewL(typeId)); + } + + +inline CSubConSIPAuthenticationRequiredEvent* CSubConSIPAuthenticationRequiredEvent::NewL() + { + STypeId typeId(KSubConSIPEventsUid, KSubConSIPAuthenticationRequiredEventType); + return static_cast(CSubConNotificationEvent::NewL(typeId)); + } + +inline CSubConSIPAuthenticationRequiredEvent::CSubConSIPAuthenticationRequiredEvent() + { + } + +inline void CSubConSIPAuthenticationRequiredEvent::SetRealmL(const TPtrC8& aRealm) + { + iRealm.Close(); + iRealm.CreateL(aRealm); + } + +inline const TPtrC8& CSubConSIPAuthenticationRequiredEvent::GetRealm() const + { + return iRealm.LeftTPtr(iRealm.Length()); + } + + +inline CSubConSIPNotificationEvent::CSubConSIPNotificationEvent() + { + } + +inline void CSubConSIPNotificationEvent::SetNotificationL(const TPtrC8 & aNotification) + { + iNotification.Close(); + iNotification.CreateL(aNotification); + } + +inline const TPtrC8& CSubConSIPNotificationEvent::GetNotification() const + { + return iNotification.LeftTPtr(iNotification.Length()); + } + +inline CSubConSIPNotificationEvent* CSubConSIPNotificationEvent::NewL() + { + STypeId typeId(KSubConSIPEventsUid, KSubConSIPNotificationEventType); + return static_cast(CSubConNotificationEvent::NewL(typeId)); + }