TROAsyncResponseStorage
Overview
TROAsyncResponseStorage is a base class that contains abstract declarations of IROAsyncResponseStorage methods for working with the TROResponseItem.
TROSimpleAsyncResponseStorage is a descendant of TROAsyncResponseStorage.
Location
- Unit: uROAsyncResponseStorage.pas
- Ancestry: TComponent | TROComponent | TROAsyncResponseStorage
constructor Create override (declared in TROComponent)
Creates a new instance.
constructor Create(AOwner: TComponent)
Parameters:
- AOwner: Owner.
AddResp virtual abstract
Adds a response item aResp to the storage.
procedure AddResp(aResp: TROResponseItem)
Parameters:
- aResp: Response item that will be added.
Assign override (declared in TROComponent)
Copies the contents of another, similar object.
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
ClearStorage virtual
Clears the storage.
procedure ClearStorage
CountOfResp virtual
Returns the count of responses in the storage.
function CountOfResp: Integer
DeleteResp virtual abstract
Deletes the response item specified by Index.
procedure DeleteResp(Index: Integer)
Parameters:
- Index: Index of deleted response item.
GetResp protected virtual abstract
Returns the response item specified by Index.
function GetResp(Index: Integer): TROResponseItem
Parameters:
- Index: Index of the responses to be returned.
GetRespByUID virtual
Returns the response item specified by aUID.
function GetRespByUID(aUID: string): TROResponseItem
Parameters:
- aUID: Unique identifier of responses that will be returned.
IndexOfResp virtual abstract
Returns the index of the specified response item.
function IndexOfResp(aResp: TROResponseItem): Integer
Parameters:
- aResp: Response item whose index will be returned.
RemoveResp virtual abstract
Removes the specified response item from the storage.
procedure RemoveResp(aResp: TROResponseItem)
Parameters:
- aResp: Response object that will be removed.
RemoveRespByUID virtual abstract
Removes the response item specified by a unique identifier from the storage.
procedure RemoveRespByUID(aUID: string)
Parameters:
- aUID: Unique identifier of the response that will be removed.
ResponseItem
Represents a single response item from the storage.
property ResponseItem[Index: Integer]: TROResponseItem read write
ROFreeNotification (declared in TROComponent)
Forwards notification messages to all owned RO components.
procedure ROFreeNotification(AComponent: TComponent)
Parameters:
- AComponent: component
RORemoveFreeNotification (declared in TROComponent)
Disables destruction notification for specified RO component.
procedure RORemoveFreeNotification(AComponent: TComponent)
Parameters:
- AComponent: component
ResponseItem
Represents a single response item from the storage.
property ResponseItem[Index: Integer]: TROResponseItem read write
constructor Create override (declared in TROComponent)
Creates a new instance.
constructor Create(AOwner: TComponent)
Parameters:
- AOwner: Owner.
AddResp virtual abstract
Adds a response item aResp to the storage.
procedure AddResp(aResp: TROResponseItem)
Parameters:
- aResp: Response item that will be added.
Assign override (declared in TROComponent)
Copies the contents of another, similar object.
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
ClearStorage virtual
Clears the storage.
procedure ClearStorage
CountOfResp virtual
Returns the count of responses in the storage.
function CountOfResp: Integer
DeleteResp virtual abstract
Deletes the response item specified by Index.
procedure DeleteResp(Index: Integer)
Parameters:
- Index: Index of deleted response item.
GetResp protected virtual abstract
Returns the response item specified by Index.
function GetResp(Index: Integer): TROResponseItem
Parameters:
- Index: Index of the responses to be returned.
GetRespByUID virtual
Returns the response item specified by aUID.
function GetRespByUID(aUID: string): TROResponseItem
Parameters:
- aUID: Unique identifier of responses that will be returned.
IndexOfResp virtual abstract
Returns the index of the specified response item.
function IndexOfResp(aResp: TROResponseItem): Integer
Parameters:
- aResp: Response item whose index will be returned.
RemoveResp virtual abstract
Removes the specified response item from the storage.
procedure RemoveResp(aResp: TROResponseItem)
Parameters:
- aResp: Response object that will be removed.
RemoveRespByUID virtual abstract
Removes the response item specified by a unique identifier from the storage.
procedure RemoveRespByUID(aUID: string)
Parameters:
- aUID: Unique identifier of the response that will be removed.
ROFreeNotification (declared in TROComponent)
Forwards notification messages to all owned RO components.
procedure ROFreeNotification(AComponent: TComponent)
Parameters:
- AComponent: component
RORemoveFreeNotification (declared in TROComponent)
Disables destruction notification for specified RO component.
procedure RORemoveFreeNotification(AComponent: TComponent)
Parameters:
- AComponent: component