---------------------------------------------------------------------------
| 38 | } |
| 39 | //--------------------------------------------------------------------------- |
| 40 | String 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 | //--------------------------------------------------------------------------- |
| 79 | void TMessProcess::Save(XMLElementEx * p) |
| 80 | { |
nothing calls this directly
no outgoing calls
no test coverage detected