1 // Copyright (c) 2005-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // SIPSCPR_subconevents.inl
15 // SIP extension events definition
26 inline CSubConSIPResponseEvent::CSubConSIPResponseEvent()
27 :iResponse(EInvalidResponse)
32 inline void CSubConSIPResponseEvent::SetResponse(TInt aResponse)
34 iResponse = aResponse;
37 inline TInt CSubConSIPResponseEvent::GetResponse() const
42 inline CSubConSIPResponseEvent* CSubConSIPResponseEvent::NewL()
44 STypeId typeId = STypeId::CreateSTypeId(KSubConSIPEventsUid, KSubConSIPResponseEventType);
45 return static_cast<CSubConSIPResponseEvent*>(CSubConNotificationEvent::NewL(typeId));
49 inline CSubConSIPAuthenticationRequiredEvent* CSubConSIPAuthenticationRequiredEvent::NewL()
51 STypeId typeId = STypeId::CreateSTypeId(KSubConSIPEventsUid, KSubConSIPAuthenticationRequiredEventType);
52 return static_cast<CSubConSIPAuthenticationRequiredEvent*>(CSubConNotificationEvent::NewL(typeId));
55 inline CSubConSIPAuthenticationRequiredEvent::CSubConSIPAuthenticationRequiredEvent()
59 inline void CSubConSIPAuthenticationRequiredEvent::SetRealmL(const TPtrC8& aRealm)
62 iRealm.CreateL(aRealm);
65 inline const TPtrC8& CSubConSIPAuthenticationRequiredEvent::GetRealm() const
67 return iRealm.LeftTPtr(iRealm.Length());
71 inline CSubConSIPNotificationEvent::CSubConSIPNotificationEvent()
75 inline void CSubConSIPNotificationEvent::SetNotificationL(const TPtrC8 & aNotification)
77 iNotification.Close();
78 iNotification.CreateL(aNotification);
81 inline const TPtrC8& CSubConSIPNotificationEvent::GetNotification() const
83 return iNotification.LeftTPtr(iNotification.Length());
86 inline CSubConSIPNotificationEvent* CSubConSIPNotificationEvent::NewL()
88 STypeId typeId = STypeId::CreateSTypeId(KSubConSIPEventsUid, KSubConSIPNotificationEventType);
89 return static_cast<CSubConSIPNotificationEvent*>(CSubConNotificationEvent::NewL(typeId));