void Application::showUpdateDetails() { Notification *notification = dynamic_cast<Notification*>(sender()); if (notification) { UpdateCheckerDialog *dialog = new UpdateCheckerDialog(NULL, notification->getData().value<QList<UpdateInformation> >()); dialog->show(); } }
//----------------------------------------------------------------------- void TransCommand::go(const Notification& notification) { if (NTF_Predefined_Trans != notification.getName()) { return; } typedef std::tuple<u2::Context*, ContextQueue::eTransType, u2::Context*> TransCommandData; const TransCommandData* pData = static_cast<const TransCommandData*>(notification.getData()); if (pData == nullptr) { assert(0); } else { u2::Context* pFrom = std::get<0>(*pData); ContextQueue::eTransType eType = std::get<1>(*pData); u2::Context* pTo = std::get<2>(*pData); _createMediator(pFrom, nullptr, eType, pTo); } }
//----------------------------------------------------------------------- void DestoryContextCommand::go(const Notification& notification) { const void* pData = notification.getData(); _destroyContext((u2::Context*)pData); }