Adds initial intermediate qt6 porting state

This commit is contained in:
torsten committed 2026-08-17 17:54:56 +02:00
1 parent 99136e9460
commit d176b5e0d7
11247 files changed
+1891537

No files matched your search

@@ -0,0 +1,51 @@
#pragma once
#include <httq/httq_export.h>
#include <QScopedPointer>
#include <QPointer>
namespace httq
{
class Logger;
class HTTQ_EXPORT LoggerFactory : public QObject
{
Q_OBJECT
public:
LoggerFactory(QObject *parent)
: QObject(parent)
{}
virtual Logger *createLogger(QObject *parent);
};
class HTTQ_EXPORT Logger : public QObject
{
Q_OBJECT
public:
Logger(LoggerFactory *loggerFactory, QObject *parent);
virtual void debug(const QString &message);
virtual void warning(const QString &message);
virtual void error(const QString &message);
virtual LoggerFactory *getLoggerFactory() const
{
Q_ASSERT(mLoggerFactory);
return mLoggerFactory;
}
protected:
QPointer<LoggerFactory> mLoggerFactory;
private:
QDebug qtLogger(const QString &type, QDebug debug);
QString mPath;
};
}