logger: Refactor the logging framework
[quassel.git] / src / qtui / debuglogwidget.h
index 408d4ee..5bffad9 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2015 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef DEBUGLOGWIDGET_H
-#define DEBUGLOGWIDGET_H
+#pragma once
+
+#include <QString>
+#include <QWidget>
+
+#include "logger.h"
 
 #include "ui_debuglogwidget.h"
 
@@ -31,11 +35,11 @@ public:
     DebugLogWidget(QWidget *parent = 0);
 
 private slots:
-    void logUpdated(const QString &msg);
+    void logUpdated(const Logger::LogEntry &msg);
+
+private:
+    QString toString(const Logger::LogEntry &msg);
 
 private:
     Ui::DebugLogWidget ui;
 };
-
-
-#endif //DEBUGLOGWIDGET_H