add time source

This commit is contained in:
2024-03-23 15:11:49 +02:00
parent 23e197789f
commit 0555185044
10 changed files with 123 additions and 36 deletions

View File

@ -32,6 +32,7 @@
#include "quotessource.h"
#include "requestsource.h"
#include "systeminfosource.h"
#include "timesource.h"
#include "upgradesource.h"
#include "weathersource.h"
@ -86,6 +87,8 @@ void ExtSysMonAggregator::init(const QHash<QString, QString> &_config)
createSensor("quotes", i18n("Quotes"), new QuotesSource(this, {}));
// system
createSensor("system", i18n("System"), new SystemInfoSource(this, {}));
// current time
createSensor("time", i18n("Time"), new TimeSource(this, {}));
// upgrade
createSensor("upgrade", i18n("Upgrades"), new UpgradeSource(this, {}));
// weather

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef EXTSYSMONAGGREGATOR_H
#define EXTSYSMONAGGREGATOR_H
#pragma once
#include <QObject>
#include <ksysguard/systemstats/SensorContainer.h>
@ -39,6 +38,3 @@ private:
void createSensor(const QString &_id, const QString &_name, AbstractExtSysMonSource *_source);
void init(const QHash<QString, QString> &_config);
};
#endif /* EXTSYSMONAGGREGATOR_H */