void SettingsTransportView::setInterfaceController()
{
    connect(boxTransports,SIGNAL(currentIndexChanged(QString)),controller,SLOT(showTransports()));
    connect(pushNew,SIGNAL(clicked()),controller,SLOT(addTransport()));
    connect(pushEdit,SIGNAL(clicked()),controller,SLOT(editTransport()));
    connect(pushDelete,SIGNAL(clicked()),controller,SLOT(deleteTransport()));
    connect(pushSave,SIGNAL(clicked()),controller,SLOT(saveTransport()));
}
Esempio n. 2
0
void VisualLog::addTransport(const QString &configuration, VisualLog::Transport *transport){
    m_output = 0; // Disable output

    VisualLog::Configuration* cfg = m_registeredConfigurations.configurationAt(configuration);
    if ( !cfg ){
        cfg = new VisualLog::Configuration(*m_registeredConfigurations.globalConfiguration());
        cfg->m_name = configuration;
        m_registeredConfigurations.addConfiguration(configuration, cfg);
    }

    addTransport(cfg, transport);
}