int upx::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: addHostGroup(); break; case 1: updateHostGroup(); break; case 2: delHostGroup(); break; case 3: addHost(); break; case 4: delHost(); break; case 5: groupClicked((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break; case 6: saveSettings(); break; case 7: saveLog2File(); break; case 8: addGame(); break; case 9: updateGame(); break; case 10: deleteGame(); break; case 11: calcGigest(); break; case 12: gameRefresh(); break; case 13: addGameHost(); break; case 14: deleteGameHost(); break; case 15: gameStop(); break; case 16: gameStart(); break; case 17: diffGameFiles(); break; case 18: syncGameFiles(); break; case 19: selectGamePath(); break; case 20: selectGameItem(); break; default: ; } _id -= 21; } return _id; }
void GameProcess::gameFinished(int exitCode, QProcess::ExitStatus exitStatus) { QString failureMessage; if( exitStatus == QProcess::CrashExit || exitCode != 0 ) { failureMessage = "Le jeu c'est terminé de manière inatandu."; } emit gameStop( failureMessage ); }
void GameProcess::stateChanged(QProcess::ProcessState newState) { if( ( newState == QProcess::NotRunning && lastState == QProcess::Starting ) || ( newState == QProcess::NotRunning && lastState == QProcess::NotRunning ) ) { emit gameStop( QString( "Le jeu n'a pas pu être démarré." ) ); } lastState = newState; }
void gameFinish() { gameStop(); gameTerminate(); platformExit(); }