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)
Standard component constructor
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 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.
Notification protected override (declared in TROComponent)
Forwards notification messages to all owned components.
procedure Notification(aComponent: TComponent; Operation: TOperation)
Parameters:
- aComponent: component
- Operation: operation
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
ROFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure ROFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
RORemoveFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure RORemoveFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
SendRemoveNotification protected (declared in TROComponent)
Forwards notification messages to all owned components.
procedure SendRemoveNotification(aComponent: TComponent)
Parameters:
- aComponent: component
ResponseItem
Represents a single response item from the storage.
property ResponseItem[Index: Integer]: TROResponseItem read
constructor Create override (declared in TROComponent)
Standard component constructor
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 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.
Notification protected override (declared in TROComponent)
Forwards notification messages to all owned components.
procedure Notification(aComponent: TComponent; Operation: TOperation)
Parameters:
- aComponent: component
- Operation: operation
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 components.
procedure ROFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
RORemoveFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure RORemoveFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
SendRemoveNotification protected (declared in TROComponent)
Forwards notification messages to all owned components.
procedure SendRemoveNotification(aComponent: TComponent)
Parameters:
- aComponent: component