CSIPURI Class Reference
class CSIPURI : public CBase |
Class provides functions for setting and getting fields and parameters in the SIP-URI or SIPS-URI structure.
sipcodec.lib
Constructor & Destructor Documentation
CSIPURI(TBool)
CSIPURI | ( | TBool | aIsSIPSUri = EFalse | ) | [private] |
Parameters
TBool aIsSIPSUri = EFalse | |
~CSIPURI()
Destructor, deletes the resources of CSIPURI.
Member Functions Documentation
AddURIHeaderL(const TDesC8 &, const TDesC8 &)
IMPORT_C void | AddURIHeaderL | ( | const TDesC8 & | aName, |
| const TDesC8 & | aValue |
| ) | |
Parameters
const TDesC8 & aName | the name of a URI header |
const TDesC8 & aValue | the value of a URI header |
ConstructL()
void | ConstructL | ( | ) | [private] |
ConstructL(const CSIPURI &)
void | ConstructL | ( | const CSIPURI & | aSIPURI | ) | [private] |
DecodeL(const TDesC8 &)
Constructs a CSIPURI from textual representation
Parameters
const TDesC8 & aValue | SIP-URI or SIPS-URI as text |
DeleteAllURIHeaders()
void | DeleteAllURIHeaders | ( | ) | |
DeletePassword()
IMPORT_C void | DeletePassword | ( | ) | |
Deletes the password part of userinfo structure
DeleteUserInfo()
IMPORT_C void | DeleteUserInfo | ( | ) | |
Deletes the userinfo (user+password)
HasParam(RStringF)
Checks if a URI parameter is present
Parameters
RStringF aName | the name of the URI parameter |
HasParams()
IMPORT_C TBool | HasParams | ( | ) | const |
Checks if any parameters are present
HasURIHeaders(const TDesC8 &)
Checks if named URI headers are present
Parameters
const TDesC8 & aName | the name of the URI headers |
HostPort()
Gets the hostport as const
IsSIPSURI()
IMPORT_C TBool | IsSIPSURI | ( | ) | const |
LocateSeparatorL(const TDesC8 &, TChar, TInt &)
void | LocateSeparatorL | ( | const TDesC8 & | aValue, |
| TChar | aSeparator, |
| TInt & | aPosition |
| ) | const [private] |
ParamValue(RStringF)
Gets the value of a URI parameter
- Pre-condition
- HasParam(aName) == ETrue
ParseL(const TDesC8 &)
void | ParseL | ( | const TDesC8 & | aValue | ) | [private] |
ParseSipSchemeL(const TDesC8 &)
ParseUserInfoL(const TDesC8 &)
void | ParseUserInfoL | ( | const TDesC8 & | aValue | ) | [private] |
Password()
IMPORT_C const TDesC8 & | Password | ( | ) | const |
Gets the password part of userinfo structure
SetHostPortL(CSIPHostPort *)
Sets the hostport
- Pre-condition
- aHostPort != 0
SetParamL(RStringF)
Sets a new URI parameter that does not have a value
Parameters
RStringF aName | the name of a URI parameter |
SetParamL(RStringF, RStringF)
Sets a new URI parameter with a name and a value
Parameters
RStringF aName | the name of a URI parameter |
RStringF aValue | the value of a URI parameter |
SetPasswordL(const TDesC8 &)
IMPORT_C void | SetPasswordL | ( | const TDesC8 & | aPassword | ) | |
Sets the password part of userinfo structure
Parameters
const TDesC8 & aPassword | the password to set |
SetSIPS(TBool)
IMPORT_C void | SetSIPS | ( | TBool | aSIPS | ) | |
Sets the URI scheme to "sips"
Parameters
TBool aSIPS | If ETrue the scheme is set to "sips", if EFalse the scheme is set to "sip". |
SetTtlParamL(TInt)
IMPORT_C void | SetTtlParamL | ( | TInt | aValue | ) | |
Sets the value of the "ttl" parameter
- Pre-condition
- aValue >= 0
Parameters
TInt aValue | the value of the "ttl" parameter |
SetURIHeaders(CSIPURIHeaders *)
SetURIParams(CSIPURIParams *)
SetUserL(const TDesC8 &)
IMPORT_C void | SetUserL | ( | const TDesC8 & | aUser | ) | |
Sets the user part of userinfo structure
Parameters
const TDesC8 & aUser | the user to set |
ToTextL()
IMPORT_C HBufC8 * | ToTextL | ( | ) | const |
Encodes the object into a textual representation.
TtlParam()
IMPORT_C TInt | TtlParam | ( | ) | const |
Gets the value of the "ttl" parameter
URIHeaderValuesL(const TDesC8 &)
Returns an array of URI headers with the given name. The header values are copies of the actual header values in the SIP-URI thus the actual values cannot be modified through the given array. Note that removing a header value from the array does NOT remove it from the SIP URI.
Parameters
const TDesC8 & aName | the name of the URI headers |
User()
IMPORT_C const TDesC8 & | User | ( | ) | const |
Gets the user part of userinfo structure
operator==(const CSIPURI &)
Compares this object to another instance of CSIPURI
Parameters
const CSIPURI & aURI | a SIP URI to compare to |
Member Data Documentation
TBool
iHasPassword
TBool
| iHasPassword | [private] |
TBool
iIsSIPSURI
TBool
| iIsSIPSURI | [private] |
CSIPURIHeaders * iURIHeaders
CSIPURIParams * iURIParams
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.