epoc32/include/sip_subconevents.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) 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 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 // SIPSCPR_subconevents.inl
    15 // SIP extension events definition
    16 // 
    17 //
    18 
    19 
    20 
    21 /**
    22  @file
    23  @publishedAll
    24 */
    25 
    26 
    27 inline CSubConSIPResponseEvent::CSubConSIPResponseEvent()
    28 :iResponse(EInvalidResponse)
    29     {
    30     }
    31 
    32 
    33 inline void CSubConSIPResponseEvent::SetResponse(TInt aResponse)
    34     {
    35     iResponse = aResponse;
    36     }
    37 
    38 inline TInt CSubConSIPResponseEvent::GetResponse() const
    39     {
    40     return iResponse;
    41     }
    42 	
    43 inline CSubConSIPResponseEvent* CSubConSIPResponseEvent::NewL()
    44 	{
    45 	STypeId typeId(KSubConSIPEventsUid, KSubConSIPResponseEventType);
    46 	return static_cast<CSubConSIPResponseEvent*>(CSubConNotificationEvent::NewL(typeId));
    47 	}
    48 
    49         
    50 inline CSubConSIPAuthenticationRequiredEvent* CSubConSIPAuthenticationRequiredEvent::NewL()
    51 	{
    52 	STypeId typeId(KSubConSIPEventsUid, KSubConSIPAuthenticationRequiredEventType);
    53 	return static_cast<CSubConSIPAuthenticationRequiredEvent*>(CSubConNotificationEvent::NewL(typeId));
    54 	}
    55 
    56 inline CSubConSIPAuthenticationRequiredEvent::CSubConSIPAuthenticationRequiredEvent()
    57     {
    58     }
    59 
    60 inline void CSubConSIPAuthenticationRequiredEvent::SetRealmL(const TPtrC8& aRealm)
    61     {
    62     iRealm.Close();
    63     iRealm.CreateL(aRealm);
    64     }
    65 
    66 inline const TPtrC8& CSubConSIPAuthenticationRequiredEvent::GetRealm() const
    67     {
    68 	return iRealm.LeftTPtr(iRealm.Length());    
    69     }
    70 
    71 
    72 inline CSubConSIPNotificationEvent::CSubConSIPNotificationEvent()
    73     {
    74     }
    75 
    76 inline void CSubConSIPNotificationEvent::SetNotificationL(const TPtrC8 & aNotification)
    77     {
    78     iNotification.Close();
    79     iNotification.CreateL(aNotification); 
    80     }
    81 
    82 inline const TPtrC8& CSubConSIPNotificationEvent::GetNotification() const
    83     {
    84     return iNotification.LeftTPtr(iNotification.Length());
    85     }
    86 	
    87 inline CSubConSIPNotificationEvent* CSubConSIPNotificationEvent::NewL()
    88 	{
    89 	STypeId typeId(KSubConSIPEventsUid, KSubConSIPNotificationEventType);
    90 	return static_cast<CSubConSIPNotificationEvent*>(CSubConNotificationEvent::NewL(typeId));
    91 	}