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