| 49 | } |
| 50 | |
| 51 | const QString COperate::Description() |
| 52 | { |
| 53 | QString szDescription; |
| 54 | if(!Name().isEmpty()) |
| 55 | szDescription = tr("Name: ") + Name() + "\n"; |
| 56 | |
| 57 | if(!GetTypeName().isEmpty()) |
| 58 | szDescription += tr("Type:") + GetTypeName() + "\n"; |
| 59 | |
| 60 | if(!Protocol().isEmpty()) { |
| 61 | szDescription += tr("Protocol: ") + Protocol(); |
| 62 | #ifdef DEBUG |
| 63 | if(!GetPlugin()->DisplayName().isEmpty()) |
| 64 | szDescription += " - " + GetPlugin()->DisplayName(); |
| 65 | #endif |
| 66 | szDescription += "\n"; |
| 67 | } |
| 68 | |
| 69 | CSecurityLevel sl(GetSecurityLevel()); |
| 70 | if(GetSecurityLevel() != CSecurityLevel::Level::No) { |
| 71 | szDescription += tr("Security level: "); |
| 72 | if(!sl.GetUnicodeIcon().isEmpty()) |
| 73 | szDescription += sl.GetUnicodeIcon() + " "; |
| 74 | szDescription += sl.GetString() + "\n"; |
| 75 | } |
| 76 | |
| 77 | szDescription += tr("Description: ") + GetPlugin()->Description(); |
| 78 | return szDescription; |
| 79 | } |
| 80 | |
| 81 | const QString COperate::Protocol() const |
| 82 | { |
no test coverage detected