Skip to content
Snippets Groups Projects
Commit 381d6b52 authored by akiraohgaki's avatar akiraohgaki
Browse files

Set status

parent 66706217
No related branches found
No related tags found
No related merge requests found
...@@ -199,29 +199,33 @@ void WebSocketServer::itemUninstallFinished(QJsonObject result) ...@@ -199,29 +199,33 @@ void WebSocketServer::itemUninstallFinished(QJsonObject result)
sendMessage("", "ItemHandler::uninstallFinished", data); sendMessage("", "ItemHandler::uninstallFinished", data);
} }
void WebSocketServer::updateCheckAllStarted() void WebSocketServer::updateCheckAllStarted(bool status)
{ {
QJsonArray data; QJsonArray data;
data.append(status);
sendMessage("", "UpdateHandler::checkAllStarted", data); sendMessage("", "UpdateHandler::checkAllStarted", data);
} }
void WebSocketServer::updateCheckAllFinished() void WebSocketServer::updateCheckAllFinished(bool status)
{ {
QJsonArray data; QJsonArray data;
data.append(status);
sendMessage("", "UpdateHandler::checkAllFinished", data); sendMessage("", "UpdateHandler::checkAllFinished", data);
} }
void WebSocketServer::updateUpdateStarted(QString itemKey) void WebSocketServer::updateUpdateStarted(QString itemKey, bool status)
{ {
QJsonArray data; QJsonArray data;
data.append(itemKey); data.append(itemKey);
data.append(status);
sendMessage("", "UpdateHandler::updateStarted", data); sendMessage("", "UpdateHandler::updateStarted", data);
} }
void WebSocketServer::updateUpdateFinished(QString itemKey) void WebSocketServer::updateUpdateFinished(QString itemKey, bool status)
{ {
QJsonArray data; QJsonArray data;
data.append(itemKey); data.append(itemKey);
data.append(status);
sendMessage("", "UpdateHandler::updateFinished", data); sendMessage("", "UpdateHandler::updateFinished", data);
} }
......
...@@ -51,11 +51,11 @@ private slots: ...@@ -51,11 +51,11 @@ private slots:
void itemUninstallStarted(QJsonObject result); void itemUninstallStarted(QJsonObject result);
void itemUninstallFinished(QJsonObject result); void itemUninstallFinished(QJsonObject result);
void updateCheckAllStarted();
void updateCheckAllFinished();
void updateUpdateStarted(QString itemKey);
void updateUpdateFinished(QString itemKey);
void updateUpdateProgress(QString itemKey, int progress); void updateUpdateProgress(QString itemKey, int progress);
void updateCheckAllStarted(bool status);
void updateCheckAllFinished(bool status);
void updateUpdateStarted(QString itemKey, bool status);
void updateUpdateFinished(QString itemKey, bool status);
private: private:
void receiveMessage(const QString &id, const QString &func, const QJsonArray &data); void receiveMessage(const QString &id, const QString &func, const QJsonArray &data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment