15 #include "ui_vp1incomingmessagedialog.h"
21 #include <QMessageBox>
52 QQueue<VP1ExternalRequest>* rq,
53 bool *blockallmessages,
54 QList<QString>* messages_blockedsenders,
55 QList<VP1ExternalRequest>* messages_blockedexactmessages,
67 Ui::VP1IncomingMessageForm ui;
89 ui.label_header->setText(ui.label_header->text().replace(
"SENDERPLACEHOLDER",
m_d->
request.
sender()));
91 ui.widget_showtab->hide();
93 ui.label_showtab->setText(ui.label_showtab->text().replace(
"DUMMYTABNAME",
m_d->
request.
actioninfo()));
95 ui.label_showtaberror->hide();
97 ui.pushButton_showtab_gothere->hide();
100 ui.label_showtab->setText(ui.label_showtab->text().replace(
"tab",
"channel"));
101 ui.label_showtab->setText(ui.label_showtab->text().replace(
"DUMMYTABNAME",
m_d->
request.
actioninfo()));
104 ui.label_showtaberror->hide();
106 ui.label_showtaberror->setText(ui.label_showtaberror->text().replace(
"tab",
"channel"));
107 ui.pushButton_showtab_gothere->hide();
111 assert(0&&
"This should never happen unless you did not hardcode all action types!");
164 int ret = QMessageBox::question(
this,
"VP1 - Block all incoming messages?",
165 "This will block all incoming messages to the application.\nProceed?",
166 QMessageBox::Ok | QMessageBox::Cancel, QMessageBox::Cancel );
167 if (ret!=QMessageBox::Ok)
176 QList<VP1ExternalRequest>
tmp;
197 QList<VP1ExternalRequest>
tmp;