mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
turns out new slot/signal syntax can ignore extra params
This commit is contained in:
parent
663cd65fca
commit
c50338e73e
7 changed files with 16 additions and 21 deletions
|
|
@ -191,7 +191,7 @@ void TabAdmin::actForceActivateUser()
|
||||||
client->sendCommand(pend);
|
client->sendCommand(pend);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabAdmin::grantReplayAccessProcessResponse(const Response &response, const CommandContainer &, const QVariant &)
|
void TabAdmin::grantReplayAccessProcessResponse(const Response &response)
|
||||||
{
|
{
|
||||||
auto *event = new Event_ReplayAdded();
|
auto *event = new Event_ReplayAdded();
|
||||||
|
|
||||||
|
|
@ -209,7 +209,7 @@ void TabAdmin::grantReplayAccessProcessResponse(const Response &response, const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabAdmin::activateUserProcessResponse(const Response &response, const CommandContainer &, const QVariant &)
|
void TabAdmin::activateUserProcessResponse(const Response &response)
|
||||||
{
|
{
|
||||||
switch (response.response_code()) {
|
switch (response.response_code()) {
|
||||||
case Response::RespActivationAccepted:
|
case Response::RespActivationAccepted:
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,8 @@ private slots:
|
||||||
void actReloadConfig();
|
void actReloadConfig();
|
||||||
void actGrantReplayAccess();
|
void actGrantReplayAccess();
|
||||||
void actForceActivateUser();
|
void actForceActivateUser();
|
||||||
void grantReplayAccessProcessResponse(const Response &resp, const CommandContainer &, const QVariant &);
|
void grantReplayAccessProcessResponse(const Response &response);
|
||||||
void activateUserProcessResponse(const Response &response, const CommandContainer &, const QVariant &);
|
void activateUserProcessResponse(const Response &response);
|
||||||
|
|
||||||
void actUnlock();
|
void actUnlock();
|
||||||
void actLock();
|
void actLock();
|
||||||
|
|
|
||||||
|
|
@ -194,9 +194,7 @@ void GameSelector::actCreate()
|
||||||
updateTitle();
|
updateTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameSelector::checkResponse(const Response &response,
|
void GameSelector::checkResponse(const Response &response)
|
||||||
const CommandContainer & /* commandContainer */,
|
|
||||||
const QVariant & /* extraData */)
|
|
||||||
{
|
{
|
||||||
// NB: We re-enable buttons for the currently selected game, which may not
|
// NB: We re-enable buttons for the currently selected game, which may not
|
||||||
// be the same game as the one for which we are processing a response.
|
// be the same game as the one for which we are processing a response.
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ private slots:
|
||||||
void actCreate();
|
void actCreate();
|
||||||
void actJoin();
|
void actJoin();
|
||||||
void actSelectedGameChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
void actSelectedGameChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||||
void checkResponse(const Response &response, const CommandContainer &, const QVariant &);
|
void checkResponse(const Response &response);
|
||||||
|
|
||||||
void ignoreListReceived(const QList<ServerInfo_User> &_ignoreList);
|
void ignoreListReceived(const QList<ServerInfo_User> &_ignoreList);
|
||||||
void processAddToListEvent(const Event_AddToList &event);
|
void processAddToListEvent(const Event_AddToList &event);
|
||||||
|
|
|
||||||
|
|
@ -91,9 +91,7 @@ void ZoneViewZone::initializeCards(const QList<const ServerInfo_Card *> &cardLis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZoneViewZone::zoneDumpReceived(const Response &r,
|
void ZoneViewZone::zoneDumpReceived(const Response &r)
|
||||||
const CommandContainer & /* commandContainer */,
|
|
||||||
const QVariant & /* extraData */)
|
|
||||||
{
|
{
|
||||||
const Response_DumpZone &resp = r.GetExtension(Response_DumpZone::ext);
|
const Response_DumpZone &resp = r.GetExtension(Response_DumpZone::ext);
|
||||||
const int respCardListSize = resp.zone_info().card_list_size();
|
const int respCardListSize = resp.zone_info().card_list_size();
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ public slots:
|
||||||
void setSortBy(CardList::SortOption _sortBy);
|
void setSortBy(CardList::SortOption _sortBy);
|
||||||
void setPileView(int _pileView);
|
void setPileView(int _pileView);
|
||||||
private slots:
|
private slots:
|
||||||
void zoneDumpReceived(const Response &r, const CommandContainer &, const QVariant &);
|
void zoneDumpReceived(const Response &r);
|
||||||
signals:
|
signals:
|
||||||
void beingDeleted();
|
void beingDeleted();
|
||||||
void optimumRectChanged();
|
void optimumRectChanged();
|
||||||
|
|
|
||||||
|
|
@ -250,8 +250,7 @@ void UserInfoBox::actPassword()
|
||||||
cmd.set_user_name(client->getUserName().toStdString());
|
cmd.set_user_name(client->getUserName().toStdString());
|
||||||
|
|
||||||
PendingCommand *pend = client->prepareSessionCommand(cmd);
|
PendingCommand *pend = client->prepareSessionCommand(cmd);
|
||||||
connect(pend, &PendingCommand::finished, this,
|
connect(pend, &PendingCommand::finished, this, [=, this](const Response &response) {
|
||||||
[=, this](const Response &response, const CommandContainer &, const QVariant &) {
|
|
||||||
if (response.response_code() == Response::RespOk) {
|
if (response.response_code() == Response::RespOk) {
|
||||||
changePassword(oldPassword, newPassword);
|
changePassword(oldPassword, newPassword);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue