void ServerGroupSettings::appendChannelHistory(const ChannelSettings& channel)
    {
        ChannelList::iterator endIt = m_channelHistory.end();

        for(ChannelList::iterator it = m_channelHistory.begin(); it != endIt; ++it)
        {
            if(channel.name() == (*it).name())
            {
                (*it).setPassword(channel.password());
                (*it).setNotificationsEnabled(channel.enableNotifications());
                return;
            }
        }

        m_channelHistory.append(channel);
    }
 ChannelSettings::ChannelSettings(const ChannelSettings& settings)
 {
     setName(settings.name());
     setPassword(settings.password());
     setNotificationsEnabled(settings.enableNotifications());
 }
예제 #3
0
 void ChannelDialog::setChannelSettings(const ChannelSettings& channel)
 {
     m_channelEdit->setText(channel.name());
     m_passwordEdit->setText(channel.password());
 }