MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / enqeueCallbackTask

Method enqeueCallbackTask

src/network/ProtocolClient.cpp:803–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801 }
802
803 void ProtocolClient::enqeueCallbackTask(openmittsu::tasks::CallbackTask* callbackTask) {
804 if (callbackTask == nullptr) {
805 LOGGER()->warn("Ignoring nullptr callback task.");
806 return;
807 }
808
809 OPENMITTSU_CONNECT_QUEUED(callbackTask, finished(openmittsu::tasks::CallbackTask*), this, callbackTaskFinished(openmittsu::tasks::CallbackTask*));
810
811 if (!QMetaObject::invokeMethod(callbackTask, "start", Qt::QueuedConnection)) {
812 throw openmittsu::exceptions::InternalErrorException() << "Could not invoke method start in " << __FILE__ << " at line " << __LINE__ << ".";
813 }
814 }
815
816 void ProtocolClient::callbackTaskFinished(openmittsu::tasks::CallbackTask* callbackTask) {
817 if (dynamic_cast<openmittsu::tasks::IdentityReceiverCallbackTask*>(callbackTask) != nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected