[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kwin] /: [plugins/platforms] Dedicated logging category for X11 standalone platform
From:       Martin_Gräßlin <mgraesslin () kde ! org>
Date:       2016-04-12 12:50:04
Message-ID: E1apxlc-0002EB-OH () scm ! kde ! org
[Download RAW message or body]

Git commit e5648dcf4ccfa02df54bf0e1778a14fa29e0db85 by Martin Gr=C3=A4=C3=
=9Flin.
Committed on 12/04/2016 at 12:48.
Pushed by graesslin into branch 'master'.

[plugins/platforms] Dedicated logging category for X11 standalone platform

M  +1    -0    data/org_kde_kwin.categories
M  +1    -0    plugins/platforms/x11/standalone/CMakeLists.txt
A  +21   -0    plugins/platforms/x11/standalone/logging.cpp     [License: G=
PL (v2)]
A  +26   -0    plugins/platforms/x11/standalone/logging.h     [License: GPL=
 (v2)]

http://commits.kde.org/kwin/e5648dcf4ccfa02df54bf0e1778a14fa29e0db85

diff --git a/data/org_kde_kwin.categories b/data/org_kde_kwin.categories
index ac3a101..8828d7c 100644
--- a/data/org_kde_kwin.categories
+++ b/data/org_kde_kwin.categories
@@ -8,6 +8,7 @@ kwin_wayland_framebuffer KWin Wayland (Framebuffer backend)
 kwin_wayland_hwcomposer KWin Wayland (hwcomposer backend)
 kwin_wayland_backend KWin Wayland (Wayland backend)
 kwin_wayland_x11windowed KWin Wayland (X11 backend)
+kwin_platform_x11_standalone KWin X11 Standalone Platform
 kwin_libinput KWin Libinput Integration
 kwin_tabbox KWin Window Switcher
 kwin_decorations KWin Decorations
diff --git a/plugins/platforms/x11/standalone/CMakeLists.txt b/plugins/plat=
forms/x11/standalone/CMakeLists.txt
index d5f842e..185b7fd 100644
--- a/plugins/platforms/x11/standalone/CMakeLists.txt
+++ b/plugins/platforms/x11/standalone/CMakeLists.txt
@@ -1,4 +1,5 @@
 set(X11PLATFORM_SOURCES
+    logging.cpp
     x11_platform.cpp
     screens_xrandr.cpp
 )
diff --git a/plugins/platforms/x11/standalone/logging.cpp b/plugins/platfor=
ms/x11/standalone/logging.cpp
new file mode 100644
index 0000000..bad2ada
--- /dev/null
+++ b/plugins/platforms/x11/standalone/logging.cpp
@@ -0,0 +1,21 @@
+/********************************************************************
+ KWin - the KDE window manager
+ This file is part of the KDE project.
+
+Copyright (C) 2016 Martin Gr=C3=A4=C3=9Flin <mgraesslin@kde.org>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*********************************************************************/
+#include "logging.h"
+Q_LOGGING_CATEGORY(KWIN_X11STANDALONE, "kwin_platform_x11_standalone", QtC=
riticalMsg)
diff --git a/plugins/platforms/x11/standalone/logging.h b/plugins/platforms=
/x11/standalone/logging.h
new file mode 100644
index 0000000..399d4d2
--- /dev/null
+++ b/plugins/platforms/x11/standalone/logging.h
@@ -0,0 +1,26 @@
+/********************************************************************
+ KWin - the KDE window manager
+ This file is part of the KDE project.
+
+Copyright (C) 2016 Martin Gr=C3=A4=C3=9Flin <mgraesslin@kde.org>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*********************************************************************/
+#ifndef KWIN_X11_LOGGING_H
+#define KWIN_X11_LOGGING_H
+#include <QDebug>
+#include <QLoggingCategory>
+
+Q_DECLARE_LOGGING_CATEGORY(KWIN_X11STANDALONE)
+#endif
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic