MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / start

Method start

libs/librepcb/core/network/networkrequestbase.cpp:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void NetworkRequestBase::start() noexcept {
119 Q_ASSERT(QThread::currentThread() != NetworkAccessManager::instance());
120
121 if (NetworkAccessManager* manager = NetworkAccessManager::instance()) {
122 mStarted = true;
123 moveToThread(manager); // process events of this object in download thread
124 emit progressState(tr("Start request..."));
125 emit startRequested(); // execute executeRequest() in download thread
126 } else {
127 finalize(tr("Fatal error: Download manager is not running."));
128 }
129}
130
131void NetworkRequestBase::abort() noexcept {
132 Q_ASSERT(QThread::currentThread() == NetworkAccessManager::instance());

Callers 5

startInfoRequestMethod · 0.45
startUploadMethod · 0.45
requestLibraryListMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected