MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / aFilterByIPExecute

Method aFilterByIPExecute

source/main.cpp:1116–1128  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1114}
1115//---------------------------------------------------------------------------
1116void __fastcall TMainForm::aFilterByIPExecute(TObject *Sender)
1117{
1118 TSyslogMessage * sm = GetMessageByIndex(LogSG->Row - 1);
1119 if( ! sm )
1120 return;
1121 if( sm->SourceAddr.Length() == 0 )
1122 return;
1123 MessMatch.Clear();
1124 MessMatch.Field1 = 2;
1125 MessMatch.Contains1 = true;
1126 MessMatch.Text1->Add(sm->SourceAddr);
1127 ApplyFilter();
1128}
1129//---------------------------------------------------------------------------
1130void __fastcall TMainForm::aFilterByHostExecute(TObject *Sender)
1131{

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected