| 119 | } |
| 120 | |
| 121 | const QString COperateRawStream::Name() |
| 122 | { |
| 123 | QString szName = m_Parameter.GetName(); |
| 124 | |
| 125 | if(szName.isEmpty()) { |
| 126 | if(CParameterRawStream::TYPE::TCP == m_Parameter.GetType()) { |
| 127 | auto &net = m_Parameter.m_Net; |
| 128 | if(!net.GetHost().isEmpty()) { |
| 129 | if(m_Parameter.GetPluginParameters() |
| 130 | && (GetParameter()->GetPluginParameters()->GetNameStyles() |
| 131 | & CParameterPlugin::NameStyle::Protocol) |
| 132 | && !Protocol().isEmpty()) |
| 133 | szName = Protocol() + ": "; |
| 134 | szName += net.GetHost() |
| 135 | + ":" + QString::number(net.GetPort()); |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | if(szName.isEmpty()) |
| 141 | szName = COperateTerminal::Name(); |
| 142 | return szName; |
| 143 | } |
| 144 | |
| 145 | const QString COperateRawStream::Description() |
| 146 | { |
nothing calls this directly
no test coverage detected