| 114 | } |
| 115 | |
| 116 | const QString COperateTerminal::Description() |
| 117 | { |
| 118 | QString szDescription; |
| 119 | if(!Name().isEmpty()) |
| 120 | szDescription = tr("Name: ") + Name() + "\n"; |
| 121 | |
| 122 | if(!GetTypeName().isEmpty()) |
| 123 | szDescription += tr("Type: ") + GetTypeName() + "\n"; |
| 124 | |
| 125 | if(!Protocol().isEmpty()) { |
| 126 | szDescription += tr("Protocol: ") + Protocol(); |
| 127 | #ifdef DEBUG |
| 128 | if(!GetPlugin()->DisplayName().isEmpty()) |
| 129 | szDescription += " - " + GetPlugin()->DisplayName(); |
| 130 | #endif |
| 131 | szDescription += "\n"; |
| 132 | } |
| 133 | |
| 134 | CSecurityLevel sl(GetSecurityLevel()); |
| 135 | if(GetSecurityLevel() != CSecurityLevel::Level::No) { |
| 136 | szDescription += tr("Security level: "); |
| 137 | if(!sl.GetUnicodeIcon().isEmpty()) |
| 138 | szDescription += sl.GetUnicodeIcon() + " "; |
| 139 | szDescription += sl.GetString() + "\n"; |
| 140 | } |
| 141 | |
| 142 | if(!GetPlugin()->Description().isEmpty()) |
| 143 | szDescription += tr("Description: ") + GetPlugin()->Description(); |
| 144 | |
| 145 | return szDescription; |
| 146 | } |
| 147 | |
| 148 | const qint16 COperateTerminal::Version() const |
| 149 | { |
no test coverage detected