Unified notification of source creation with Source info

New virtual function source::info used for notification after adding source
This commit is contained in:
Bruno Herbelin
2021-12-05 18:32:23 +01:00
parent bf3fc61ef7
commit 4675be7e2a
15 changed files with 111 additions and 18 deletions

View File

@@ -310,7 +310,6 @@ NetworkStream *NetworkSource::networkStream() const
void NetworkSource::setConnection(const std::string &nameconnection)
{
connection_name_ = nameconnection;
Log::Notify("Network Source connecting to '%s'", connection_name_.c_str());
// open network stream
networkStream()->connect( connection_name_ );
@@ -333,5 +332,13 @@ void NetworkSource::accept(Visitor& v)
v.visit(*this);
}
glm::ivec2 NetworkSource::icon() const
{
return glm::ivec2(18, 11);
}
std::string NetworkSource::info() const
{
return std::string("connected to '") + connection_name_ + "'";
}