author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:27:01 +0100 | |
branch | Symbian2 |
changeset 3 | e1b950c65cb4 |
parent 2 | epoc32/include/sip_subconevents.h@2fe1408b6811 |
child 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@2 | 1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 2 |
// All rights reserved. |
williamr@2 | 3 |
// This component and the accompanying materials are made available |
williamr@2 | 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 |
williamr@2 | 5 |
// which accompanies this distribution, and is available |
williamr@2 | 6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
williamr@2 | 7 |
// |
williamr@2 | 8 |
// Initial Contributors: |
williamr@2 | 9 |
// Nokia Corporation - initial contribution. |
williamr@2 | 10 |
// |
williamr@2 | 11 |
// Contributors: |
williamr@2 | 12 |
// |
williamr@2 | 13 |
// Description: |
williamr@2 | 14 |
// SIPSCPR_subconevents.h |
williamr@2 | 15 |
// SIP extension events definition |
williamr@2 | 16 |
// |
williamr@2 | 17 |
// |
williamr@2 | 18 |
|
williamr@2 | 19 |
|
williamr@2 | 20 |
|
williamr@2 | 21 |
/** |
williamr@2 | 22 |
@file |
williamr@2 | 23 |
@publishedAll |
williamr@2 | 24 |
@released since v9.2 |
williamr@2 | 25 |
*/ |
williamr@2 | 26 |
|
williamr@2 | 27 |
#ifndef SIPSCPR_SUBCONEVENTS_H |
williamr@2 | 28 |
#define SIPSCPR_SUBCONEVENTS_H |
williamr@2 | 29 |
|
williamr@2 | 30 |
#include <es_sock.h> |
williamr@2 | 31 |
#include <comms-infras/metabuffer.h> |
williamr@2 | 32 |
|
williamr@2 | 33 |
/** The numeric value of ECOM plugin identifier for this SubConnection SIP event parameter.See the assisting *.rss file. */ |
williamr@2 | 34 |
const TInt KSubConSIPEventsUid = 0x10274CAE; |
williamr@2 | 35 |
|
williamr@2 | 36 |
/** The numeric value of Response event type identifier for SIP extension parameter set */ |
williamr@2 | 37 |
const TInt KSubConSIPResponseEventType = 1; |
williamr@2 | 38 |
|
williamr@2 | 39 |
/** The numeric value of AuthenticationRequired event type identifier for SIP extension parameter set */ |
williamr@2 | 40 |
const TInt KSubConSIPAuthenticationRequiredEventType = 2; |
williamr@2 | 41 |
|
williamr@2 | 42 |
/** The numeric value of Notification event type identifier for SIP extension parameter set */ |
williamr@2 | 43 |
const TInt KSubConSIPNotificationEventType = 3; |
williamr@2 | 44 |
|
williamr@2 | 45 |
|
williamr@2 | 46 |
class CSubConSIPResponseEvent : public CSubConNotificationEvent |
williamr@2 | 47 |
/** CSubConSIPResponseEvent is used to get and set the response elements of the most recent response |
williamr@2 | 48 |
|
williamr@2 | 49 |
@publishedAll |
williamr@2 | 50 |
@released since v9.2 */ |
williamr@2 | 51 |
{ |
williamr@2 | 52 |
public: |
williamr@2 | 53 |
/** |
williamr@2 | 54 |
Identifies the predefined type of Response . |
williamr@2 | 55 |
*/ |
williamr@2 | 56 |
enum PredefinedResponses |
williamr@2 | 57 |
{ |
williamr@2 | 58 |
/** The numeric value of Invalid Response */ |
williamr@2 | 59 |
EInvalidResponse = 0 |
williamr@2 | 60 |
}; |
williamr@2 | 61 |
|
williamr@2 | 62 |
inline static CSubConSIPResponseEvent* NewL(); |
williamr@2 | 63 |
/** Constructor. */ |
williamr@2 | 64 |
inline CSubConSIPResponseEvent(); |
williamr@2 | 65 |
/** Destructor. */ |
williamr@2 | 66 |
virtual ~CSubConSIPResponseEvent(); |
williamr@2 | 67 |
/** Sets Response Code of the SIP Response. **/ |
williamr@2 | 68 |
inline void SetResponse(TInt aResponse); |
williamr@2 | 69 |
/** Gets Response Code of the SIP Response. **/ |
williamr@2 | 70 |
inline TInt GetResponse() const; |
williamr@2 | 71 |
|
williamr@2 | 72 |
protected: |
williamr@2 | 73 |
/** The Response Code of the SIP reasponse. */ |
williamr@2 | 74 |
TInt iResponse; |
williamr@2 | 75 |
DATA_VTABLE |
williamr@2 | 76 |
}; |
williamr@2 | 77 |
|
williamr@2 | 78 |
|
williamr@2 | 79 |
class CSubConSIPAuthenticationRequiredEvent : public CSubConNotificationEvent |
williamr@2 | 80 |
/** CSubConSIPAuthenticationRequiredEvent is used when SIP authentication is required |
williamr@2 | 81 |
|
williamr@2 | 82 |
@publishedAll |
williamr@2 | 83 |
@released since v9.2 */ |
williamr@2 | 84 |
{ |
williamr@2 | 85 |
public: |
williamr@2 | 86 |
|
williamr@2 | 87 |
inline static CSubConSIPAuthenticationRequiredEvent* NewL(); |
williamr@2 | 88 |
/** Constructor. */ |
williamr@2 | 89 |
inline CSubConSIPAuthenticationRequiredEvent(); |
williamr@2 | 90 |
/** Destructor. */ |
williamr@2 | 91 |
virtual ~CSubConSIPAuthenticationRequiredEvent(); |
williamr@2 | 92 |
/** Sets Realm field of the SIP header. **/ |
williamr@2 | 93 |
inline void SetRealmL(const TPtrC8& aRealm); |
williamr@2 | 94 |
/** Gets Realm field of the SIP header. **/ |
williamr@2 | 95 |
inline const TPtrC8& GetRealm() const; |
williamr@2 | 96 |
|
williamr@2 | 97 |
protected: |
williamr@2 | 98 |
/** The Realm entry of Authenticate field in a SIP header. */ |
williamr@2 | 99 |
RBuf8 iRealm; |
williamr@2 | 100 |
DATA_VTABLE |
williamr@2 | 101 |
}; |
williamr@2 | 102 |
|
williamr@2 | 103 |
|
williamr@2 | 104 |
class CSubConSIPNotificationEvent : public CSubConNotificationEvent |
williamr@2 | 105 |
/** CSubConSIPNotificationEvent is used for receiving SIP event notifications |
williamr@2 | 106 |
|
williamr@2 | 107 |
@publishedAll |
williamr@2 | 108 |
@released since v9.2 */ |
williamr@2 | 109 |
{ |
williamr@2 | 110 |
public: |
williamr@2 | 111 |
inline static CSubConSIPNotificationEvent* NewL(); |
williamr@2 | 112 |
/** Constructor. */ |
williamr@2 | 113 |
inline CSubConSIPNotificationEvent(); |
williamr@2 | 114 |
/** Destructor. */ |
williamr@2 | 115 |
virtual ~CSubConSIPNotificationEvent(); |
williamr@2 | 116 |
/** Sets Notification for an event. **/ |
williamr@2 | 117 |
inline void SetNotificationL(const TPtrC8 & aNotification); |
williamr@2 | 118 |
/** Gets Notification for an event. **/ |
williamr@2 | 119 |
inline const TPtrC8& GetNotification() const; |
williamr@2 | 120 |
|
williamr@2 | 121 |
protected: |
williamr@2 | 122 |
/** The Notification entry. */ |
williamr@2 | 123 |
RBuf8 iNotification; |
williamr@2 | 124 |
DATA_VTABLE |
williamr@2 | 125 |
}; |
williamr@2 | 126 |
|
williamr@2 | 127 |
|
williamr@2 | 128 |
class CSIPSubConnExtensionEventsFactory : public CBase |
williamr@2 | 129 |
/** Factory used to create instances of the SIP SubConnection Extension Events |
williamr@2 | 130 |
|
williamr@2 | 131 |
@publishedAll |
williamr@2 | 132 |
@released since v9.2 |
williamr@2 | 133 |
*/ |
williamr@2 | 134 |
{ |
williamr@2 | 135 |
public: |
williamr@2 | 136 |
static CSubConNotificationEvent* NewL(TAny* aConstructionParameters); |
williamr@2 | 137 |
}; |
williamr@2 | 138 |
|
williamr@2 | 139 |
#include <sip_subconevents.inl> |
williamr@2 | 140 |
|
williamr@2 | 141 |
#endif // SIPSCPR_SUBCONEVENTS_H |