CanEasy COM-Help
CanEasy::IService Interface Reference
Inheritance diagram for CanEasy::IService:
CanEasy::IDatabaseItem

Detailed Description

Service which contains request (IServiceRequest) and response (IServiceResponse)

A service can be executed/transmitted. It will send the request and wait for a response or timeout

interface IService : IDatabaseItem
{
HRESULT Requests([out, retval] IServiceRequestCol** ppVal);
HRESULT Responses([out, retval] IServiceResponseCol** ppVal);
HRESULT Send();
HRESULT ErrorCode([out, retval] IAttribute** error);
HRESULT LastResponse([out, retval] IAttribute** data);
HRESULT TransmissionEvent([out, retval] ITransmissionEvent** ppItem);
HRESULT PreTransmitEvents([out, retval] VARIANT_BOOL* pVal);
HRESULT PreTransmitEvents([in] VARIANT_BOOL boVal);
HRESULT PreCopyEvents([out, retval] VARIANT_BOOL* pVal);
HRESULT PreCopyEvents([in] VARIANT_BOOL boVal);
};

Definition at line 9645 of file cand_tlb.idl.

Member Function Documentation

◆ Send()

HRESULT CanEasy::IService::Send ( )

Sends this service

Property Documentation

◆ ErrorCode

IAttribute CanEasy::IService::ErrorCode
get

Returns the error code (0 means no error)

◆ LastResponse

IAttribute CanEasy::IService::LastResponse
get

Returns the payload of the last response

◆ PreCopyEvents

VARIANT_BOOL CanEasy::IService::PreCopyEvents
getset

Activates/Deactivates PreCopy events

◆ PreTransmitEvents

VARIANT_BOOL CanEasy::IService::PreTransmitEvents
getset

Activates/Deactivates PreTransmit events

◆ Requests

IServiceRequestCol CanEasy::IService::Requests
get

Returns a collection with requests

◆ Responses

IServiceResponseCol CanEasy::IService::Responses
get

Returns a collection with responses

◆ TransmissionEvent

ITransmissionEvent CanEasy::IService::TransmissionEvent
get

Returns the class to get transmission events.

Example: Use item.TransmissionEvent.Active = true to activate the events.

CanEasy::IService::Send
HRESULT Send()
CanEasy::IService::Responses
IServiceResponseCol Responses
CanEasy::IService::LastResponse
IAttribute LastResponse
CanEasy::IService::Requests
IServiceRequestCol Requests
CanEasy::IService::PreCopyEvents
VARIANT_BOOL PreCopyEvents
CanEasy::IService::ErrorCode
IAttribute ErrorCode
CanEasy::IService::TransmissionEvent
ITransmissionEvent TransmissionEvent
Returns the class to get transmission events.
CanEasy::IService::PreTransmitEvents
VARIANT_BOOL PreTransmitEvents