void QTMegaListener::onTransferTemporaryError(MegaApi *api, MegaTransfer *transfer, MegaError *e) { QTMegaEvent *event = new QTMegaEvent(api, (QEvent::Type)QTMegaEvent::OnTransferTemporaryError); event->setTransfer(transfer->copy()); event->setError(e->copy()); QCoreApplication::postEvent(this, event, INT_MIN); }
void QTMegaListener::onTransferUpdate(MegaApi *api, MegaTransfer *transfer) { QTMegaEvent *event = new QTMegaEvent(api, (QEvent::Type)QTMegaEvent::OnTransferUpdate); event->setTransfer(transfer->copy()); QCoreApplication::postEvent(this, event, INT_MIN); }