コード例 #1
0
    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);
    }
コード例 #2
0
 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());
 }