mirror of
https://github.com/arcan1s/queued.git
synced 2025-04-24 15:37:19 +00:00
merge changes
This commit is contained in:
commit
f68d607da8
@ -99,9 +99,12 @@ QVariantHash QueuedTcpServerResponseHelperApi1::getData(
|
||||
else if (_type == "POST")
|
||||
output = QueuedTcpServerResponseHelperTask::addOrEditTask(
|
||||
_arg.toLongLong(), _data, _token);
|
||||
<<<<<<< HEAD
|
||||
else if (_type == "PUT")
|
||||
output = QueuedTcpServerResponseHelperTask::startOrStopTask(
|
||||
_arg.toLongLong(), _token);
|
||||
=======
|
||||
>>>>>>> baa20af363cb4b97cb6f7b36f833cf40f34cc61d
|
||||
else
|
||||
output = {{"code", 405}};
|
||||
break;
|
||||
|
@ -215,6 +215,10 @@ QHash<QString, QHash<QString, QString>> getStatus();
|
||||
* @return task properties
|
||||
*/
|
||||
QVariantHash getTask(const long long _id);
|
||||
/**
|
||||
* @return server status inforamtion
|
||||
*/
|
||||
QHash<QString, QHash<QString, QString>> getStatus();
|
||||
/**
|
||||
* @brief get task property
|
||||
* @param _id
|
||||
|
@ -106,8 +106,11 @@ QDBusVariant QueuedPropertyInterface::User(const long long id,
|
||||
return QDBusVariant(response);
|
||||
} else {
|
||||
auto response = user->property(qPrintable(property));
|
||||
<<<<<<< HEAD
|
||||
if (response.type() == QVariant::DateTime)
|
||||
response = response.toDateTime().toString(Qt::ISODateWithMs);
|
||||
=======
|
||||
>>>>>>> baa20af363cb4b97cb6f7b36f833cf40f34cc61d
|
||||
return QDBusVariant(response.isValid() ? response : "");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user