refactor: remove innclude guards, use pragma instead

This commit is contained in:
2024-03-28 03:05:26 +02:00
parent f27050afbc
commit 0bcceefd47
97 changed files with 186 additions and 551 deletions

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef ABSTRACTEXTSYSMONSOURCE_H
#define ABSTRACTEXTSYSMONSOURCE_H
#pragma once
#include <QObject>
#include <QRegularExpression>
@ -50,6 +49,3 @@ public:
signals:
void dataReceived(const QVariantHash &);
};
#endif /* ABSTRACTEXTSYSMONSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef BATTERYSOURCE_H
#define BATTERYSOURCE_H
#pragma once
#include <QDateTime>
#include <QObject>
@ -50,6 +49,3 @@ private:
QHash<int, QList<int>> m_trend;
QVariantHash m_values;
};
#endif /* BATTERYSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef CUSTOMSOURCE_H
#define CUSTOMSOURCE_H
#pragma once
#include <QObject>
@ -44,6 +43,3 @@ private:
ExtItemAggregator<ExtScript> *m_extScripts = nullptr;
QStringList m_sources;
};
#endif /* CUSTOMSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef DESKTOPSOURCE_H
#define DESKTOPSOURCE_H
#pragma once
#include <QObject>
@ -42,6 +41,3 @@ public:
private:
TaskManager::VirtualDesktopInfo *m_vdi = nullptr;
};
#endif /* DESKTOPSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef EXTSYSMONSENSOR_H
#define EXTSYSMONSENSOR_H
#pragma once
#include <ksysguard/systemstats/SensorObject.h>
@ -40,6 +39,3 @@ private:
AbstractExtSysMonSource *m_source = nullptr;
QTimer *m_timer = nullptr;
};
#endif /* EXTSYSMONSENSOR_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef LOADSOURCE_H
#define LOADSOURCE_H
#pragma once
#include <QObject>
@ -35,6 +34,3 @@ public:
void run() override{};
[[nodiscard]] QStringList sources() const override;
};
#endif /* LOADSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef NETWORKSOURCE_H
#define NETWORKSOURCE_H
#pragma once
#include <QObject>
@ -45,6 +44,3 @@ private:
QProcess *m_process = nullptr;
static QString getCurrentDevice();
};
#endif /* NETWORKSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef PLAYERSOURCE_H
#define PLAYERSOURCE_H
#pragma once
#include <QMutex>
#include <QObject>
@ -68,6 +67,3 @@ private:
QStringList m_metadata = QStringList({"album", "artist", "title"});
QVariantHash m_values;
};
#endif /* PLAYERSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef PROCESSESSOURCE_H
#define PROCESSESSOURCE_H
#pragma once
#include <QObject>
@ -39,6 +38,3 @@ private:
// configuration and values
QVariantHash m_values;
};
#endif /* PROCESSESSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef QUOTESSOURCE_H
#define QUOTESSOURCE_H
#pragma once
#include <QObject>
@ -45,6 +44,3 @@ private:
QStringList m_sources;
QVariantHash m_values;
};
#endif /* QUOTESSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef REQUESTSOURCE_H
#define REQUESTSOURCE_H
#pragma once
#include <QObject>
@ -45,6 +44,3 @@ private:
QStringList m_sources;
QVariantHash m_values;
};
#endif /* REQUESTSOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef SYSTEMINFOSOURCE_H
#define SYSTEMINFOSOURCE_H
#pragma once
#include <QObject>
@ -44,6 +43,3 @@ private:
static QVariant sendDBusRequest(const QString &destination, const QString &path, const QString &interface,
const QString &method, const QVariantList &args = QVariantList());
};
#endif /* SYSTEMINFOSOURCE_H */

View File

@ -20,7 +20,6 @@
#include <QObject>
#include "abstractextsysmonsource.h"
#include "extitemaggregator.h"
class TimeSource : public AbstractExtSysMonSource

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef UPGRADESOURCE_H
#define UPGRADESOURCE_H
#pragma once
#include <QObject>
@ -44,6 +43,3 @@ private:
ExtItemAggregator<ExtUpgrade> *m_extUpgrade = nullptr;
QStringList m_sources;
};
#endif /* UPGRADESOURCE_H */

View File

@ -15,8 +15,7 @@
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef WEATHERSOURCE_H
#define WEATHERSOURCE_H
#pragma once
#include <QObject>
@ -45,6 +44,3 @@ private:
QStringList m_sources;
QVariantHash m_values;
};
#endif /* WEATHERSOURCE_H */