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