Skip to content

Commit 2cd6e1a

Browse files
committed
Add security level in description
1 parent 22f0152 commit 2cd6e1a

5 files changed

Lines changed: 18 additions & 7 deletions

File tree

Plugins/SSH/OperateSSH.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ const QString COperateSSH::Description()
116116
szDescription += tr("Server address: ") + sshNet.GetHost()
117117
+ ":" + QString::number(sshNet.GetPort()) + "\n";
118118

119+
if(GetSecurityLevel() != SecurityLevel::No)
120+
szDescription += tr("Security level: ") + GetSecurityLevelString() + "\n";
121+
119122
if(!GetPlugin()->Description().isEmpty())
120123
szDescription += tr("Description: ") + GetPlugin()->Description();
121124

Plugins/Telnet/OperateTelnet.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,9 @@ const QString COperateTelnet::Description()
183183
if(!net.GetHost().isEmpty())
184184
szDescription += tr("Server address: ") + net.GetHost()
185185
+ ":" + QString::number(net.GetPort()) + "\n";
186-
else {
187-
szDescription += tr("Shell path: ") + m_Parameters.GetShell() + "\n";
188-
if(!m_Parameters.GetShellParameters().isEmpty())
189-
szDescription += tr("Shell parameters: ") + m_Parameters.GetShellParameters() + "\n";
190-
}
186+
187+
if(GetSecurityLevel() != SecurityLevel::No)
188+
szDescription += tr("Security level: ") + GetSecurityLevelString() + "\n";
191189

192190
if(!GetPlugin()->Description().isEmpty())
193191
szDescription += tr("Description: ") + GetPlugin()->Description();

Src/Operate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ const QString COperate::Description()
6060
#endif
6161
szDescription += "\n";
6262
}
63+
64+
if(GetSecurityLevel() != SecurityLevel::No)
65+
szDescription += tr("Security level: ") + GetSecurityLevelString() + "\n";
66+
6367
szDescription += tr("Description: ") + GetPlugin()->Description();
6468
return szDescription;
6569
}

Src/OperateDesktop.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ const QString COperateDesktop::Description()
149149
szDescription += szProxy + "\n";
150150
}
151151

152+
if(GetSecurityLevel() != SecurityLevel::No)
153+
szDescription += tr("Security level: ") + GetSecurityLevelString() + "\n";
154+
152155
if(!GetPlugin()->Description().isEmpty())
153156
szDescription += tr("Description: ") + GetPlugin()->Description();
154157

Src/Terminal/OperateTerminal.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,14 @@ const QString COperateTerminal::Description()
9797
#endif
9898
szDescription += "\n";
9999
}
100-
100+
101101
szDescription += tr("Shell path: ") + GetParameter()->GetShell() + "\n";
102102
if(!GetParameter()->GetShellParameters().isEmpty())
103103
szDescription += tr("Shell parameters: ") + GetParameter()->GetShellParameters() + "\n";
104-
104+
105+
if(GetSecurityLevel() != SecurityLevel::No)
106+
szDescription += tr("Security level: ") + GetSecurityLevelString() + "\n";
107+
105108
if(!GetPlugin()->Description().isEmpty())
106109
szDescription += tr("Description: ") + GetPlugin()->Description();
107110

0 commit comments

Comments
 (0)