fix formating

This commit is contained in:
Ondřej Fischer 2019-12-04 18:37:53 +01:00
parent 08afae47aa
commit 9d7e05635e
4 changed files with 17 additions and 17 deletions

View File

@ -22,8 +22,8 @@ class AuthToken : public serversdk::DatabaseTable {
class Timestamp : public serversdk::DatabaseTable {
Q_OBJECT
TABLE_PROPERTY(qint64, timestamp, setTimestamp, 0)
public:
Timestamp() = default;
public:
Timestamp() = default;
void setTimestamp(QDateTime time)
{

View File

@ -67,7 +67,7 @@ bool DatabaseAPI::processData(const std::shared_ptr<Data> &data)
!data->updatedSubjects.isEmpty() ||
!data->deletedTokens.isEmpty() ||
!data->deletedSubjects.isEmpty()) {
qInfo(database) << dash;
qInfo(database) << dash;
}
qInfo(database) << tab << "-> DATA PROCESSED TO DATABASE:";
qInfo(database) << tab << tab << data->updatedTokens.size() << "TOKENS ADDED/UPDATED";

View File

@ -129,8 +129,8 @@ bool SyncManager::startSynchronization()
else {
database->setLastSync(syncBegin);
qInfo(syncmanager).noquote() << "Update last synchronization time to time of this sync ("
<< QDateTime::fromMSecsSinceEpoch(syncBegin).toString("yyyy-MM-dd hh:mm:ss.zzz")
<< ")";
<< QDateTime::fromMSecsSinceEpoch(syncBegin).toString("yyyy-MM-dd hh:mm:ss.zzz")
<< ")";
}
qInfo(syncmanager) << equals;

View File

@ -26,18 +26,18 @@ class Token : public serversdk::DatabaseTable {
public:
/**
* # Needed values to proper sync
*
* * id - primary key
* * lastModified - when it was edited/modified
* * tokenData - key to open doors
* * subjectId - no way of make unassinged token (token without subject)
*
*/
public:
/**
* # Needed values to proper sync
*
* * id - primary key
* * lastModified - when it was edited/modified
* * tokenData - key to open doors
* * subjectId - no way of make unassinged token (token without subject)
*
*/
explicit Token() = default;
explicit Token() = default;
~Token() override;
QByteArray jsonData(const QSet<QString> &filters = {}) const override;