mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 22:35:49 +00:00
add time source
This commit is contained in:
@ -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
|
||||
|
@ -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 */
|
||||
|
Reference in New Issue
Block a user