MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / nextStep

Method nextStep

launcher/minecraft/auth/flows/AuthFlow.cpp:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void AuthFlow::nextStep() {
33 if(m_steps.size() == 0) {
34 // we got to the end without an incident... assume this is all.
35 m_currentStep.reset();
36 succeed();
37 return;
38 }
39 m_currentStep = m_steps.front();
40 qDebug() << "AuthFlow:" << m_currentStep->describe();
41 m_steps.pop_front();
42 connect(m_currentStep.get(), &AuthStep::finished, this, &AuthFlow::stepFinished);
43 connect(m_currentStep.get(), &AuthStep::showVerificationUriAndCode, this, &AuthFlow::showVerificationUriAndCode);
44 connect(m_currentStep.get(), &AuthStep::hideVerificationUriAndCode, this, &AuthFlow::hideVerificationUriAndCode);
45
46 m_currentStep->perform();
47}
48
49
50QString AuthFlow::getStateMessage() const {

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.45
resetMethod · 0.45
describeMethod · 0.45
getMethod · 0.45
performMethod · 0.45

Tested by

no test coverage detected