epoc32/include/mw/sip_subconevents.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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".
     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  @file
    21  @publishedAll
    22  @released
    23 */
    24 
    25 
    26 inline CSubConSIPResponseEvent::CSubConSIPResponseEvent()
    27 :iResponse(EInvalidResponse)
    28     {
    29     }
    30 
    31 
    32 inline void CSubConSIPResponseEvent::SetResponse(TInt aResponse)
    33     {
    34     iResponse = aResponse;
    35     }
    36 
    37 inline TInt CSubConSIPResponseEvent::GetResponse() const
    38     {
    39     return iResponse;
    40     }
    41 	
    42 inline CSubConSIPResponseEvent* CSubConSIPResponseEvent::NewL()
    43 	{
    44 	STypeId typeId = STypeId::CreateSTypeId(KSubConSIPEventsUid, KSubConSIPResponseEventType);
    45 	return static_cast<CSubConSIPResponseEvent*>(CSubConNotificationEvent::NewL(typeId));
    46 	}
    47 
    48         
    49 inline CSubConSIPAuthenticationRequiredEvent* CSubConSIPAuthenticationRequiredEvent::NewL()
    50 	{
    51 	STypeId typeId = STypeId::CreateSTypeId(KSubConSIPEventsUid, KSubConSIPAuthenticationRequiredEventType);
    52 	return static_cast<CSubConSIPAuthenticationRequiredEvent*>(CSubConNotificationEvent::NewL(typeId));
    53 	}
    54 
    55 inline CSubConSIPAuthenticationRequiredEvent::CSubConSIPAuthenticationRequiredEvent()
    56     {
    57     }
    58 
    59 inline void CSubConSIPAuthenticationRequiredEvent::SetRealmL(const TPtrC8& aRealm)
    60     {
    61     iRealm.Close();
    62     iRealm.CreateL(aRealm);
    63     }
    64 
    65 inline const TPtrC8& CSubConSIPAuthenticationRequiredEvent::GetRealm() const
    66     {
    67 	return iRealm.LeftTPtr(iRealm.Length());    
    68     }
    69 
    70 
    71 inline CSubConSIPNotificationEvent::CSubConSIPNotificationEvent()
    72     {
    73     }
    74 
    75 inline void CSubConSIPNotificationEvent::SetNotificationL(const TPtrC8 & aNotification)
    76     {
    77     iNotification.Close();
    78     iNotification.CreateL(aNotification); 
    79     }
    80 
    81 inline const TPtrC8& CSubConSIPNotificationEvent::GetNotification() const
    82     {
    83     return iNotification.LeftTPtr(iNotification.Length());
    84     }
    85 	
    86 inline CSubConSIPNotificationEvent* CSubConSIPNotificationEvent::NewL()
    87 	{
    88 	STypeId typeId = STypeId::CreateSTypeId(KSubConSIPEventsUid, KSubConSIPNotificationEventType);
    89 	return static_cast<CSubConSIPNotificationEvent*>(CSubConNotificationEvent::NewL(typeId));
    90 	}
    91