Link against: SenServConn.LIB SenUtils.LIB
NetworkServices ReadUserData WriteUserData
#include <SenTransportProperties.h>
Inherits CSenXmlProperties.
Inherited by CSenHttpTransportProperties.
Public Member Functions | |
virtual IMPORT_C void | SetReader (CSenXmlReader &aReader) |
Sets the XML reader to be used for parsing. | |
virtual IMPORT_C TSenPropertiesClassType | PropertiesClassType () |
Get an integer identifying properties class type. | |
virtual IMPORT_C void | WriteToL (RWriteStream &aWriteStream) |
Writes this properties object as descriptor into a stream. | |
virtual IMPORT_C void | ReadFromL (const TDesC8 &aBuffer) |
Reads this properties object from the descriptor. | |
virtual IMPORT_C HBufC8 * | AsUtf8L () |
Get these properties as UTF-8 charset encoded descriptor. | |
virtual IMPORT_C HBufC8 * | AsUtf8LC () |
Get these properties as UTF-8 charset encoded descriptor. | |
virtual IMPORT_C TInt | SetPropertyL (const TDesC8 &aName, const TDesC8 &aValue) |
virtual IMPORT_C TInt | PropertyL (const TDesC8 &aName, TPtrC8 &aValue) |
Gets the value of the property behind certain name. | |
virtual IMPORT_C TInt | SetIntPropertyL (const TDesC8 &aName, const TInt aValue) |
virtual IMPORT_C TInt | IntPropertyL (const TDesC8 &aName, TInt &aValue) |
Gets the integer value of the property behind certain name. | |
virtual IMPORT_C TInt | SetBoolPropertyL (const TDesC8 &aName, const TBool aValue) |
virtual IMPORT_C TInt | BoolPropertyL (const TDesC8 &aName, TBool &aValue) |
Gets the boolean value of the property behind certain name. | |
virtual IMPORT_C TInt | SetOmittedL (const TDesC8 &aName, TBool aValue) |
virtual IMPORT_C TInt | RemovePropertyL (const TDesC8 &aName) |
virtual IMPORT_C TBool | IsSafeToCast (TSenPropertiesClassType aClass) |
virtual IMPORT_C MSenProperties * | CloneL () const |
Method creates exact copy of the properties, preserving the real, concrete subclass type (this can be resolved via PropertiesClassType() method. | |
virtual IMPORT_C MSenProperties * | Clone (TInt &aOkOrError) const |
Method creates exact copy of the properties, preserving the real, concrete subclass type (this can be resolved via PropertiesClassType() method. | |
virtual IMPORT_C | ~CSenTransportProperties () |
Destructor. | |
virtual IMPORT_C TInt | SetPropertyL (const TDesC8 &aName, const TDesC8 &aValue, const TDesC8 &aType) |
Sets new property. | |
virtual IMPORT_C TInt | PropertyL (const TDesC8 &aName, TPtrC8 &aValue, TPtrC8 &aType) |
Gets the value of the property behind certain name. | |
virtual IMPORT_C TInt | HeartbeatL (TInt &aDelta) |
Gets the (connection) heartbeat property value as int. | |
virtual IMPORT_C TInt | SetHeartbeatL (TInt aDelta) |
Sets the (connection) heartbeat property value as int. | |
virtual IMPORT_C TInt | IapIdL (TUint32 &aCurrentIapId) |
Gets the IAP ID. | |
virtual IMPORT_C void | SetIapIdL (TUint32 aIapId) |
Sets the IAP ID. | |
virtual IMPORT_C TInt | ProxyPortL (TInt &aProxyPort) |
Gets the Proxy Port. | |
virtual IMPORT_C void | SetProxyPortL (TInt aProxyPort) |
Sets the Proxy Port. | |
virtual IMPORT_C TInt | ProxyHostL (TPtrC8 &aProxyHost) |
Gets the Proxy Host. | |
virtual IMPORT_C void | SetProxyHostL (const TDesC8 &aProxyHost) |
Sets the Proxy Host. | |
virtual IMPORT_C TInt | ProxyUsageL (TBool &aProxyUsage) |
Gets the Proxy Usage flag. | |
virtual IMPORT_C void | SetProxyUsageL (TBool aProxyUsage) |
Sets the Proxy Usage flag. | |
virtual IMPORT_C TInt | SecureDialogL (TBool &aSecureDialog) |
Gets the information if SecureDialog is shown or not. | |
virtual IMPORT_C void | SetSecureDialogL (TBool aSecureDialog) |
Sets the flag which controls showing of SecureDialog. | |
virtual IMPORT_C TInt | UserAgentL (TPtrC8 &aUserAgent) |
Gets the UserAgent. | |
virtual IMPORT_C void | SetUserAgentL (const TDesC8 &aUserAgent) |
Sets the UserAgent. | |
virtual IMPORT_C TInt | DeviceIDL (TPtrC8 &aDeviceID) |
Gets the device ID. | |
virtual IMPORT_C void | SetDeviceIDL (const TDesC8 &aDeviceID) |
Sets the Device ID. | |
virtual IMPORT_C TInt | SoapActionL (TPtrC8 &aAction) |
Gets the Action of message. | |
virtual IMPORT_C void | SetSoapActionL (const TDesC8 &aAction) |
Sets the Action. | |
virtual IMPORT_C void | ApplyBindingL (TSOAPVersion aSoapVersion) |
Apply binding. | |
virtual IMPORT_C TInt | DownloadFolderL (TPtrC8 &aDownloadFolder) |
Gets download folder for incoming BLOB (binary large objects). | |
virtual IMPORT_C void | SetDownloadFolderL (const TDesC8 &aDownloadFolder) |
Sets download folder for incoming BLOB (binary large objects). | |
virtual IMPORT_C TInt | FileAttachmentL (const TDesC8 &aCid, HBufC8 *&aFileName) |
Gets filename of file attachment. | |
virtual IMPORT_C TInt | SetFileAttachmentL (const TDesC8 &aCid, const TDesC8 &aFileName) |
Sets filename of file attachment. | |
virtual IMPORT_C TInt | MwsNamespaceL (TPtrC8 &aMwsNamespace) |
Gets namespace of Microsoft schema. | |
virtual IMPORT_C void | SetMwsNamespaceL (const TDesC8 &aMwsNamespace) |
Sets namespace of Microsoft schema. | |
virtual IMPORT_C TInt | MessageIdL (TPtrC8 &aMessageId) |
Gets message ID. | |
virtual IMPORT_C void | SetMessageIdL (const TDesC8 &aMessageId) |
Sets message ID. | |
virtual IMPORT_C TInt | OnewayMessageOnOffL (TBool &aOnewayMessageOnOff) |
Gets one-way message mode. | |
virtual IMPORT_C void | SetOnewayMessageOnOffL (TBool aOnewayMessageOnOff) |
Sets the one-way message mode on/off. | |
virtual IMPORT_C TInt | SetMaxTimeToLiveL (TInt aMaxTTL) |
Sets the (connection) Max TTL for longlive connection. | |
virtual IMPORT_C TInt | MaxTimeToLiveL (TInt &aMaxTTL) |
Gets the (connection) max TTL property value as int. | |
virtual IMPORT_C TInt | SetMinTimeToLiveL (TInt aMinTTL) |
Sets the (connection) Min TTL. | |
virtual IMPORT_C TInt | MinTimeToLiveL (TInt &aMinTTL) |
Gets the (connection) min TTL property value as int. | |
virtual IMPORT_C TInt | SetEndpointResourceL (const TDesC8 &aEndpointResource) |
Sets resource property value for endpoint. | |
virtual IMPORT_C TInt | EndpointResourceL (TPtrC8 &aEndpointResource) |
Gets resource property value for endpoint. | |
IMPORT_C void | SetSnapIdL (TUint32 aSnapId) |
Sets the SNAP ID. | |
IMPORT_C TInt | SnapIdL (TUint32 &aCurrentSnapId) |
Gets the SNAP ID. | |
Static Public Member Functions | |
static IMPORT_C CSenTransportProperties * | NewL () |
Basic constructor. | |
static IMPORT_C CSenTransportProperties * | NewLC () |
Basic constructor. | |
static IMPORT_C CSenTransportProperties * | NewL (const TDesC8 &aXmlUtf8, CSenXmlReader &aParser) |
Basic constructor. | |
static IMPORT_C CSenTransportProperties * | NewLC (const TDesC8 &aXmlUtf8, CSenXmlReader &aParser) |
Basic constructor. | |
static IMPORT_C CSenTransportProperties * | NewL (const CSenElement &aElement) |
Basic constructor. | |
static IMPORT_C CSenTransportProperties * | NewLC (const CSenElement &aElement) |
Basic constructor. | |
Protected Member Functions | |
virtual IMPORT_C void | BaseConstructL (const TDesC8 &aLocalname, const TDesC8 &aXml, CSenXmlReader *aParser=NULL) |
virtual IMPORT_C void | BaseConstructL (const TDesC8 &aNamespace, const TDesC8 &aLocalname, const TDesC8 &aXml, CSenXmlReader *aParser=NULL) |
virtual IMPORT_C void | BaseConstructL (const TDesC8 &aNamespace, const TDesC8 &aLocalname, const TDesC8 &aQualifiedName, const TDesC8 &aXml, CSenXmlReader *aParser=NULL) |
virtual IMPORT_C void | BaseConstructL (const CSenElement &aElement) |
IMPORT_C | CSenTransportProperties () |
Constructor. |
|
Destructor. |
|
Constructor. |
|
Apply binding.
Reimplemented in CSenHttpTransportProperties. |
|
Get these properties as UTF-8 charset encoded descriptor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Get these properties as UTF-8 charset encoded descriptor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets the boolean value of the property behind certain name.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Method creates exact copy of the properties, preserving the real, concrete subclass type (this can be resolved via PropertiesClassType() method. Furthermore, the IsSafeToCast() method can be used to reflect the returned pointer to a concrete class. NOTE: one must cast the returned pointer to concrete class in order to safely de-allocate any memory allocated by this method.
Reimplemented from CSenXmlProperties. |
|
Method creates exact copy of the properties, preserving the real, concrete subclass type (this can be resolved via PropertiesClassType() method. Furthermore, the IsSafeToCast() method can be used to reflect the returned pointer to a concrete class. NOTE: one must cast the returned pointer to concrete class in order to safely de-allocate any memory allocated by this method.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets the device ID.
Reimplemented in CSenHttpTransportProperties. |
|
Gets download folder for incoming BLOB (binary large objects).
Reimplemented in CSenHttpTransportProperties. |
|
Gets resource property value for endpoint.
|
|
Gets filename of file attachment.
Reimplemented in CSenHttpTransportProperties. |
|
Gets the (connection) heartbeat property value as int.
|
|
Gets the IAP ID.
Reimplemented in CSenHttpTransportProperties. |
|
Gets the integer value of the property behind certain name.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets the (connection) max TTL property value as int.
|
|
Gets message ID.
|
|
Gets the (connection) min TTL property value as int.
|
|
Gets namespace of Microsoft schema.
Reimplemented in CSenHttpTransportProperties. |
|
Basic constructor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Basic constructor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Basic constructor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Basic constructor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Basic constructor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Basic constructor.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets one-way message mode.
|
|
Get an integer identifying properties class type. All subclasses MUST return use unique integer value.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets the value of the property behind certain name.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets the value of the property behind certain name.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets the Proxy Host.
Reimplemented in CSenHttpTransportProperties. |
|
Gets the Proxy Port.
Reimplemented in CSenHttpTransportProperties. |
|
Gets the Proxy Usage flag.
Reimplemented in CSenHttpTransportProperties. |
|
Reads this properties object from the descriptor. UTF-8 charset encoding should be used.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Gets the information if SecureDialog is shown or not.
Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Sets the Device ID.
Reimplemented in CSenHttpTransportProperties. |
|
Sets download folder for incoming BLOB (binary large objects).
Reimplemented in CSenHttpTransportProperties. |
|
Sets resource property value for endpoint.
|
|
Sets filename of file attachment.
Reimplemented in CSenHttpTransportProperties. |
|
Sets the (connection) heartbeat property value as int. Note, that with some transports, like vTCP, the heartbeat can also be used to control connection modes (longlive vs. shortlive connection). Hertbeat value is called also as delta. Together with delta You can also set parameters Min & Max TTL Long and short connection is set in different way, below guider. To setup longlive connection: delta : user defined min TTL : If not specified then the default value of 90 sec will be used max TTL : If not specified then the default value 1800 sec will be used To setup shortlive connection: delta : -1 min TTL : If not specified then the default value of 90 sec will be used max TTL : ignored So, providing a negative value (-1) can be utilized to disable heartbeat and to switch the connection mode to a short lived state. With vTCP transport, if heartbeat of -1 is set, the socket will be kept open only for effective timeout value (shortlived),
|
|
Sets the IAP ID.
Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Sets the (connection) Max TTL for longlive connection.
|
|
Sets message ID. Typically, this property is set per each message, instead of applying the same message ID for whole consumer session (service connection)
|
|
Sets the (connection) Min TTL.
|
|
Sets namespace of Microsoft schema.
Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Sets the one-way message mode on/off. Typically, one-way messages are rarely used by default: instead, a request- response pair (consumer[request]<->[response]provider) transaction takes place. However, if one-way message mode is enabled, sending such message will typically result immediate callback from the transport (plug-in) itself. This means, that the actual service response from the provider is not being waited. Common use case to enable one-way message is when service connection is used in transmitting *responses* to notification request(s) that some remote consumer (from outside device) has sent earlier. Such notification requests may thus be received via hostlet connection (hc), and by enabling one-way message, once can reply via service connection, instead of calling hc->RespondL method. Furthermore, application might wish to enable one-way message mode to hostlet connection, if it is not interested of replying to these two-way notifications via hostlet connection, but wishes to use service connection instead.
|
|
Sets new property. If property with given name does not exist, new property with given value will be added. Otherwise the value of existing property will be updated.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Sets the Proxy Host.
Reimplemented in CSenHttpTransportProperties. |
|
Sets the Proxy Port.
Reimplemented in CSenHttpTransportProperties. |
|
Sets the Proxy Usage flag.
Reimplemented in CSenHttpTransportProperties. |
|
Sets the XML reader to be used for parsing.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |
|
Sets the flag which controls showing of SecureDialog.
Reimplemented in CSenHttpTransportProperties. |
|
Sets the SNAP ID.
Reimplemented in CSenHttpTransportProperties. |
|
Sets the Action.
Reimplemented in CSenHttpTransportProperties. |
|
Sets the UserAgent.
Reimplemented in CSenHttpTransportProperties. |
|
Gets the SNAP ID.
Reimplemented in CSenHttpTransportProperties. |
|
Gets the Action of message.
Reimplemented in CSenHttpTransportProperties. |
|
Gets the UserAgent.
Reimplemented in CSenHttpTransportProperties. |
|
Writes this properties object as descriptor into a stream. UTF-8 charset encoding will be used.
Reimplemented from CSenXmlProperties. Reimplemented in CSenHttpTransportProperties. |