ConferenceAdaptor::ConferenceAdaptor(const QDBusConnection &dbus, Conference *conf) : QDBusAbstractAdaptor(conf), m_dbus(dbus) { connect(conf, SIGNAL(topicChanged(QString,QString)), this, SIGNAL(topicChanged(QString))); connect(conf, SIGNAL(meChanged(qutim_sdk_0_3::Buddy*)), this, SLOT(onMeChanged(qutim_sdk_0_3::Buddy*))); }
MyIrcBuffer::MyIrcBuffer(const QString& receiver, Irc::Session* parent) : Irc::Buffer(receiver, parent) { connect(this, SIGNAL(receiverChanged(QString)), SLOT(on_receiverChanged(QString))); connect(this, SIGNAL(joined(QString)), SLOT(on_joined(QString))); connect(this, SIGNAL(parted(QString, QString)), SLOT(on_parted(QString, QString))); connect(this, SIGNAL(quit(QString, QString)), SLOT(on_quit(QString, QString))); connect(this, SIGNAL(nickChanged(QString, QString)), SLOT(on_nickChanged(QString, QString))); connect(this, SIGNAL(modeChanged(QString, QString, QString)), SLOT(on_modeChanged(QString, QString, QString))); connect(this, SIGNAL(topicChanged(QString, QString)), SLOT(on_topicChanged(QString, QString))); connect(this, SIGNAL(invited(QString, QString, QString)), SLOT(on_invited(QString, QString, QString))); connect(this, SIGNAL(kicked(QString, QString, QString)), SLOT(on_kicked(QString, QString, QString))); connect(this, SIGNAL(messageReceived(QString, QString, Irc::Buffer::MessageFlags)), SLOT(on_messageReceived(QString, QString, Irc::Buffer::MessageFlags))); connect(this, SIGNAL(noticeReceived(QString, QString, Irc::Buffer::MessageFlags)), SLOT(on_noticeReceived(QString, QString, Irc::Buffer::MessageFlags))); connect(this, SIGNAL(ctcpRequestReceived(QString, QString, Irc::Buffer::MessageFlags)), SLOT(on_ctcpRequestReceived(QString, QString, Irc::Buffer::MessageFlags))); connect(this, SIGNAL(ctcpReplyReceived(QString, QString, Irc::Buffer::MessageFlags)), SLOT(on_ctcpReplyReceived(QString, QString, Irc::Buffer::MessageFlags))); connect(this, SIGNAL(ctcpActionReceived(QString, QString, Irc::Buffer::MessageFlags)), SLOT(on_ctcpActionReceived(QString, QString, Irc::Buffer::MessageFlags))); connect(this, SIGNAL(numericMessageReceived(QString, uint, QStringList)), SLOT(on_numericMessageReceived(QString, uint, QStringList))); connect(this, SIGNAL(unknownMessageReceived(QString, QStringList)), SLOT(on_unknownMessageReceived(QString, QStringList))); }
void MainWindow::channelSettingsPressed(QString channel) { if (channel.isEmpty()) channel = ui->treeWidget->selectedChannel(); if (!channelsettingsdialog) { channelsettingsdialog = new ChannelSettingsDialog(this); connect(irc, SIGNAL(sigBanList(QString,QString,QString,QString)), channelsettingsdialog, SLOT(bansReceived(QString,QString,QString,QString))); connect(irc, SIGNAL(sigChannelMode(QString,QStringList)), channelsettingsdialog, SLOT(channelModeReceived(QString,QStringList))); connect(channelsettingsdialog, SIGNAL(updatePressed(QString)), irc, SLOT(getBans(QString))); connect(channelsettingsdialog, SIGNAL(channelModeChanged(QString,QString)), irc, SLOT(setChannelMode(QString,QString))); connect(channelsettingsdialog, SIGNAL(topicChanged(QString,QString)), irc, SLOT(setTopic(QString,QString))); } channelsettingsdialog->clearItems(); channelsettingsdialog->channel = channel; channelsettingsdialog->setWindowTitle(tr("%1 settings").arg(channel)); channelsettingsdialog->setTopicText(getTopic(channelsettingsdialog->channel)); channelsettingsdialog->show(); irc->getBans(channelsettingsdialog->channel); irc->getChannelMode(channelsettingsdialog->channel); }
void tst_IrcChannel::testSignals() { IrcChannel channel; QSignalSpy modeSpy(&channel, SIGNAL(modeChanged(QString))); QSignalSpy topicSpy(&channel, SIGNAL(topicChanged(QString))); QVERIFY(modeSpy.isValid()); QVERIFY(topicSpy.isValid()); }
void TopicItem::SetTopic(const TopicPtr& topic) { if (!topic) { return; } m_Topic = topic; emit topicChanged(); }
Timeline::Timeline(QWidget *parent) : QWidget(parent) { m_timer = new QTimer(this); connect(m_timer, SIGNAL(timeout()), this, SLOT(updateTime())); setupUi(this); connect(topicWidget, SIGNAL(topicChanged(RecordItNow::Topic)), this, SLOT(topicChanged(RecordItNow::Topic))); connect(topicWidget, SIGNAL(durationChanged(ulong)), this, SLOT(durationChanged(ulong))); connect(topicWidget, SIGNAL(topicChanged(RecordItNow::Topic)), this, SIGNAL(currentTopicChanged(RecordItNow::Topic))); slider->setMaximum(0); resetSlider(); setState(Idle); }
void QuetzalChat::update(PurpleConvUpdateType type) { PurpleConvChat *chat = PURPLE_CONV_CHAT(m_conv); if (type == PURPLE_CONV_UPDATE_CHATLEFT) setJoined(chat->left); else if (type == PURPLE_CONV_UPDATE_TOPIC) { QString oldTopic = m_topic; m_topic = purple_conv_chat_get_topic(PURPLE_CONV_CHAT(m_conv)); emit topicChanged(m_topic, oldTopic); } else if (type == PURPLE_CONV_UPDATE_TITLE) { // QString oldTitle = m_title; // m_title = purple_PURPLE_CONV_CHAT(m_conv)); // emit topicChanged(m_topic, oldTopic); } }
void TopicComboBox::topicActivated(int index) { emit topicChanged(text(index).section(' ',1)); }
void TopicComboBox::topicActivated(const QString& newTopic) { emit topicChanged(newTopic); }
void Channel::setTopic(QString topic) { m_topic = topic; emit topicChanged(m_topic); }