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

Method GetDescription

source/messprocessing.cpp:40–77  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

38}
39//---------------------------------------------------------------------------
40String TMessProcess::GetDescription(void)
41{
42 String rv;
43 char * a = " AND ";
44
45 if( bIgnore )
46 rv += "Ignore";
47 if( bAlarm )
48 {
49 if( ! rv.IsEmpty() ) rv += a;
50 rv += "Show alarm";
51 }
52 if( bSound )
53 {
54 if( ! rv.IsEmpty() ) rv += a;
55 rv += "Play sound";
56 }
57 if( bSendMail )
58 {
59 if( ! rv.IsEmpty() ) rv += a;
60 rv += "Send e-mail";
61 }
62 if( bRunProg )
63 {
64 if( ! rv.IsEmpty() ) rv += a;
65 rv += "Run program";
66 }
67 if( bSaveToFile )
68 {
69 if( ! rv.IsEmpty() ) rv += a;
70 rv += "Save to file \"";
71
72 TStorageFile * sf = fdb->GetByNumber( SaveFile );
73 if( sf )
74 rv += sf->file + "\"";
75 }
76 return rv;
77}
78//---------------------------------------------------------------------------
79void TMessProcess::Save(XMLElementEx * p)
80{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected