Addded log categories / human readable pattern

This commit is contained in:
Klaus Basan
2016-06-24 23:19:28 +02:00
parent 488d437a2a
commit dc02ff2d0c
8 changed files with 70 additions and 20 deletions

View File

@@ -24,6 +24,12 @@ using namespace BlackCore::Settings;
namespace BlackCore
{
const CLogCategoryList &CThreadedReader::getLogCategories()
{
static const BlackMisc::CLogCategoryList cats { BlackMisc::CLogCategory::worker() };
return cats;
}
CThreadedReader::CThreadedReader(QObject *owner, const QString &name) :
CContinuousWorker(owner, name),
m_updateTimer(new QTimer(this))
@@ -31,6 +37,11 @@ namespace BlackCore
m_toggleConnection = connect(this->m_updateTimer, &QTimer::timeout, this, &CThreadedReader::ps_toggleInterval);
}
CThreadedReader::~CThreadedReader()
{
gracefulShutdown();
}
qint64 CThreadedReader::lastModifiedMsSinceEpoch(QNetworkReply *nwReply) const
{
return CNetworkUtils::lastModifiedMsSinceEpoch(nwReply);
@@ -71,11 +82,6 @@ namespace BlackCore
}
}
CThreadedReader::~CThreadedReader()
{
gracefulShutdown();
}
void CThreadedReader::setInterval(int updatePeriodMs)
{
Q_ASSERT(this->m_updateTimer);