mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
Minor: Logging for reader, removed sort log message, guard name
This commit is contained in:
@@ -24,6 +24,12 @@ namespace BlackCore
|
|||||||
connect(&m_watchdogTimer, &QTimer::timeout, this, &CDatabaseReader::ps_watchdog);
|
connect(&m_watchdogTimer, &QTimer::timeout, this, &CDatabaseReader::ps_watchdog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const CLogCategoryList &CDatabaseReader::getLogCategories()
|
||||||
|
{
|
||||||
|
static const BlackMisc::CLogCategoryList cats { BlackMisc::CLogCategory::swiftDbWebservice(), BlackMisc::CLogCategory::mapping() };
|
||||||
|
return cats;
|
||||||
|
}
|
||||||
|
|
||||||
void CDatabaseReader::readInBackgroundThread(CEntityFlags::Entity entities, const QDateTime &newerThan)
|
void CDatabaseReader::readInBackgroundThread(CEntityFlags::Entity entities, const QDateTime &newerThan)
|
||||||
{
|
{
|
||||||
if (isAbandoned()) { return; }
|
if (isAbandoned()) { return; }
|
||||||
|
|||||||
@@ -76,6 +76,9 @@ namespace BlackCore
|
|||||||
operator QJsonArray() const { return m_jsonArray; }
|
operator QJsonArray() const { return m_jsonArray; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! Log categories
|
||||||
|
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||||
|
|
||||||
//! Start reading in own thread
|
//! Start reading in own thread
|
||||||
void readInBackgroundThread(BlackMisc::Network::CEntityFlags::Entity entities, const QDateTime &newerThan);
|
void readInBackgroundThread(BlackMisc::Network::CEntityFlags::Entity entities, const QDateTime &newerThan);
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
//! \file
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKGUI_MAPPINGCOMPONENT_H
|
#ifndef BLACKGUI_COMPONENTS_MAPPINGCOMPONENT_H
|
||||||
#define BLACKGUI_MAPPINGCOMPONENT_H
|
#define BLACKGUI_COMPONENTS_MAPPINGCOMPONENT_H
|
||||||
|
|
||||||
#include "blackgui/blackguiexport.h"
|
#include "blackgui/blackguiexport.h"
|
||||||
#include "blackgui/components/enablefordockwidgetinfoarea.h"
|
#include "blackgui/components/enablefordockwidgetinfoarea.h"
|
||||||
|
|||||||
@@ -587,13 +587,7 @@ namespace BlackGui
|
|||||||
return Private::compareForModelSort<ObjectType>(a, b, order, propertyIndex, marker);
|
return Private::compareForModelSort<ObjectType>(a, b, order, propertyIndex, marker);
|
||||||
};
|
};
|
||||||
|
|
||||||
//! \todo Time measurement will be removed
|
return container.sorted(p);
|
||||||
QTime t;
|
|
||||||
t.start();
|
|
||||||
const ContainerType sorted = container.sorted(p);
|
|
||||||
int te = t.elapsed();
|
|
||||||
CLogMessage(this).info("Sorted %1 in %2") << typeid(ObjectType).name() << te;
|
|
||||||
return sorted;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename ObjectType, typename ContainerType, bool UseCompare>
|
template <typename ObjectType, typename ContainerType, bool UseCompare>
|
||||||
|
|||||||
Reference in New Issue
Block a user