diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-04-13 21:49:33 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-04-13 21:49:33 +0000 |
| commit | dca2bef4e32e631c2eabc387261b4be680016095 (patch) | |
| tree | e86b72543d0738633abc94c5ef9607bb757422a6 /pica-client/msguirouter.cpp | |
| parent | 5c2175f675751f63ffa47ffde156620cc6f77abd (diff) | |
| download | pica-pica-dca2bef4e32e631c2eabc387261b4be680016095.tar.gz pica-pica-dca2bef4e32e631c2eabc387261b4be680016095.zip | |
notifications about protocol version incompatibility implemented
git-svn-id: svn://localhost/project_picapica/trunk@236 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/msguirouter.cpp')
| -rw-r--r-- | pica-client/msguirouter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pica-client/msguirouter.cpp b/pica-client/msguirouter.cpp index d032bb1..9750d4d 100644 --- a/pica-client/msguirouter.cpp +++ b/pica-client/msguirouter.cpp @@ -1,6 +1,7 @@ #include "msguirouter.h" #include "dialogs/forgedcertdialog.h" #include "history.h" +#include "mainwindow.h" /* @@ -20,6 +21,7 @@ MsgUIRouter::MsgUIRouter(QObject *parent) : connect(skynet, SIGNAL(UnableToDeliver(quint32,QString)), this, SLOT(delivery_failed(quint32,QString))); connect(skynet, SIGNAL(Delivered(quint32)), this, SLOT(delivered(quint32))); connect(skynet, SIGNAL(CertificateForged(quint32,QString,QString)), this, SLOT(scary_cert_message(quint32,QString,QString))); + connect(skynet, SIGNAL(ErrMsgFromNode(QString)), this, SLOT(notification(QString))); } @@ -98,3 +100,9 @@ void MsgUIRouter::scary_cert_message(quint32 peer_id, QString received_cert, QSt ForgedCertDialog fcd(peer_id, received_cert, stored_cert); fcd.exec(); } + +void MsgUIRouter::notification(QString text) +{ + if (mainwindow) + mainwindow->AddNotification(text); +} |
