CSIPClient Class Reference
class CSIPClient : public CBase |
This class is used to communicate with the SIP server Class provides functions for sending and receiving SIP requests and SIP responses. This class also provides functions for creating and destroying SIP dialogs, sending and receiving SIP requests and responses within SIP dialogs, canceling the SIP requests.
This class can only be created once by an application (a singleton class)
If the preconditions or postconditions are not met the function call will result in panics.
For SIP specific error codes TError
Constructor & Destructor Documentation
Member Functions Documentation
AddL(CSIPClientConnection *)
Connection(TUint32)
Checks if the user has a connection created for given IAP-id
ConstructL(const TUid &, MSIPClientObserver &)
IgnoreChallenge(TUint32, TUint32, const TDesC8 &)
Ignores the challenge for the realm. As a result the error will be generated to the original request.
Parameters
TUint32 aRequestId | request id if needed, otherwise zero |
TUint32 aRefreshId | refresh id if needed, otherwise zero |
const TDesC8 & aRealm | a realm for which the challenge was ignored |
IsSigCompSupportedL()
TBool
| IsSigCompSupportedL | ( | ) | const |
Checks if the signalling compression (SigComp) is supported. Leaves on failure with a system wide error code.
NegotiatedSecurityMechanismL(const TDesC8 &)
Gets negotiated security mechanism with the next hop on the signaling path.
Parameters
const TDesC8 & aHop | the next hop's FQDN or numeric IP address |
NewL(const TUid &, MSIPClientObserver &)
Constructs an object; leaves on failure.
Parameters
const TUid & aUid | an unique id that identifies an application |
MSIPClientObserver & aSIPObserver | a sip observer. This callback is used for passing SIP requests and internal errors to application. |
NewLC(const TUid &, MSIPClientObserver &)
Constructs an object and adds the pointer to the cleanup stack;
Parameters
const TUid & aUid | an unique id that identifies an application |
MSIPClientObserver & aSIPObserver | a sip observer. This callback is used for passing SIP requests and internal errors to application. |
Remove(const CSIPClientConnection *)
RemoveCredentials(const TDesC8 &)
Removes all set credentials for the realm
Parameters
const TDesC8 & aRealm | servers's realm. If set to KNullDesC8 clears all the credentials for this CSIPClient. |
RemoveHttpDigestObserver()
void | RemoveHttpDigestObserver | ( | ) | |
Removes the observer that listens for the possible received challenges.
SendHttpDigestObserverTypeToServer(const TSipHttpDigestObserverType &)
SetCredentialsL(TUint32, TUint32, const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &)
Sets credentials for a realm.
- leave
- KErrNoMemory if out of memory
Parameters
TUint32 aRequestId | request id if needed, otherwise zero |
TUint32 aRefreshId | refresh id if needed, otherwise zero |
const TDesC8 & aRealm | servers's realm |
const TDesC8 & aUsername | user's name |
const TDesC8 & aPasswd | user's password for the given server's realm |
const TDesC8 & aOutboundProxy | an outbound proxy (FQDN or IP address) Must be set to KNullDesC8 if not used. |
SetHttpDigestObserver(MSIPHttpDigestChallengeObserver &)
Sets the observer to listen for the possible received challenges.
SetHttpDigestObserver(MSIPHttpDigestChallengeObserver2 &)
Sets the observer to listen for the possible received challenges.
SetSecurityHandlingL(TBool)
void | SetSecurityHandlingL | ( | TBool | aEnabled | ) | |
SupportedSecurityMechanismsL()
Gets the names of all the supported security mechanisms
Member Enumerations Documentation
Enum TError
Enumerators
ENonExistingRequestId = 10 |
Non-existing request Id provided
|
ENonExistingDialogId |
Non-existing dialog Id provided
|
ENonExistingRefreshId |
Non-existing refresh Id provided
|
ENonExistingRegistrationId |
Non-existing registration Id provided
|
Member Data Documentation
RPointerArray< CSIPClientConnection > iConnections
CSIPClientReceiver * iReceiver
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.