void MiningPage::typeChanged(int index) { if (index == 0) // Solo Mining { enablePoolMiningControls(false); } else if (index == 1) // Pool Mining { enablePoolMiningControls(true); } }
int MiningPage::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: startPressed(); break; case 1: startPoolMining(); break; case 2: stopPoolMining(); break; case 3: updateSpeed(); break; case 4: loadSettings(); break; case 5: saveSettings(); break; case 6: reportToList((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break; case 7: minerStarted(); break; case 8: minerError((*reinterpret_cast< QProcess::ProcessError(*)>(_a[1]))); break; case 9: minerFinished(); break; case 10: readProcessOutput(); break; case 11: { QString _r = getTime((*reinterpret_cast< QString(*)>(_a[1]))); if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; } break; case 12: enableMiningControls((*reinterpret_cast< bool(*)>(_a[1]))); break; case 13: enablePoolMiningControls((*reinterpret_cast< bool(*)>(_a[1]))); break; case 14: { ClientModel::MiningType _r = getMiningType(); if (_a[0]) *reinterpret_cast< ClientModel::MiningType*>(_a[0]) = _r; } break; case 15: typeChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 16: debugToggled((*reinterpret_cast< bool(*)>(_a[1]))); break; default: ; } _id -= 17; } return _id; }