unit uBrokerConnectionInfo;
interface
uses Windows, Classes, SysUtils, uRpcLogEntry, fClientRPCLogger, Forms;
Type
{
TRPCLogEntry = class
end;
}
TClientRPCLogger = class
private
FText: String;
FVisible: Boolean;
public
procedure AddRpcLogEntry(entry: TRpcLogEntry; overrideCheckBox: Boolean);
property Text: String read FText write FText;
property Visible: Boolean read FVisible write FVisible;
end;
TBrokerConnectionInfo = class(TPersistent)
private
FRpcLogger: TfrmRPCClientLogger;
FConnectionIndex: Integer;
FConnectedServerIp: String;
FConnectedServerPort: Integer;
FLastContext: String;
protected
function GetVisible: Boolean;
procedure SetVisible(Value: Boolean);
public
Constructor Create(); overload; virtual;
Constructor Create(index: Integer; ip: String; port: Integer; lastContext: String); overload; virtual;
function MakeListItemString: String; virtual;
function ToString: String;
procedure AddRpcLogEntry(entry: TRpcLogEntry; overrideCheckBox: bool);
property ConnectionIndex: Integer read FConnectionIndex write FConnectionIndex;
property ConnectedServerIp: String read FConnectedServerIP write FConnectedServerIP;
property ConnectedServerPort: Integer read FConnectedServerPort write FConnectedServerPort;
property LastContext: String read FLastContext write FLastContext;
property Visible: Boolean read GetVisible write SetVisible;
end;
const
kNoConnectionIndex = -1;
kNoServerIp: String = '0.0.0.0';
kNoConnectedServerPort: Integer = 0;
kNoLastContext: String = 'NO CONTEXT';
implementation
Constructor TBrokerConnectionInfo.Create;
begin
ConnectionIndex := kNoConnectionIndex;
ConnectedServerIp := kNoServerIp;
ConnectedServerPort := kNoConnectedServerPort;
LastContext := kNoLastContext;
end;
{
///
/// BrokerConnectionInfo is the parameterized constructor
///
///
///
///