Adds initial intermediate qt6 porting state
This commit is contained in:
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;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user