forked from quickshell/quickshell
		
	core/log: track default logging categories
Fixes a bug in fb37be7 which ignored default logging categories due to
skipping QLoggingRegistry's filter.
			
			
This commit is contained in:
		
							parent
							
								
									5d7e07508a
								
							
						
					
					
						commit
						3d594e16dd
					
				
					 68 changed files with 212 additions and 79 deletions
				
			
		| 
						 | 
					@ -12,13 +12,14 @@
 | 
				
			||||||
#include <qstringliteral.h>
 | 
					#include <qstringliteral.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../dbus/properties.hpp"
 | 
					#include "../dbus/properties.hpp"
 | 
				
			||||||
#include "dbus_adapter.h"
 | 
					#include "dbus_adapter.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::bluetooth {
 | 
					namespace qs::bluetooth {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logAdapter, "quickshell.bluetooth.adapter", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logAdapter, "quickshell.bluetooth.adapter", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString BluetoothAdapterState::toString(BluetoothAdapterState::Enum state) {
 | 
					QString BluetoothAdapterState::toString(BluetoothAdapterState::Enum state) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,6 +8,7 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../dbus/dbus_objectmanager_types.hpp"
 | 
					#include "../dbus/dbus_objectmanager_types.hpp"
 | 
				
			||||||
#include "../dbus/objectmanager.hpp"
 | 
					#include "../dbus/objectmanager.hpp"
 | 
				
			||||||
#include "adapter.hpp"
 | 
					#include "adapter.hpp"
 | 
				
			||||||
| 
						 | 
					@ -16,7 +17,7 @@
 | 
				
			||||||
namespace qs::bluetooth {
 | 
					namespace qs::bluetooth {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logBluetooth, "quickshell.bluetooth", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logBluetooth, "quickshell.bluetooth", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Bluez* Bluez::instance() {
 | 
					Bluez* Bluez::instance() {
 | 
				
			||||||
| 
						 | 
					@ -156,7 +157,12 @@ void Bluez::onInterfacesRemoved(const QDBusObjectPath& path, const QStringList&
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BluezQml::BluezQml() {
 | 
					BluezQml::BluezQml() {
 | 
				
			||||||
	QObject::connect(Bluez::instance(), &Bluez::defaultAdapterChanged, this, &BluezQml::defaultAdapterChanged);
 | 
						QObject::connect(
 | 
				
			||||||
 | 
						    Bluez::instance(),
 | 
				
			||||||
 | 
						    &Bluez::defaultAdapterChanged,
 | 
				
			||||||
 | 
						    this,
 | 
				
			||||||
 | 
						    &BluezQml::defaultAdapterChanged
 | 
				
			||||||
 | 
						);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
} // namespace qs::bluetooth
 | 
					} // namespace qs::bluetooth
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -50,13 +50,21 @@ private:
 | 
				
			||||||
	ObjectModel<BluetoothDevice> mDevices {this};
 | 
						ObjectModel<BluetoothDevice> mDevices {this};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
	Q_OBJECT_BINDABLE_PROPERTY(Bluez, BluetoothAdapter*, bDefaultAdapter, &Bluez::defaultAdapterChanged);
 | 
						Q_OBJECT_BINDABLE_PROPERTY(
 | 
				
			||||||
 | 
						    Bluez,
 | 
				
			||||||
 | 
						    BluetoothAdapter*,
 | 
				
			||||||
 | 
						    bDefaultAdapter,
 | 
				
			||||||
 | 
						    &Bluez::defaultAdapterChanged
 | 
				
			||||||
 | 
						);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
///! Bluetooth manager
 | 
					///! Bluetooth manager
 | 
				
			||||||
/// Provides access to bluetooth devices and adapters.
 | 
					/// Provides access to bluetooth devices and adapters.
 | 
				
			||||||
class BluezQml: public QObject {
 | 
					class BluezQml: public QObject {
 | 
				
			||||||
	Q_OBJECT;
 | 
						Q_OBJECT;
 | 
				
			||||||
 | 
						QML_NAMED_ELEMENT(Bluetooth);
 | 
				
			||||||
 | 
						QML_SINGLETON;
 | 
				
			||||||
 | 
						// clang-format off
 | 
				
			||||||
	/// The default bluetooth adapter. Usually there is only one.
 | 
						/// The default bluetooth adapter. Usually there is only one.
 | 
				
			||||||
	Q_PROPERTY(BluetoothAdapter* defaultAdapter READ default NOTIFY defaultAdapterChanged BINDABLE bindableDefaultAdapter);
 | 
						Q_PROPERTY(BluetoothAdapter* defaultAdapter READ default NOTIFY defaultAdapterChanged BINDABLE bindableDefaultAdapter);
 | 
				
			||||||
	QSDOC_TYPE_OVERRIDE(ObjectModel<qs::bluetooth::BluetoothAdapter>*);
 | 
						QSDOC_TYPE_OVERRIDE(ObjectModel<qs::bluetooth::BluetoothAdapter>*);
 | 
				
			||||||
| 
						 | 
					@ -66,8 +74,7 @@ class BluezQml: public QObject {
 | 
				
			||||||
	/// A list of all connected bluetooth devices across all adapters.
 | 
						/// A list of all connected bluetooth devices across all adapters.
 | 
				
			||||||
	/// See @@BluetoothAdapter.devices for the devices connected to a single adapter.
 | 
						/// See @@BluetoothAdapter.devices for the devices connected to a single adapter.
 | 
				
			||||||
	Q_PROPERTY(UntypedObjectModel* devices READ devices CONSTANT);
 | 
						Q_PROPERTY(UntypedObjectModel* devices READ devices CONSTANT);
 | 
				
			||||||
	QML_NAMED_ELEMENT(Bluetooth);
 | 
						// clang-format on
 | 
				
			||||||
	QML_SINGLETON;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
signals:
 | 
					signals:
 | 
				
			||||||
	void defaultAdapterChanged();
 | 
						void defaultAdapterChanged();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,7 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../dbus/properties.hpp"
 | 
					#include "../dbus/properties.hpp"
 | 
				
			||||||
#include "adapter.hpp"
 | 
					#include "adapter.hpp"
 | 
				
			||||||
#include "bluez.hpp"
 | 
					#include "bluez.hpp"
 | 
				
			||||||
| 
						 | 
					@ -20,7 +21,7 @@
 | 
				
			||||||
namespace qs::bluetooth {
 | 
					namespace qs::bluetooth {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDevice, "quickshell.bluetooth.device", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDevice, "quickshell.bluetooth.device", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString BluetoothDeviceState::toString(BluetoothDeviceState::Enum state) {
 | 
					QString BluetoothDeviceState::toString(BluetoothDeviceState::Enum state) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,8 +18,10 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logColorQuantizer, "quickshell.colorquantizer", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logColorQuantizer, "quickshell.colorquantizer", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ColorQuantizerOperation::ColorQuantizerOperation(QUrl* source, qreal depth, qreal rescaleSize)
 | 
					ColorQuantizerOperation::ColorQuantizerOperation(QUrl* source, qreal depth, qreal rescaleSize)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,10 +17,11 @@
 | 
				
			||||||
#include <ranges>
 | 
					#include <ranges>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "common.hpp"
 | 
					#include "common.hpp"
 | 
				
			||||||
 | 
					#include "logcat.hpp"
 | 
				
			||||||
#include "model.hpp"
 | 
					#include "model.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDesktopEntry, "quickshell.desktopentry", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDesktopEntry, "quickshell.desktopentry", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct Locale {
 | 
					struct Locale {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,13 +21,14 @@
 | 
				
			||||||
#include "iconimageprovider.hpp"
 | 
					#include "iconimageprovider.hpp"
 | 
				
			||||||
#include "imageprovider.hpp"
 | 
					#include "imageprovider.hpp"
 | 
				
			||||||
#include "incubator.hpp"
 | 
					#include "incubator.hpp"
 | 
				
			||||||
 | 
					#include "logcat.hpp"
 | 
				
			||||||
#include "plugin.hpp"
 | 
					#include "plugin.hpp"
 | 
				
			||||||
#include "qsintercept.hpp"
 | 
					#include "qsintercept.hpp"
 | 
				
			||||||
#include "reload.hpp"
 | 
					#include "reload.hpp"
 | 
				
			||||||
#include "scan.hpp"
 | 
					#include "scan.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logScene, "scene");
 | 
					QS_LOGGING_CATEGORY(logScene, "scene");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static QHash<const QQmlEngine*, EngineGeneration*> g_generations; // NOLINT
 | 
					static QHash<const QQmlEngine*, EngineGeneration*> g_generations; // NOLINT
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,12 @@
 | 
				
			||||||
#include "incubator.hpp"
 | 
					#include "incubator.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <qlogging.h>
 | 
					#include <qlogging.h>
 | 
				
			||||||
#include <qloggingcategory.h>
 | 
					 | 
				
			||||||
#include <qqmlincubator.h>
 | 
					#include <qqmlincubator.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logIncubator, "quickshell.incubator", QtWarningMsg);
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_LOGGING_CATEGORY(logIncubator, "quickshell.incubator", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void QsQmlIncubator::statusChanged(QQmlIncubator::Status status) {
 | 
					void QsQmlIncubator::statusChanged(QQmlIncubator::Status status) {
 | 
				
			||||||
	switch (status) {
 | 
						switch (status) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,12 @@
 | 
				
			||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <qloggingcategory.h>
 | 
					 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qqmlincubator.h>
 | 
					#include <qqmlincubator.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logIncubator);
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_DECLARE_LOGGING_CATEGORY(logIncubator);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class QsQmlIncubator
 | 
					class QsQmlIncubator
 | 
				
			||||||
    : public QObject
 | 
					    : public QObject
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										28
									
								
								src/core/logcat.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								src/core/logcat.hpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,28 @@
 | 
				
			||||||
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <qlogging.h>
 | 
				
			||||||
 | 
					#include <qloggingcategory.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace qs::log {
 | 
				
			||||||
 | 
					void initLogCategoryLevel(const char* name, QtMsgType defaultLevel = QtDebugMsg);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
 | 
				
			||||||
 | 
					#define QS_DECLARE_LOGGING_CATEGORY(name)                                                          \
 | 
				
			||||||
 | 
						namespace qslogcat {                                                                             \
 | 
				
			||||||
 | 
						Q_DECLARE_LOGGING_CATEGORY(name);                                                                \
 | 
				
			||||||
 | 
						}                                                                                                \
 | 
				
			||||||
 | 
						const QLoggingCategory& name()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
 | 
				
			||||||
 | 
					#define QS_LOGGING_CATEGORY(name, category, ...)                                                   \
 | 
				
			||||||
 | 
						namespace qslogcat {                                                                             \
 | 
				
			||||||
 | 
						Q_LOGGING_CATEGORY(name, category __VA_OPT__(, __VA_ARGS__));                                    \
 | 
				
			||||||
 | 
						}                                                                                                \
 | 
				
			||||||
 | 
						const QLoggingCategory& name() {                                                                 \
 | 
				
			||||||
 | 
							static auto* init = []() {                                                                     \
 | 
				
			||||||
 | 
								qs::log::initLogCategoryLevel(category __VA_OPT__(, __VA_ARGS__));                           \
 | 
				
			||||||
 | 
								return &qslogcat::name;                                                                      \
 | 
				
			||||||
 | 
							}();                                                                                           \
 | 
				
			||||||
 | 
							return (init) ();                                                                              \
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -30,17 +30,18 @@
 | 
				
			||||||
#include <sys/sendfile.h>
 | 
					#include <sys/sendfile.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "instanceinfo.hpp"
 | 
					#include "instanceinfo.hpp"
 | 
				
			||||||
 | 
					#include "logcat.hpp"
 | 
				
			||||||
#include "logging_p.hpp"
 | 
					#include "logging_p.hpp"
 | 
				
			||||||
#include "logging_qtprivate.cpp" // NOLINT
 | 
					#include "logging_qtprivate.cpp" // NOLINT
 | 
				
			||||||
#include "paths.hpp"
 | 
					#include "paths.hpp"
 | 
				
			||||||
#include "ringbuf.hpp"
 | 
					#include "ringbuf.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logBare, "quickshell.bare");
 | 
					QS_LOGGING_CATEGORY(logBare, "quickshell.bare");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::log {
 | 
					namespace qs::log {
 | 
				
			||||||
using namespace qt_logging_registry;
 | 
					using namespace qt_logging_registry;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logLogging, "quickshell.logging", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logLogging, "quickshell.logging", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool LogMessage::operator==(const LogMessage& other) const {
 | 
					bool LogMessage::operator==(const LogMessage& other) const {
 | 
				
			||||||
	// note: not including time
 | 
						// note: not including time
 | 
				
			||||||
| 
						 | 
					@ -187,10 +188,16 @@ void LogManager::filterCategory(QLoggingCategory* category) {
 | 
				
			||||||
	// We don't respect log filters for qs logs because some distros like to ship
 | 
						// We don't respect log filters for qs logs because some distros like to ship
 | 
				
			||||||
	// default configs that hide everything. QT_LOGGING_RULES is considered via the filter list.
 | 
						// default configs that hide everything. QT_LOGGING_RULES is considered via the filter list.
 | 
				
			||||||
	if (isQs) {
 | 
						if (isQs) {
 | 
				
			||||||
		filter.debug = instance->mDefaultLevel == QtDebugMsg;
 | 
							// QtDebugMsg == 0, so default
 | 
				
			||||||
		filter.info = instance->mDefaultLevel == QtInfoMsg;
 | 
							auto defaultLevel = instance->defaultLevels.value(categoryName);
 | 
				
			||||||
		filter.warn = instance->mDefaultLevel == QtWarningMsg;
 | 
					
 | 
				
			||||||
		filter.critical = instance->mDefaultLevel == QtCriticalMsg;
 | 
							filter = CategoryFilter();
 | 
				
			||||||
 | 
							// clang-format off
 | 
				
			||||||
 | 
							filter.debug = instance->mDefaultLevel == QtDebugMsg || defaultLevel == QtDebugMsg;
 | 
				
			||||||
 | 
							filter.info = filter.debug || instance->mDefaultLevel == QtInfoMsg || defaultLevel == QtInfoMsg;
 | 
				
			||||||
 | 
							filter.warn = filter.info || instance->mDefaultLevel == QtWarningMsg || defaultLevel == QtWarningMsg;
 | 
				
			||||||
 | 
							filter.critical = filter.warn || instance->mDefaultLevel == QtCriticalMsg || defaultLevel == QtCriticalMsg;
 | 
				
			||||||
 | 
							// clang-format on
 | 
				
			||||||
	} else if (instance->lastCategoryFilter) {
 | 
						} else if (instance->lastCategoryFilter) {
 | 
				
			||||||
		instance->lastCategoryFilter(category);
 | 
							instance->lastCategoryFilter(category);
 | 
				
			||||||
		filter = CategoryFilter(category);
 | 
							filter = CategoryFilter(category);
 | 
				
			||||||
| 
						 | 
					@ -262,6 +269,10 @@ void LogManager::init(
 | 
				
			||||||
	qCDebug(logLogging) << "Logger initialized.";
 | 
						qCDebug(logLogging) << "Logger initialized.";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void initLogCategoryLevel(const char* name, QtMsgType defaultLevel) {
 | 
				
			||||||
 | 
						LogManager::instance()->defaultLevels.insert(QLatin1StringView(name), defaultLevel);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void LogManager::initFs() {
 | 
					void LogManager::initFs() {
 | 
				
			||||||
	QMetaObject::invokeMethod(
 | 
						QMetaObject::invokeMethod(
 | 
				
			||||||
	    &LogManager::instance()->threadProxy,
 | 
						    &LogManager::instance()->threadProxy,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <utility>
 | 
					#include <utility>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <qbytearrayview.h>
 | 
				
			||||||
#include <qcontainerfwd.h>
 | 
					#include <qcontainerfwd.h>
 | 
				
			||||||
#include <qdatetime.h>
 | 
					#include <qdatetime.h>
 | 
				
			||||||
#include <qfile.h>
 | 
					#include <qfile.h>
 | 
				
			||||||
| 
						 | 
					@ -12,7 +13,9 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logBare);
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_DECLARE_LOGGING_CATEGORY(logBare);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::log {
 | 
					namespace qs::log {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -127,11 +130,14 @@ private:
 | 
				
			||||||
	QString mRulesString;
 | 
						QString mRulesString;
 | 
				
			||||||
	QList<qt_logging_registry::QLoggingRule>* rules = nullptr;
 | 
						QList<qt_logging_registry::QLoggingRule>* rules = nullptr;
 | 
				
			||||||
	QtMsgType mDefaultLevel = QtWarningMsg;
 | 
						QtMsgType mDefaultLevel = QtWarningMsg;
 | 
				
			||||||
 | 
						QHash<QLatin1StringView, QtMsgType> defaultLevels;
 | 
				
			||||||
	QHash<const void*, CategoryFilter> sparseFilters;
 | 
						QHash<const void*, CategoryFilter> sparseFilters;
 | 
				
			||||||
	QHash<QLatin1StringView, CategoryFilter> allFilters;
 | 
						QHash<QLatin1StringView, CategoryFilter> allFilters;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	QTextStream stdoutStream;
 | 
						QTextStream stdoutStream;
 | 
				
			||||||
	LoggingThreadProxy threadProxy;
 | 
						LoggingThreadProxy threadProxy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						friend void initLogCategoryLevel(const char* name, QtMsgType defaultLevel);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool readEncodedLogs(
 | 
					bool readEncodedLogs(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,10 +16,11 @@
 | 
				
			||||||
#include <qstringview.h>
 | 
					#include <qstringview.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "logcat.hpp"
 | 
				
			||||||
#include "logging_qtprivate.hpp"
 | 
					#include "logging_qtprivate.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::log {
 | 
					namespace qs::log {
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logLogging);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logLogging);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qt_logging_registry {
 | 
					namespace qt_logging_registry {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,8 +12,10 @@
 | 
				
			||||||
#include <qstringview.h>
 | 
					#include <qstringview.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::log {
 | 
					namespace qs::log {
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logLogging);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logLogging);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qt_logging_registry {
 | 
					namespace qt_logging_registry {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,9 +16,10 @@
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "instanceinfo.hpp"
 | 
					#include "instanceinfo.hpp"
 | 
				
			||||||
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logPaths, "quickshell.paths", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logPaths, "quickshell.paths");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QsPaths* QsPaths::instance() {
 | 
					QsPaths* QsPaths::instance() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,7 +14,9 @@
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
#include <qurl.h>
 | 
					#include <qurl.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logQsIntercept, "quickshell.interceptor", QtWarningMsg);
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_LOGGING_CATEGORY(logQsIntercept, "quickshell.interceptor", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QUrl QsUrlInterceptor::intercept(
 | 
					QUrl QsUrlInterceptor::intercept(
 | 
				
			||||||
    const QUrl& originalUrl,
 | 
					    const QUrl& originalUrl,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,9 @@
 | 
				
			||||||
#include <qqmlnetworkaccessmanagerfactory.h>
 | 
					#include <qqmlnetworkaccessmanagerfactory.h>
 | 
				
			||||||
#include <qurl.h>
 | 
					#include <qurl.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logQsIntercept);
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_DECLARE_LOGGING_CATEGORY(logQsIntercept);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class QsUrlInterceptor: public QQmlAbstractUrlInterceptor {
 | 
					class QsUrlInterceptor: public QQmlAbstractUrlInterceptor {
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,9 @@
 | 
				
			||||||
#include <qstringliteral.h>
 | 
					#include <qstringliteral.h>
 | 
				
			||||||
#include <qtextstream.h>
 | 
					#include <qtextstream.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logQmlScanner, "quickshell.qmlscanner", QtWarningMsg);
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_LOGGING_CATEGORY(logQmlScanner, "quickshell.qmlscanner", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void QmlScanner::scanDir(const QString& path) {
 | 
					void QmlScanner::scanDir(const QString& path) {
 | 
				
			||||||
	if (this->scannedDirs.contains(path)) return;
 | 
						if (this->scannedDirs.contains(path)) return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,7 +6,9 @@
 | 
				
			||||||
#include <qloggingcategory.h>
 | 
					#include <qloggingcategory.h>
 | 
				
			||||||
#include <qvector.h>
 | 
					#include <qvector.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logQmlScanner);
 | 
					#include "logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_DECLARE_LOGGING_CATEGORY(logQmlScanner);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// expects canonical paths
 | 
					// expects canonical paths
 | 
				
			||||||
class QmlScanner {
 | 
					class QmlScanner {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,6 +15,7 @@
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../core/instanceinfo.hpp"
 | 
					#include "../core/instanceinfo.hpp"
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern char** environ; // NOLINT
 | 
					extern char** environ; // NOLINT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,7 +24,7 @@ using namespace google_breakpad;
 | 
				
			||||||
namespace qs::crash {
 | 
					namespace qs::crash {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logCrashHandler, "quickshell.crashhandler", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logCrashHandler, "quickshell.crashhandler", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct CrashHandlerPrivate {
 | 
					struct CrashHandlerPrivate {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,6 +17,7 @@
 | 
				
			||||||
#include <sys/types.h>
 | 
					#include <sys/types.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../core/instanceinfo.hpp"
 | 
					#include "../core/instanceinfo.hpp"
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../core/logging.hpp"
 | 
					#include "../core/logging.hpp"
 | 
				
			||||||
#include "../core/paths.hpp"
 | 
					#include "../core/paths.hpp"
 | 
				
			||||||
#include "build.hpp"
 | 
					#include "build.hpp"
 | 
				
			||||||
| 
						 | 
					@ -24,7 +25,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logCrashReporter, "quickshell.crashreporter", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logCrashReporter, "quickshell.crashreporter", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int tryDup(int fd, const QString& path) {
 | 
					int tryDup(int fd, const QString& path) {
 | 
				
			||||||
	QFile sourceFile;
 | 
						QFile sourceFile;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,10 +12,12 @@
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
#include <qvariant.h>
 | 
					#include <qvariant.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::dbus {
 | 
					namespace qs::dbus {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDbus, "quickshell.dbus", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDbus, "quickshell.dbus", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void tryLaunchService(
 | 
					void tryLaunchService(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,13 +21,14 @@
 | 
				
			||||||
#include <qvariant.h>
 | 
					#include <qvariant.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../../core/iconimageprovider.hpp"
 | 
					#include "../../core/iconimageprovider.hpp"
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/model.hpp"
 | 
					#include "../../core/model.hpp"
 | 
				
			||||||
#include "../../core/qsmenu.hpp"
 | 
					#include "../../core/qsmenu.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
#include "dbus_menu.h"
 | 
					#include "dbus_menu.h"
 | 
				
			||||||
#include "dbus_menu_types.hpp"
 | 
					#include "dbus_menu_types.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDbusMenu, "quickshell.dbus.dbusmenu", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDbusMenu, "quickshell.dbus.dbusmenu", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
using namespace qs::menu;
 | 
					using namespace qs::menu;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,7 +20,7 @@
 | 
				
			||||||
#include "../properties.hpp"
 | 
					#include "../properties.hpp"
 | 
				
			||||||
#include "dbus_menu_types.hpp"
 | 
					#include "dbus_menu_types.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logDbusMenu);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logDbusMenu);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class DBusMenuInterface;
 | 
					class DBusMenuInterface;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,11 +9,12 @@
 | 
				
			||||||
#include <qloggingcategory.h>
 | 
					#include <qloggingcategory.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "dbus_objectmanager.h"
 | 
					#include "dbus_objectmanager.h"
 | 
				
			||||||
#include "dbus_objectmanager_types.hpp"
 | 
					#include "dbus_objectmanager_types.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDbusObjectManager, "quickshell.dbus.objectmanager", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDbusObjectManager, "quickshell.dbus.objectmanager", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::dbus {
 | 
					namespace qs::dbus {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,9 +20,10 @@
 | 
				
			||||||
#include <qtversionchecks.h>
 | 
					#include <qtversionchecks.h>
 | 
				
			||||||
#include <qvariant.h>
 | 
					#include <qvariant.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "dbus_properties.h"
 | 
					#include "dbus_properties.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDbusProperties, "quickshell.dbus.properties", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDbusProperties, "quickshell.dbus.properties", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::dbus {
 | 
					namespace qs::dbus {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,11 +23,12 @@
 | 
				
			||||||
#include <qtversionchecks.h>
 | 
					#include <qtversionchecks.h>
 | 
				
			||||||
#include <qvariant.h>
 | 
					#include <qvariant.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../core/util.hpp"
 | 
					#include "../core/util.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class DBusPropertiesInterface;
 | 
					class DBusPropertiesInterface;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logDbusProperties);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logDbusProperties);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::dbus {
 | 
					namespace qs::dbus {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,10 +11,12 @@
 | 
				
			||||||
#include <qquickwindow.h>
 | 
					#include <qquickwindow.h>
 | 
				
			||||||
#include <qstringliteral.h>
 | 
					#include <qstringliteral.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::debug {
 | 
					namespace qs::debug {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logLint, "quickshell.linter", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logLint, "quickshell.linter", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void lintZeroSized(QQuickItem* item);
 | 
					void lintZeroSized(QQuickItem* item);
 | 
				
			||||||
bool isRenderable(QQuickItem* item);
 | 
					bool isRenderable(QQuickItem* item);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,12 +20,13 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../core/util.hpp"
 | 
					#include "../core/util.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::io {
 | 
					namespace qs::io {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logFileView, "quickshell.io.fileview", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logFileView, "quickshell.io.fileview", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString FileViewError::toString(FileViewError::Enum value) {
 | 
					QString FileViewError::toString(FileViewError::Enum value) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,9 +11,10 @@
 | 
				
			||||||
#include <qqmlengine.h>
 | 
					#include <qqmlengine.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "datastream.hpp"
 | 
					#include "datastream.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logSocket, "quickshell.io.socket", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logSocket, "quickshell.io.socket", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Socket::setSocket(QLocalSocket* socket) {
 | 
					void Socket::setSocket(QLocalSocket* socket) {
 | 
				
			||||||
	if (this->socket != nullptr) this->socket->deleteLater();
 | 
						if (this->socket != nullptr) this->socket->deleteLater();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,10 +10,11 @@
 | 
				
			||||||
#include <qtclasshelpermacros.h>
 | 
					#include <qtclasshelpermacros.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../core/reload.hpp"
 | 
					#include "../core/reload.hpp"
 | 
				
			||||||
#include "datastream.hpp"
 | 
					#include "datastream.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logSocket);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logSocket);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
///! Unix socket listener.
 | 
					///! Unix socket listener.
 | 
				
			||||||
class Socket: public DataStream {
 | 
					class Socket: public DataStream {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,12 +10,13 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../core/generation.hpp"
 | 
					#include "../core/generation.hpp"
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
#include "../core/paths.hpp"
 | 
					#include "../core/paths.hpp"
 | 
				
			||||||
#include "ipccommand.hpp"
 | 
					#include "ipccommand.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::ipc {
 | 
					namespace qs::ipc {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logIpc, "quickshell.ipc", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logIpc, "quickshell.ipc", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
IpcServer::IpcServer(const QString& path) {
 | 
					IpcServer::IpcServer(const QString& path) {
 | 
				
			||||||
	QObject::connect(&this->server, &QLocalServer::newConnection, this, &IpcServer::onNewConnection);
 | 
						QObject::connect(&this->server, &QLocalServer::newConnection, this, &IpcServer::onNewConnection);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,6 +15,8 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
template <typename... Types>
 | 
					template <typename... Types>
 | 
				
			||||||
constexpr void assertSerializable() {
 | 
					constexpr void assertSerializable() {
 | 
				
			||||||
	// monostate being zero ensures transactional reads wont break
 | 
						// monostate being zero ensures transactional reads wont break
 | 
				
			||||||
| 
						 | 
					@ -109,7 +111,7 @@ DEFINE_SIMPLE_DATASTREAM_OPS(std::monostate);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::ipc {
 | 
					namespace qs::ipc {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logIpc);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logIpc);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
template <typename T>
 | 
					template <typename T>
 | 
				
			||||||
class MessageStream {
 | 
					class MessageStream {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,9 +14,10 @@
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../../core/generation.hpp"
 | 
					#include "../../core/generation.hpp"
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logGreetd, "quickshell.service.greetd");
 | 
					QS_LOGGING_CATEGORY(logGreetd, "quickshell.service.greetd");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString GreetdState::toString(GreetdState::Enum value) {
 | 
					QString GreetdState::toString(GreetdState::Enum value) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,7 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
#include "dbus_player.h"
 | 
					#include "dbus_player.h"
 | 
				
			||||||
#include "dbus_player_app.h"
 | 
					#include "dbus_player_app.h"
 | 
				
			||||||
| 
						 | 
					@ -23,7 +24,7 @@ using namespace qs::dbus;
 | 
				
			||||||
namespace qs::service::mpris {
 | 
					namespace qs::service::mpris {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logMprisPlayer, "quickshell.service.mp.player", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logMprisPlayer, "quickshell.service.mp.player", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString MprisPlaybackState::toString(MprisPlaybackState::Enum status) {
 | 
					QString MprisPlaybackState::toString(MprisPlaybackState::Enum status) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,14 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qqmllist.h>
 | 
					#include <qqmllist.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/model.hpp"
 | 
					#include "../../core/model.hpp"
 | 
				
			||||||
#include "player.hpp"
 | 
					#include "player.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::mpris {
 | 
					namespace qs::service::mpris {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logMprisWatcher, "quickshell.service.mpris.watcher", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logMprisWatcher, "quickshell.service.mpris.watcher", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
MprisWatcher::MprisWatcher() {
 | 
					MprisWatcher::MprisWatcher() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,10 +7,12 @@
 | 
				
			||||||
#include <qsysinfo.h>
 | 
					#include <qsysinfo.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::notifications {
 | 
					namespace qs::service::notifications {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// NOLINTNEXTLINE(misc-use-internal-linkage)
 | 
					// NOLINTNEXTLINE(misc-use-internal-linkage)
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logNotifications); // server.cpp
 | 
					QS_DECLARE_LOGGING_CATEGORY(logNotifications); // server.cpp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QImage DBusNotificationImage::createImage() const {
 | 
					QImage DBusNotificationImage::createImage() const {
 | 
				
			||||||
	auto format = this->hasAlpha ? QImage::Format_RGBA8888 : QImage::Format_RGB888;
 | 
						auto format = this->hasAlpha ? QImage::Format_RGBA8888 : QImage::Format_RGB888;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,13 +12,14 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../../core/desktopentry.hpp"
 | 
					#include "../../core/desktopentry.hpp"
 | 
				
			||||||
#include "../../core/iconimageprovider.hpp"
 | 
					#include "../../core/iconimageprovider.hpp"
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "dbusimage.hpp"
 | 
					#include "dbusimage.hpp"
 | 
				
			||||||
#include "server.hpp"
 | 
					#include "server.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::notifications {
 | 
					namespace qs::service::notifications {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// NOLINTNEXTLINE(misc-use-internal-linkage)
 | 
					// NOLINTNEXTLINE(misc-use-internal-linkage)
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logNotifications); // server.cpp
 | 
					QS_DECLARE_LOGGING_CATEGORY(logNotifications); // server.cpp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString NotificationUrgency::toString(NotificationUrgency::Enum value) {
 | 
					QString NotificationUrgency::toString(NotificationUrgency::Enum value) {
 | 
				
			||||||
	switch (value) {
 | 
						switch (value) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,7 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/model.hpp"
 | 
					#include "../../core/model.hpp"
 | 
				
			||||||
#include "dbus_notifications.h"
 | 
					#include "dbus_notifications.h"
 | 
				
			||||||
#include "dbusimage.hpp"
 | 
					#include "dbusimage.hpp"
 | 
				
			||||||
| 
						 | 
					@ -20,7 +21,7 @@
 | 
				
			||||||
namespace qs::service::notifications {
 | 
					namespace qs::service::notifications {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// NOLINTNEXTLINE(misc-use-internal-linkage)
 | 
					// NOLINTNEXTLINE(misc-use-internal-linkage)
 | 
				
			||||||
Q_LOGGING_CATEGORY(logNotifications, "quickshell.service.notifications");
 | 
					QS_LOGGING_CATEGORY(logNotifications, "quickshell.service.notifications");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
NotificationServer::NotificationServer() {
 | 
					NotificationServer::NotificationServer() {
 | 
				
			||||||
	qDBusRegisterMetaType<DBusNotificationImage>();
 | 
						qDBusRegisterMetaType<DBusNotificationImage>();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,9 +8,10 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <sys/wait.h>
 | 
					#include <sys/wait.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "ipc.hpp"
 | 
					#include "ipc.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logPam, "quickshell.service.pam", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logPam, "quickshell.service.pam", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString PamError::toString(PamError::Enum value) {
 | 
					QString PamError::toString(PamError::Enum value) {
 | 
				
			||||||
	switch (value) {
 | 
						switch (value) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,9 +8,10 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "ipc.hpp"
 | 
					#include "ipc.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logPam);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logPam);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
///! The result of an authentication.
 | 
					///! The result of an authentication.
 | 
				
			||||||
/// See @@PamContext.completed(s).
 | 
					/// See @@PamContext.completed(s).
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,10 +14,12 @@
 | 
				
			||||||
#include <spa/utils/defs.h>
 | 
					#include <spa/utils/defs.h>
 | 
				
			||||||
#include <spa/utils/hook.h>
 | 
					#include <spa/utils/hook.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logLoop, "quickshell.service.pipewire.loop", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logLoop, "quickshell.service.pipewire.loop", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const pw_core_events PwCore::EVENTS = {
 | 
					const pw_core_events PwCore::EVENTS = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,6 +11,7 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <spa/utils/json.h>
 | 
					#include <spa/utils/json.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/util.hpp"
 | 
					#include "../../core/util.hpp"
 | 
				
			||||||
#include "metadata.hpp"
 | 
					#include "metadata.hpp"
 | 
				
			||||||
#include "node.hpp"
 | 
					#include "node.hpp"
 | 
				
			||||||
| 
						 | 
					@ -22,7 +23,7 @@ struct spa_json;
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDefaults, "quickshell.service.pipewire.defaults", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDefaults, "quickshell.service.pipewire.defaults", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PwDefaultTracker::PwDefaultTracker(PwRegistry* registry): registry(registry) {
 | 
					PwDefaultTracker::PwDefaultTracker(PwRegistry* registry): registry(registry) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,13 +20,14 @@
 | 
				
			||||||
#include <spa/pod/vararg.h>
 | 
					#include <spa/pod/vararg.h>
 | 
				
			||||||
#include <spa/utils/type.h>
 | 
					#include <spa/utils/type.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "core.hpp"
 | 
					#include "core.hpp"
 | 
				
			||||||
#include "node.hpp"
 | 
					#include "node.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDevice, "quickshell.service.pipewire.device", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDevice, "quickshell.service.pipewire.device", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// https://github.com/PipeWire/wireplumber/blob/895c1c7286e8809fad869059179e53ab39c807e9/modules/module-mixer-api.c#L397
 | 
					// https://github.com/PipeWire/wireplumber/blob/895c1c7286e8809fad869059179e53ab39c807e9/modules/module-mixer-api.c#L397
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,12 +10,13 @@
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
#include <spa/utils/dict.h>
 | 
					#include <spa/utils/dict.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "registry.hpp"
 | 
					#include "registry.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logLink, "quickshell.service.pipewire.link", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logLink, "quickshell.service.pipewire.link", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString PwLinkState::toString(Enum value) {
 | 
					QString PwLinkState::toString(Enum value) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,12 +11,13 @@
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
#include <spa/utils/dict.h>
 | 
					#include <spa/utils/dict.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "registry.hpp"
 | 
					#include "registry.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logMeta, "quickshell.service.pipewire.metadata", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logMeta, "quickshell.service.pipewire.metadata", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void PwMetadata::bindHooks() {
 | 
					void PwMetadata::bindHooks() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,6 +25,7 @@
 | 
				
			||||||
#include <spa/utils/keys.h>
 | 
					#include <spa/utils/keys.h>
 | 
				
			||||||
#include <spa/utils/type.h>
 | 
					#include <spa/utils/type.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "connection.hpp"
 | 
					#include "connection.hpp"
 | 
				
			||||||
#include "core.hpp"
 | 
					#include "core.hpp"
 | 
				
			||||||
#include "device.hpp"
 | 
					#include "device.hpp"
 | 
				
			||||||
| 
						 | 
					@ -32,7 +33,7 @@
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logNode, "quickshell.service.pipewire.node", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logNode, "quickshell.service.pipewire.node", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString PwAudioChannel::toString(Enum value) {
 | 
					QString PwAudioChannel::toString(Enum value) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,6 +15,7 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "core.hpp"
 | 
					#include "core.hpp"
 | 
				
			||||||
#include "device.hpp"
 | 
					#include "device.hpp"
 | 
				
			||||||
#include "link.hpp"
 | 
					#include "link.hpp"
 | 
				
			||||||
| 
						 | 
					@ -23,7 +24,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logRegistry, "quickshell.service.pipewire.registry", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logRegistry, "quickshell.service.pipewire.registry", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PwBindableObject::~PwBindableObject() {
 | 
					PwBindableObject::~PwBindableObject() {
 | 
				
			||||||
	if (this->id != 0) {
 | 
						if (this->id != 0) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,12 +12,13 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/util.hpp"
 | 
					#include "../../core/util.hpp"
 | 
				
			||||||
#include "core.hpp"
 | 
					#include "core.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::pipewire {
 | 
					namespace qs::service::pipewire {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logRegistry);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logRegistry);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class PwRegistry;
 | 
					class PwRegistry;
 | 
				
			||||||
class PwMetadata;
 | 
					class PwMetadata;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,12 +12,13 @@
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../../core/common.hpp"
 | 
					#include "../../core/common.hpp"
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
#include "dbus_watcher_interface.h"
 | 
					#include "dbus_watcher_interface.h"
 | 
				
			||||||
#include "item.hpp"
 | 
					#include "item.hpp"
 | 
				
			||||||
#include "watcher.hpp"
 | 
					#include "watcher.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logStatusNotifierHost, "quickshell.service.sni.host", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logStatusNotifierHost, "quickshell.service.sni.host", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::sni {
 | 
					namespace qs::service::sni {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,10 +8,11 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "dbus_watcher_interface.h"
 | 
					#include "dbus_watcher_interface.h"
 | 
				
			||||||
#include "item.hpp"
 | 
					#include "item.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logStatusNotifierHost);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logStatusNotifierHost);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::sni {
 | 
					namespace qs::service::sni {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../../core/iconimageprovider.hpp"
 | 
					#include "../../core/iconimageprovider.hpp"
 | 
				
			||||||
#include "../../core/imageprovider.hpp"
 | 
					#include "../../core/imageprovider.hpp"
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/platformmenu.hpp"
 | 
					#include "../../core/platformmenu.hpp"
 | 
				
			||||||
#include "../../dbus/dbusmenu/dbusmenu.hpp"
 | 
					#include "../../dbus/dbusmenu/dbusmenu.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
| 
						 | 
					@ -34,7 +35,7 @@ using namespace qs::dbus;
 | 
				
			||||||
using namespace qs::dbus::dbusmenu;
 | 
					using namespace qs::dbus::dbusmenu;
 | 
				
			||||||
using namespace qs::menu::platform;
 | 
					using namespace qs::menu::platform;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logStatusNotifierItem, "quickshell.service.sni.item", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logStatusNotifierItem, "quickshell.service.sni.item", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::sni {
 | 
					namespace qs::service::sni {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,12 +11,13 @@
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "../../core/imageprovider.hpp"
 | 
					#include "../../core/imageprovider.hpp"
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../dbus/dbusmenu/dbusmenu.hpp"
 | 
					#include "../../dbus/dbusmenu/dbusmenu.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
#include "dbus_item.h"
 | 
					#include "dbus_item.h"
 | 
				
			||||||
#include "dbus_item_types.hpp"
 | 
					#include "dbus_item_types.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logStatusNotifierItem);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logStatusNotifierItem);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::sni {
 | 
					namespace qs::service::sni {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,9 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logStatusNotifierWatcher, "quickshell.service.sni.watcher", QtWarningMsg);
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_LOGGING_CATEGORY(logStatusNotifierWatcher, "quickshell.service.sni.watcher", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::sni {
 | 
					namespace qs::service::sni {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,9 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logStatusNotifierWatcher);
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					QS_DECLARE_LOGGING_CATEGORY(logStatusNotifierWatcher);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::sni {
 | 
					namespace qs::service::sni {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,7 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qqmllist.h>
 | 
					#include <qqmllist.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/model.hpp"
 | 
					#include "../../core/model.hpp"
 | 
				
			||||||
#include "../../dbus/bus.hpp"
 | 
					#include "../../dbus/bus.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
| 
						 | 
					@ -21,7 +22,7 @@
 | 
				
			||||||
namespace qs::service::upower {
 | 
					namespace qs::service::upower {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logUPower, "quickshell.service.upower", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logUPower, "quickshell.service.upower", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
UPower::UPower() {
 | 
					UPower::UPower() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,6 +8,7 @@
 | 
				
			||||||
#include <qstring.h>
 | 
					#include <qstring.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
#include "dbus_device.h"
 | 
					#include "dbus_device.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +17,7 @@ using namespace qs::dbus;
 | 
				
			||||||
namespace qs::service::upower {
 | 
					namespace qs::service::upower {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logUPowerDevice, "quickshell.service.upower.device", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logUPowerDevice, "quickshell.service.upower.device", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString UPowerDeviceState::toString(UPowerDeviceState::Enum status) {
 | 
					QString UPowerDeviceState::toString(UPowerDeviceState::Enum status) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,13 +12,14 @@
 | 
				
			||||||
#include <qobject.h>
 | 
					#include <qobject.h>
 | 
				
			||||||
#include <qstringliteral.h>
 | 
					#include <qstringliteral.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../dbus/bus.hpp"
 | 
					#include "../../dbus/bus.hpp"
 | 
				
			||||||
#include "../../dbus/properties.hpp"
 | 
					#include "../../dbus/properties.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::service::upower {
 | 
					namespace qs::service::upower {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logPowerProfiles, "quickshell.service.powerprofiles", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logPowerProfiles, "quickshell.service.powerprofiles", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString PowerProfile::toString(PowerProfile::Enum profile) {
 | 
					QString PowerProfile::toString(PowerProfile::Enum profile) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,6 +36,7 @@
 | 
				
			||||||
#include <wayland-util.h>
 | 
					#include <wayland-util.h>
 | 
				
			||||||
#include <xf86drm.h>
 | 
					#include <xf86drm.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "../../core/stacklist.hpp"
 | 
					#include "../../core/stacklist.hpp"
 | 
				
			||||||
#include "manager.hpp"
 | 
					#include "manager.hpp"
 | 
				
			||||||
#include "manager_p.hpp"
 | 
					#include "manager_p.hpp"
 | 
				
			||||||
| 
						 | 
					@ -44,7 +45,7 @@ namespace qs::wayland::buffer::dmabuf {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logDmabuf, "quickshell.wayland.buffer.dmabuf", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logDmabuf, "quickshell.wayland.buffer.dmabuf", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LinuxDmabufManager* MANAGER = nullptr; // NOLINT
 | 
					LinuxDmabufManager* MANAGER = nullptr; // NOLINT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,6 +10,7 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qvectornd.h>
 | 
					#include <qvectornd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "dmabuf.hpp"
 | 
					#include "dmabuf.hpp"
 | 
				
			||||||
#include "manager_p.hpp"
 | 
					#include "manager_p.hpp"
 | 
				
			||||||
#include "qsg.hpp"
 | 
					#include "qsg.hpp"
 | 
				
			||||||
| 
						 | 
					@ -18,7 +19,7 @@
 | 
				
			||||||
namespace qs::wayland::buffer {
 | 
					namespace qs::wayland::buffer {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logBuffer, "quickshell.wayland.buffer", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logBuffer, "quickshell.wayland.buffer", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WlBuffer* WlBufferSwapchain::createBackbuffer(const WlBufferRequest& request, bool* newBuffer) {
 | 
					WlBuffer* WlBufferSwapchain::createBackbuffer(const WlBufferRequest& request, bool* newBuffer) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,12 +13,13 @@
 | 
				
			||||||
#include <qsize.h>
 | 
					#include <qsize.h>
 | 
				
			||||||
#include <wayland-client-protocol.h>
 | 
					#include <wayland-client-protocol.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "manager.hpp"
 | 
					#include "manager.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::wayland::buffer::shm {
 | 
					namespace qs::wayland::buffer::shm {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logShm, "quickshell.wayland.buffer.shm", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logShm, "quickshell.wayland.buffer.shm", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool WlShmBuffer::isCompatible(const WlBufferRequest& request) const {
 | 
					bool WlShmBuffer::isCompatible(const WlBufferRequest& request) const {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,6 +21,7 @@
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
#include <qvariant.h>
 | 
					#include <qvariant.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../../core/logcat.hpp"
 | 
				
			||||||
#include "../../../core/model.hpp"
 | 
					#include "../../../core/model.hpp"
 | 
				
			||||||
#include "../../../core/qmlscreen.hpp"
 | 
					#include "../../../core/qmlscreen.hpp"
 | 
				
			||||||
#include "../../toplevel_management/handle.hpp"
 | 
					#include "../../toplevel_management/handle.hpp"
 | 
				
			||||||
| 
						 | 
					@ -32,8 +33,8 @@
 | 
				
			||||||
namespace qs::hyprland::ipc {
 | 
					namespace qs::hyprland::ipc {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logHyprlandIpc, "quickshell.hyprland.ipc", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logHyprlandIpc, "quickshell.hyprland.ipc", QtWarningMsg);
 | 
				
			||||||
Q_LOGGING_CATEGORY(logHyprlandIpcEvents, "quickshell.hyprland.ipc.events", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logHyprlandIpcEvents, "quickshell.hyprland.ipc.events", QtWarningMsg);
 | 
				
			||||||
} // namespace
 | 
					} // namespace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HyprlandIpc::HyprlandIpc() {
 | 
					HyprlandIpc::HyprlandIpc() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,6 +8,7 @@
 | 
				
			||||||
#include <qwaylandclientextension.h>
 | 
					#include <qwaylandclientextension.h>
 | 
				
			||||||
#include <wayland-hyprland-toplevel-export-v1-client-protocol.h>
 | 
					#include <wayland-hyprland-toplevel-export-v1-client-protocol.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../../core/logcat.hpp"
 | 
				
			||||||
#include "../../toplevel_management/handle.hpp"
 | 
					#include "../../toplevel_management/handle.hpp"
 | 
				
			||||||
#include "../manager.hpp"
 | 
					#include "../manager.hpp"
 | 
				
			||||||
#include "hyprland_screencopy_p.hpp"
 | 
					#include "hyprland_screencopy_p.hpp"
 | 
				
			||||||
| 
						 | 
					@ -15,7 +16,7 @@
 | 
				
			||||||
namespace qs::wayland::screencopy::hyprland {
 | 
					namespace qs::wayland::screencopy::hyprland {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.hyprland", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.hyprland", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HyprlandScreencopyManager::HyprlandScreencopyManager(): QWaylandClientExtensionTemplate(2) {
 | 
					HyprlandScreencopyManager::HyprlandScreencopyManager(): QWaylandClientExtensionTemplate(2) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,13 +13,14 @@
 | 
				
			||||||
#include <wayland-ext-image-copy-capture-v1-client-protocol.h>
 | 
					#include <wayland-ext-image-copy-capture-v1-client-protocol.h>
 | 
				
			||||||
#include <wayland-util.h>
 | 
					#include <wayland-util.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../../core/logcat.hpp"
 | 
				
			||||||
#include "../manager.hpp"
 | 
					#include "../manager.hpp"
 | 
				
			||||||
#include "image_copy_capture_p.hpp"
 | 
					#include "image_copy_capture_p.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::wayland::screencopy::icc {
 | 
					namespace qs::wayland::screencopy::icc {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logIcc, "quickshell.wayland.screencopy.icc", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logIcc, "quickshell.wayland.screencopy.icc", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
using IccCaptureSession = QtWayland::ext_image_copy_capture_session_v1;
 | 
					using IccCaptureSession = QtWayland::ext_image_copy_capture_session_v1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,7 @@
 | 
				
			||||||
#include <qwaylandclientextension.h>
 | 
					#include <qwaylandclientextension.h>
 | 
				
			||||||
#include <wayland-wlr-screencopy-unstable-v1-client-protocol.h>
 | 
					#include <wayland-wlr-screencopy-unstable-v1-client-protocol.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../../core/logcat.hpp"
 | 
				
			||||||
#include "../../buffer/manager.hpp"
 | 
					#include "../../buffer/manager.hpp"
 | 
				
			||||||
#include "../manager.hpp"
 | 
					#include "../manager.hpp"
 | 
				
			||||||
#include "wlr_screencopy_p.hpp"
 | 
					#include "wlr_screencopy_p.hpp"
 | 
				
			||||||
| 
						 | 
					@ -19,7 +20,7 @@
 | 
				
			||||||
namespace qs::wayland::screencopy::wlr {
 | 
					namespace qs::wayland::screencopy::wlr {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.wlr", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logScreencopy, "quickshell.wayland.screencopy.wlr", QtWarningMsg);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WlrScreencopyManager::WlrScreencopyManager(): QWaylandClientExtensionTemplate(3) {
 | 
					WlrScreencopyManager::WlrScreencopyManager(): QWaylandClientExtensionTemplate(3) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,12 +7,13 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qwaylandclientextension.h>
 | 
					#include <qwaylandclientextension.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "handle.hpp"
 | 
					#include "handle.hpp"
 | 
				
			||||||
#include "wayland-wlr-foreign-toplevel-management-unstable-v1-client-protocol.h"
 | 
					#include "wayland-wlr-foreign-toplevel-management-unstable-v1-client-protocol.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::wayland::toplevel_management::impl {
 | 
					namespace qs::wayland::toplevel_management::impl {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_LOGGING_CATEGORY(logToplevelManagement, "quickshell.wayland.toplevelManagement", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logToplevelManagement, "quickshell.wayland.toplevelManagement", QtWarningMsg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ToplevelManager::ToplevelManager(): QWaylandClientExtensionTemplate(3) { this->initialize(); }
 | 
					ToplevelManager::ToplevelManager(): QWaylandClientExtensionTemplate(3) { this->initialize(); }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,13 +6,14 @@
 | 
				
			||||||
#include <qwayland-wlr-foreign-toplevel-management-unstable-v1.h>
 | 
					#include <qwayland-wlr-foreign-toplevel-management-unstable-v1.h>
 | 
				
			||||||
#include <qwaylandclientextension.h>
 | 
					#include <qwaylandclientextension.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../core/logcat.hpp"
 | 
				
			||||||
#include "wayland-wlr-foreign-toplevel-management-unstable-v1-client-protocol.h"
 | 
					#include "wayland-wlr-foreign-toplevel-management-unstable-v1-client-protocol.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace qs::wayland::toplevel_management::impl {
 | 
					namespace qs::wayland::toplevel_management::impl {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ToplevelHandle;
 | 
					class ToplevelHandle;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q_DECLARE_LOGGING_CATEGORY(logToplevelManagement);
 | 
					QS_DECLARE_LOGGING_CATEGORY(logToplevelManagement);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ToplevelManager
 | 
					class ToplevelManager
 | 
				
			||||||
    : public QWaylandClientExtensionTemplate<ToplevelManager>
 | 
					    : public QWaylandClientExtensionTemplate<ToplevelManager>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,7 @@
 | 
				
			||||||
#include <qtmetamacros.h>
 | 
					#include <qtmetamacros.h>
 | 
				
			||||||
#include <qtypes.h>
 | 
					#include <qtypes.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../../../core/logcat.hpp"
 | 
				
			||||||
#include "../../../core/model.hpp"
 | 
					#include "../../../core/model.hpp"
 | 
				
			||||||
#include "../../../core/qmlscreen.hpp"
 | 
					#include "../../../core/qmlscreen.hpp"
 | 
				
			||||||
#include "connection.hpp"
 | 
					#include "connection.hpp"
 | 
				
			||||||
| 
						 | 
					@ -31,8 +32,8 @@
 | 
				
			||||||
namespace qs::i3::ipc {
 | 
					namespace qs::i3::ipc {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace {
 | 
					namespace {
 | 
				
			||||||
Q_LOGGING_CATEGORY(logI3Ipc, "quickshell.I3.ipc", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logI3Ipc, "quickshell.I3.ipc", QtWarningMsg);
 | 
				
			||||||
Q_LOGGING_CATEGORY(logI3IpcEvents, "quickshell.I3.ipc.events", QtWarningMsg);
 | 
					QS_LOGGING_CATEGORY(logI3IpcEvents, "quickshell.I3.ipc.events", QtWarningMsg);
 | 
				
			||||||
} // namespace
 | 
					} // namespace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void I3Ipc::makeRequest(const QByteArray& request) {
 | 
					void I3Ipc::makeRequest(const QByteArray& request) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue