#include <mw/sipconnection.h>
class CSIPConnection : public CBase |
Public Member Enumerations | |
---|---|
enum | TState { EInit, EActive, ESuspended, EInactive, EUnavailable } |
Public Member Functions | |
---|---|
~CSIPConnection() | |
IMPORT_C CSIPClientTransaction * | FetchRegistrationsL(CSIPRequestElements *) |
IMPORT_C void | GetConnectionErrorL(TInt &) |
IMPORT_C void | GetLocalAddrL(TInetAddr &) |
IMPORT_C TUint32 | IapId() |
CSIPConnectionImplementation & | Implementation() |
IMPORT_C CSIPConnection * | NewL(CSIP &, TUint32, MSIPConnectionObserver &) |
IMPORT_C CSIPConnection * | NewLC(CSIP &, TUint32, MSIPConnectionObserver &) |
IMPORT_C void | RefreshConnection() |
IMPORT_C CSIP * | SIP() |
IMPORT_C const CSIP * | SIP() |
IMPORT_C CSIPClientTransaction * | SendRequestL(CSIPRequestElements *, const MSIPRegistrationContext &) |
IMPORT_C CSIPClientTransaction * | SendRequestL(CSIPRequestElements *, const MSIPRegistrationContext &, CSIPRefresh &) |
IMPORT_C CSIPClientTransaction * | SendRequestL(CSIPRequestElements *) |
IMPORT_C CSIPClientTransaction * | SendRequestL(CSIPRequestElements *, CSIPRefresh &) |
IMPORT_C void | SetOptL(TUint, TUint, const TDesC8 &) |
IMPORT_C void | SetOptL(TUint, TUint, TInt) |
IMPORT_C TState | State() |
for sending requests to which received non-failure response creates a dialog
for sending requests that must be sent within SIP dialog
Note that the user can have only one instance of the class per same IAP-id.
Connection states
Enumerator | Value | Description |
---|---|---|
EInit | 1 |
Connection initializing |
EActive |
Connection active | |
ESuspended |
Connection suspended | |
EInactive |
Connection is inactive | |
EUnavailable |
Connection is permanently unavailable |
IMPORT_C CSIPClientTransaction * | FetchRegistrationsL | ( | CSIPRequestElements * | aElements | ) |
Parameters | |
---|---|
aElements | contains local and remote addresses, optional SIP message headers and body. User must not set any expires values to aElements. The ownership is transferred. |
Leave Codes | |
---|---|
KErrArgument | if aElements == 0 or if the request method has been defined in aElements |
Capability | |
---|---|
NetworkServices |
IMPORT_C void | GetConnectionErrorL | ( | TInt & | aError | ) | const |
Parameters | |
---|---|
aError | will be filled with the error code |
Leave Codes | |
---|---|
a | system-wide error code |
Capability | |
---|---|
NetworkServices. |
IMPORT_C void | GetLocalAddrL | ( | TInetAddr & | aAddr | ) | const |
Parameters | |
---|---|
aAddr | on return filled with local IP address |
Leave Codes | |
---|---|
a | system-wide error code |
CSIPConnectionImplementation & | Implementation | ( | ) |
Returns the implementation instance.
IMPORT_C CSIPConnection * | NewL | ( | CSIP & | aSIP, |
TUint32 | aIapId, | |||
MSIPConnectionObserver & | aObserver | |||
) | [static] |
Parameters | |
---|---|
aIapId | IAP-id |
aObserver | a observer for receiving asynchonous events on this connection |
Capability | |
---|---|
NetworkServices |
IMPORT_C CSIPConnection * | NewLC | ( | CSIP & | aSIP, |
TUint32 | aIapId, | |||
MSIPConnectionObserver & | aObserver | |||
) | [static] |
Parameters | |
---|---|
aIapId | IAP-id |
aObserver | a observer for receiving asynchonous events on this connection |
Capability | |
---|---|
NetworkServices |
IMPORT_C void | RefreshConnection | ( | ) | const |
Capability | |
---|---|
NetworkServices. |
IMPORT_C CSIP * | SIP | ( | ) |
Gets SIP server handle
IMPORT_C const CSIP * | SIP | ( | ) | const |
Gets SIP server handle
IMPORT_C CSIPClientTransaction * | SendRequestL | ( | CSIPRequestElements * | aElements, |
const MSIPRegistrationContext & | aContext | |||
) |
aContext.IsContextActive() == ETrue
Parameters | |
---|---|
aElements | contains local and remote addresses, optional SIP message headers and body. The ownership is transferred. |
aContext | defines outbound proxy to be used. If the user does not provide from-address it will be constucted using user's AOR used during the registration. |
Leave Codes | |
---|---|
KErrArgument | if aElements == 0 |
KErrSIPInvalidRegistrationState | if aContext.IsContextActive() == EFalse |
Capability | |
---|---|
NetworkServices |
IMPORT_C CSIPClientTransaction * | SendRequestL | ( | CSIPRequestElements * | aElements, |
const MSIPRegistrationContext & | aContext, | |||
CSIPRefresh & | aRefresh | |||
) |
aContext.IsContextActive() == ETrue
Parameters | |
---|---|
aElements | contains local and remote addresses, optional SIP message headers and body. The ownership is transferred. |
aContext | defines outbound proxy to be used. If the user does not provide from-address it will be constucted using user's AOR used during the registration. |
aRefresh | defines the refresh interval for this transaction. |
Leave Codes | |
---|---|
KErrArgument | if aElements == 0 |
KErrSIPInvalidRegistrationState | if aContext.IsContextActive() == EFalse |
Capability | |
---|---|
NetworkServices |
IMPORT_C CSIPClientTransaction * | SendRequestL | ( | CSIPRequestElements * | aElements | ) |
aElements.FromHeader() != 0
Parameters | |
---|---|
aElements | contains local and remote addresses, optional SIP message headers and body. The ownership is transferred. |
Leave Codes | |
---|---|
KErrArgument | if aElements == 0 or if From-header is not present in aElements |
Capability | |
---|---|
NetworkServices |
IMPORT_C CSIPClientTransaction * | SendRequestL | ( | CSIPRequestElements * | aElements, |
CSIPRefresh & | aRefresh | |||
) |
aElements.FromHeader() != 0
Parameters | |
---|---|
aElements | contains local and remote addresses, optional SIP message headers and body. The ownership is transferred. |
aRefresh | indicates that transaction will be refreshed |
Leave Codes | |
---|---|
KErrArgument | if aElements == 0 or if From-header is not present in aElements |
Capability | |
---|---|
NetworkServices |
Parameters | |
---|---|
aOptionName | An integer constant which identifies an option. |
aOptionLevel | An integer constant which identifies level of an option. |
aOption | Option value packaged in a descriptor. |
Leave Codes | |
---|---|
A | system-wide error code |
Capability | |
---|---|
NetworkControl | |
NetworkServices | |
Location | |
ReadDeviceData | |
WriteDeviceData |
Parameters | |
---|---|
aOptionName | An integer constant which identifies an option. |
aOptionLevel | An integer constant which identifies level of an option. |
aOption | Option value as an integer. |
Leave Codes | |
---|---|
A | system-wide error codes |
Capability | |
---|---|
NetworkControl | |
NetworkServices | |
Location | |
ReadDeviceData | |
WriteDeviceData |
IMPORT_C TState | State | ( | ) | const |
Gets current state of the connection