#include "connectiondata.h" ConnectionData::ConnectionData() : port(0) {} bool ConnectionData::isOk() { return (not address.isEmpty() and port != 0 and not displayName.isEmpty() and not channels.isEmpty()); }