Item Refactor complete
This commit is contained in:
parent
219fbfb4c7
commit
24c168cf64
17 changed files with 78 additions and 41 deletions
|
|
@ -94,6 +94,20 @@ void TcpClient::socketReadyRead()
|
|||
}
|
||||
}
|
||||
|
||||
void TcpClient::itemUpdated(ItemUpdateRequest update)
|
||||
{
|
||||
if(update.type == ITEM_UPDATE_USER)
|
||||
{
|
||||
QJsonArray items;
|
||||
QJsonObject itemjson;
|
||||
update.payload.store(itemjson);
|
||||
items.append(itemjson);
|
||||
QJsonObject json = createMessage("ItemUpdate", items);
|
||||
json["FullList"] = false;
|
||||
sendJson(json);
|
||||
}
|
||||
}
|
||||
|
||||
TcpClient::~TcpClient()
|
||||
{
|
||||
delete socket;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue