Bidding round control communicating with the server.
This commit is contained in:
@ -27,11 +27,11 @@ BiddingRoundControl::BiddingRoundControl(QWidget* parent)
|
||||
m_layout->addWidget(m_refreshRoundButton);
|
||||
|
||||
connect(m_newRoundButton, &QPushButton::clicked, this,
|
||||
&BiddingRoundControl::triggerStartNewRound);
|
||||
&BiddingRoundControl::onStartNewRoundTriggered);
|
||||
connect(m_restartRoundButton, &QPushButton::clicked, this,
|
||||
&BiddingRoundControl::triggerRestartLastRound);
|
||||
&BiddingRoundControl::onRestartLastRoundTriggered);
|
||||
connect(m_stopRoundButton, &QPushButton::clicked, this,
|
||||
&BiddingRoundControl::triggerStopCurrentRound);
|
||||
&BiddingRoundControl::onStopCurrentRoundTriggered);
|
||||
connect(m_refreshRoundButton, &QPushButton::clicked, this,
|
||||
&BiddingRoundControl::onRefreshCurrentRoundTriggered);
|
||||
}
|
||||
@ -40,6 +40,16 @@ void BiddingRoundControl::onRefreshCurrentRoundTriggered() {
|
||||
emit sendGetRequest(GetCurrentBiddingRound);
|
||||
}
|
||||
|
||||
void BiddingRoundControl::onStartNewRoundTriggered() { emit sendGetRequest(StartNewBiddingRound); }
|
||||
|
||||
void BiddingRoundControl::onRestartLastRoundTriggered() {
|
||||
emit sendGetRequest(RestartLastBiddingRound);
|
||||
}
|
||||
|
||||
void BiddingRoundControl::onStopCurrentRoundTriggered() {
|
||||
emit sendGetRequest(StopCurrentBiddingRound);
|
||||
}
|
||||
|
||||
void BiddingRoundControl::onCurrentBiddingRoundChanged(int roundNumber, bool isActive) {
|
||||
QString text = QString::number(roundNumber);
|
||||
if (isActive) {
|
||||
|
||||
@ -23,6 +23,9 @@ class BiddingRoundControl : public QWidget {
|
||||
public slots:
|
||||
/// button slots
|
||||
void onRefreshCurrentRoundTriggered();
|
||||
void onStartNewRoundTriggered();
|
||||
void onRestartLastRoundTriggered();
|
||||
void onStopCurrentRoundTriggered();
|
||||
|
||||
/// event slots
|
||||
void onCurrentBiddingRoundChanged(int roundNumber, bool isActive);
|
||||
|
||||
Reference in New Issue
Block a user