mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
* Move logging from QDebug to QCDebug and introduce LoggingCategories. * Lint. * Unlint like one change. * Remove .debug category since this is autofilled by Qt and used to differentiate between QCDebug and QCWarning and QCError. * Uncomment defaults, include main category. * Make PictureLoader logging a bit more useful. * Lint...? * Address comments. * Clean up some unnecessary classes in logging statements. * Add a new message format to the logging handler. * Lint. * Lint. * Support Windows in Regex --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> Co-authored-by: ZeldaZach <zahalpern+github@gmail.com>
28 lines
531 B
C++
28 lines
531 B
C++
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
|
|
#include "utility/macros.h"
|
|
|
|
#include <QLoggingCategory>
|
|
|
|
inline Q_LOGGING_CATEGORY(MainLog, "main");
|
|
inline Q_LOGGING_CATEGORY(QtTranslatorDebug, "qt_translator");
|
|
|
|
class CardDatabase;
|
|
class QString;
|
|
class QSystemTrayIcon;
|
|
class QTranslator;
|
|
class SoundEngine;
|
|
|
|
extern CardDatabase *db;
|
|
|
|
extern QSystemTrayIcon *trayIcon;
|
|
extern QTranslator *translator;
|
|
extern const QString translationPrefix;
|
|
extern QString translationPath;
|
|
|
|
void installNewTranslator();
|
|
|
|
QString const generateClientID();
|
|
|
|
#endif
|