1#include "cavokeqmlgamemodel.h"
4CavokeQmlGameModel::CavokeQmlGameModel(QUrl qmlPath, QObject *parent)
5 : QObject{parent}, qmlPath{qmlPath} {
8void CavokeQmlGameModel::getMoveFromQml(
const QString &jsonMove) {
9 qDebug() <<
"CQGM: Received move! " << jsonMove;
11 emit sendMoveToNetwork(jsonMove);
14void CavokeQmlGameModel::getUpdateFromNetwork(
const QString &jsonUpdate) {
15 qDebug() <<
"CQGM: Received update! " << jsonUpdate;
16 emit receiveUpdate(jsonUpdate);
19void CavokeQmlGameModel::getClosingFromQml(QQuickCloseEvent *close) {
20 qDebug() <<
"CQGM: Closing!! ";