epoc32/include/mw/sip_subconparams.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/sip_subconparams.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
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_subconparams.h
williamr@2
    15
// SIP extension parameters 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 SIP_SUBCONPARAMS_H
williamr@2
    28
#define SIP_SUBCONPARAMS_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 parameter extension.See the assisting *.rss file. */
williamr@2
    34
const TInt KSubConSIPParametersUid = 0x10274C18;
williamr@2
    35
williamr@2
    36
/** The numeric value of Invite identifier for SIP extension parameter set  */
williamr@2
    37
const TInt KSubConSIPInviteParamsType = 1;
williamr@2
    38
williamr@2
    39
/** The numeric value of Subscribe identifier for SIP extension parameter set  */
williamr@2
    40
const TInt KSubConSIPSubscribeParamsType = 2;
williamr@2
    41
williamr@2
    42
/** The numeric value of Authentication of SIP extension parameter set  */
williamr@2
    43
const TInt KSubConSIPAuthenticateParamsType = 3;
williamr@2
    44
williamr@2
    45
class CSubConSIPInviteParamSet : public CSubConExtensionParameterSet
williamr@2
    46
/** 
williamr@2
    47
This contains the SIP Invite parameters that will be passed via subconnection
williamr@2
    48
to the SIP stack
williamr@2
    49
@publishedAll
williamr@2
    50
@released since v9.2 
williamr@2
    51
*/
williamr@2
    52
{
williamr@2
    53
public:
williamr@2
    54
     /**
williamr@2
    55
	 Creates a new SubConSIPInvite parameter set object.  
williamr@2
    56
	 @param     aFamily ,contains family related info 
williamr@2
    57
	 @param		aType contains parameter Type such as (Requested, Acceptable and Granted)
williamr@2
    58
	 @return    A pointer to the newly allocated object.
williamr@2
    59
	 @leave 	KErrArgument if the data is not of type TParameterSetType.
williamr@2
    60
	 */   
williamr@2
    61
	inline static CSubConSIPInviteParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType);
williamr@2
    62
	inline static CSubConSIPInviteParamSet* NewL();
williamr@2
    63
	
williamr@2
    64
	/** Constructor. */
williamr@2
    65
	inline CSubConSIPInviteParamSet();
williamr@2
    66
	/** Destructor. */
williamr@2
    67
	virtual ~CSubConSIPInviteParamSet();
williamr@2
    68
	
williamr@2
    69
	/** Getters for SIP header. */
williamr@2
    70
	/** Gets Request URI field of the SIP header. **/
williamr@2
    71
	inline const TPtrC8 GetRequestUri() const;
williamr@2
    72
	/** Gets From field of the SIP header. **/	
williamr@2
    73
	inline const TPtrC8 GetFrom() const;
williamr@2
    74
	/** Gets To field of the SIP header. **/	
williamr@2
    75
	inline const TPtrC8 GetTo() const;
williamr@2
    76
	/** Gets Contact field of the SIP header. **/	
williamr@2
    77
	inline const TPtrC8 GetContact() const;
williamr@2
    78
	/** Gets ContentType field of the SIP header. **/	
williamr@2
    79
	inline const TPtrC8 GetContentType() const;
williamr@2
    80
	/** Gets ContentSubType field of the SIP header. **/	
williamr@2
    81
	inline const TPtrC8 GetContentSubType() const;
williamr@2
    82
	/** Gets Content field of the SIP header. **/
williamr@2
    83
	inline const TPtrC8 GetContent() const;
williamr@2
    84
	
williamr@2
    85
	/** Setters for SIP header. 
williamr@2
    86
	/** Sets Request URI field of the SIP header. **/
williamr@2
    87
	inline void   SetRequestUriL(const TPtrC8 & aReqUri);
williamr@2
    88
	/** Sets From field of the SIP header. **/	
williamr@2
    89
	inline void   SetFromL(const TPtrC8 & aFrom);
williamr@2
    90
	/** Sets To field of the SIP header. **/	
williamr@2
    91
	inline void   SetToL(const TPtrC8 & aTo);
williamr@2
    92
	/** Sets Contact field of the SIP header. **/	
williamr@2
    93
	inline void   SetContactL(const TPtrC8 & aContact);
williamr@2
    94
	/** Sets Content Type field of the SIP header. **/		
williamr@2
    95
	inline void   SetContentTypeL(const TPtrC8 & aContentType);
williamr@2
    96
	/** Sets Content Sub Type field of the SIP header. **/	
williamr@2
    97
	inline void   SetContentSubTypeL(const TPtrC8 & aContentSubType);
williamr@2
    98
	/** Sets Content field of the SIP header. **/		
williamr@2
    99
	inline void	  SetContentL(const TPtrC8 & aContent);
williamr@2
   100
	
williamr@2
   101
	DATA_VTABLE
williamr@2
   102
protected:
williamr@2
   103
williamr@2
   104
	/** The Request URI field of the SIP header. */
williamr@2
   105
	RBuf8	iReqUri;
williamr@2
   106
	/** The From field of the SIP header. */
williamr@2
   107
	RBuf8	iFrom;
williamr@2
   108
	/** The To field of the SIP header. */
williamr@2
   109
	RBuf8	iTo;
williamr@2
   110
	/** The Contact field of the SIP header. */
williamr@2
   111
	RBuf8	iContact;
williamr@2
   112
	/** The Content Type field of the SIP header. */
williamr@2
   113
	RBuf8	iContentType;
williamr@2
   114
	/** The Content Sub Type field of the SIP header. */
williamr@2
   115
	RBuf8	iContentSubType;
williamr@2
   116
	/** The Content field of the SIP header. */
williamr@2
   117
	RBuf8	iContent;
williamr@2
   118
	};
williamr@2
   119
	
williamr@2
   120
	
williamr@2
   121
	
williamr@2
   122
class CSubConSIPSubscribeParamSet : public CSubConExtensionParameterSet
williamr@2
   123
/** 
williamr@2
   124
This contains the SIP Subscribe parameters that will be passed via subconnection
williamr@2
   125
to the SIP stack
williamr@2
   126
@publishedAll
williamr@2
   127
@released since v9.2 
williamr@2
   128
*/
williamr@2
   129
{
williamr@2
   130
public:
williamr@2
   131
    /**
williamr@2
   132
	 Creates a new SubConSIPSubscribe parameter set object.  
williamr@2
   133
	 @param     aFamily ,contains family related info 
williamr@2
   134
	 @param		aType contains parameter Type such as (Requested, Acceptable and Granted)
williamr@2
   135
	 @return    A pointer to the newly allocated object.
williamr@2
   136
	 @leave 	KErrArgument if the data is not of type TParameterSetType.
williamr@2
   137
	 */    
williamr@2
   138
	inline static CSubConSIPSubscribeParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType);
williamr@2
   139
	inline static CSubConSIPSubscribeParamSet* NewL();
williamr@2
   140
	
williamr@2
   141
	/** Constructor. */
williamr@2
   142
	inline CSubConSIPSubscribeParamSet();
williamr@2
   143
	
williamr@2
   144
	/** Destructor. */
williamr@2
   145
    virtual ~CSubConSIPSubscribeParamSet();
williamr@2
   146
    
williamr@2
   147
	/** Getters for SIP header. */
williamr@2
   148
	/** Gets Request URI field of the SIP header. **/
williamr@2
   149
	inline const TPtrC8 GetRequestUri() const;	
williamr@2
   150
	/** Gets From field of the SIP header. **/
williamr@2
   151
	inline const TPtrC8 GetFrom() const;
williamr@2
   152
	/** Gets To field of the SIP header. **/	
williamr@2
   153
	inline const TPtrC8 GetTo() const;
williamr@2
   154
	/** Gets Contact field of the SIP header. **/
williamr@2
   155
	inline const TPtrC8 GetContact() const;
williamr@2
   156
	/** Gets Event Type field of the SIP header. **/
williamr@2
   157
	inline const TPtrC8 GetEventType() const;
williamr@2
   158
	/** Gets Accept Type field of the SIP header. **/
williamr@2
   159
	inline const TPtrC8 GetAcceptType() const;
williamr@2
   160
	/** Gets Accept Sub Type field of the SIP header. **/
williamr@2
   161
	inline const TPtrC8 GetAcceptSubType() const;
williamr@2
   162
	/** Gets Expires field of the SIP header. **/
williamr@2
   163
	inline const TInt   GetExpires() const;
williamr@2
   164
	/** Gets Auto Refresh field of the SIP header. **/
williamr@2
   165
	inline const TBool  GetAutoRefresh() const;
williamr@2
   166
	
williamr@2
   167
	/** Setters for SIP header. */
williamr@2
   168
	/** Sets Request URI field of the SIP header. **/
williamr@2
   169
	inline void  SetRequestUriL(const TPtrC8 & aReqUri);
williamr@2
   170
	/** Sets From field of the SIP header. **/	
williamr@2
   171
	inline void  SetFromL(const TPtrC8 & aFrom);
williamr@2
   172
	/** Sets To field of the SIP header. **/	
williamr@2
   173
	inline void  SetToL(const TPtrC8 & aTo);
williamr@2
   174
	/** Sets Contact field of the SIP header. **/
williamr@2
   175
	inline void  SetContactL(const TPtrC8 & aContact);
williamr@2
   176
	/** Sets Event Type field of the SIP header. **/
williamr@2
   177
	inline void  SetEventTypeL(const TPtrC8 & aEventType);
williamr@2
   178
	/** Sets Accept Type field of the SIP header. **/
williamr@2
   179
	inline void  SetAcceptTypeL(const TPtrC8 & aAcceptType);
williamr@2
   180
	/** Sets Accept Sub Type field of the SIP header. **/
williamr@2
   181
	inline void  SetAcceptSubTypeL(const TPtrC8 & aAcceptSubType);
williamr@2
   182
	/** Sets Expires Sub Type field of the SIP header. **/
williamr@2
   183
	inline void  SetExpires(TInt aExpires);
williamr@2
   184
	/** Sets AutoRfresh field of the SIP header. **/
williamr@2
   185
	inline void  SetAutoRefresh(TBool aAutoRefresh);
williamr@2
   186
	
williamr@2
   187
	
williamr@2
   188
	DATA_VTABLE
williamr@2
   189
protected:
williamr@2
   190
	
williamr@2
   191
	/** The Request URI field of the SIP header. */
williamr@2
   192
	RBuf8	iReqUri;
williamr@2
   193
	/** The From field of the SIP header. */
williamr@2
   194
	RBuf8	iFrom;
williamr@2
   195
	/** The To field of the SIP header. */
williamr@2
   196
	RBuf8	iTo;
williamr@2
   197
	/** The Contact field of the SIP header. */
williamr@2
   198
	RBuf8	iContact;
williamr@2
   199
	/** The Event Type field of the SIP header. */
williamr@2
   200
	RBuf8	iEventType;
williamr@2
   201
	/** The Accept Type field of the SIP header. */
williamr@2
   202
	RBuf8	iAcceptType;
williamr@2
   203
	/** The Accept Sub Type field of the SIP header. */
williamr@2
   204
	RBuf8	iAcceptSubType;
williamr@2
   205
	/** The Expires field of the SIP header. */
williamr@2
   206
	TInt	iExpires;
williamr@2
   207
	/** The AutoRefresh field of the SIP header. */
williamr@2
   208
	TBool   iAutoRefresh;
williamr@2
   209
};
williamr@2
   210
	
williamr@2
   211
class CSubConSIPAuthenticateParamSet : public CSubConExtensionParameterSet
williamr@2
   212
/** 
williamr@2
   213
This contains the SIP Authenticate parameters that will be passed via subconnection
williamr@2
   214
to the SIP stack
williamr@2
   215
@publishedAll
williamr@2
   216
@released since v9.2 
williamr@2
   217
*/
williamr@2
   218
{
williamr@2
   219
public:
williamr@2
   220
    /**
williamr@2
   221
	 Creates a new SubConSIPAuthenticate parameter set object.  
williamr@2
   222
	 @param     aFamily ,contains family related info 
williamr@2
   223
	 @param		aType contains parameter Type such as (Requested, Acceptable and Granted)
williamr@2
   224
	 @return    A pointer to the newly allocated object.
williamr@2
   225
	 @leave 	KErrArgument if the data is not of type TParameterSetType.
williamr@2
   226
	 */    
williamr@2
   227
	inline static CSubConSIPAuthenticateParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType);
williamr@2
   228
	inline static CSubConSIPAuthenticateParamSet* NewL();
williamr@2
   229
	
williamr@2
   230
	/** Constructor. */
williamr@2
   231
	inline CSubConSIPAuthenticateParamSet();
williamr@2
   232
	
williamr@2
   233
	/** Destructor. */
williamr@2
   234
	virtual ~CSubConSIPAuthenticateParamSet();
williamr@2
   235
	
williamr@2
   236
	/** Getters for SIP header. */
williamr@2
   237
	/** Gets Username field of the SIP header. **/
williamr@2
   238
	inline const TPtrC8 GetUserName() const;
williamr@2
   239
	/** Gets Password field of the SIP header. **/	
williamr@2
   240
	inline const TPtrC8 GetPassword() const;
williamr@2
   241
	/** Gets Realm field of the SIP header. **/		
williamr@2
   242
	inline const TPtrC8 GetRealm() const;
williamr@2
   243
	
williamr@2
   244
	/** Setters for SIP header. */
williamr@2
   245
	/** Sets Username field of the SIP header. **/
williamr@2
   246
	inline void  SetUserNameL(const TPtrC8 & aUserName);
williamr@2
   247
	/** Sets Password field of the SIP header. **/	
williamr@2
   248
	inline void  SetPasswordL(const TPtrC8 & aPassword);
williamr@2
   249
	/** Sets Realm field of the SIP header. **/	
williamr@2
   250
	inline void  SetRealmL(const TPtrC8 & aRealm);
williamr@2
   251
	
williamr@2
   252
	DATA_VTABLE
williamr@2
   253
protected:
williamr@2
   254
williamr@2
   255
	/** The Username entry of Authenticate field in a SIP header. */
williamr@2
   256
	RBuf8	iUserName;
williamr@2
   257
	/** The Password entry of Authenticate field in a SIP header. */
williamr@2
   258
	RBuf8	iPassword;
williamr@2
   259
	/** The Realm entry of Authenticate field in a SIP header. */
williamr@2
   260
	RBuf8	iRealm;	
williamr@2
   261
};
williamr@2
   262
williamr@2
   263
williamr@2
   264
williamr@2
   265
class CSIPSubConnExtensionParamsFactory : public CBase
williamr@2
   266
/** Factory used to create instances of the SIP SubConnection Parameter Extension Sets.
williamr@2
   267
williamr@2
   268
@publishedAll
williamr@2
   269
@released since v9.2 
williamr@2
   270
*/
williamr@2
   271
	{
williamr@2
   272
public:
williamr@2
   273
	static CSubConExtensionParameterSet* NewL(TAny* aConstructionParameters);
williamr@2
   274
	};
williamr@2
   275
williamr@2
   276
#include <sip_subconparams.inl>
williamr@2
   277
williamr@2
   278
#endif // SIP_SUBCONPARAMS_H