From 9214b80fe67f6771a4120b6eeaddd85cea1d6f2a Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 30 May 2024 13:57:03 +0200 Subject: [PATCH] kf: Drop "5" from KF 5 desktop backend file names ... and namespace. This is in preparation of implementing a KF 6 backend that will reuse most of the code. Change-Id: I0c0f499ff57dd18e7e0bc7dd838acfeffa30d88c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168274 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- shell/IwyuFilter_shell.yaml | 4 ++-- shell/Library_kf5be.mk | 4 ++-- shell/source/backends/kf5be/{kf5access.cxx => kfaccess.cxx} | 4 ++-- shell/source/backends/kf5be/{kf5access.hxx => kfaccess.hxx} | 2 +- .../source/backends/kf5be/{kf5backend.cxx => kfbackend.cxx} | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) rename shell/source/backends/kf5be/{kf5access.cxx => kfaccess.cxx} (99%) rename shell/source/backends/kf5be/{kf5access.hxx => kfaccess.hxx} (98%) rename shell/source/backends/kf5be/{kf5backend.cxx => kfbackend.cxx} (97%) diff --git a/shell/IwyuFilter_shell.yaml b/shell/IwyuFilter_shell.yaml index 755dc738343e..5239593d0ee0 100644 --- a/shell/IwyuFilter_shell.yaml +++ b/shell/IwyuFilter_shell.yaml @@ -4,7 +4,7 @@ excludelist: shell/source/sessioninstall/SyncDbusSessionHelper.hxx: # No hpp->hdl replacement - org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp - shell/source/backends/kf5be/kf5access.cxx: + shell/source/backends/kf5be/kfaccess.cxx: # Keep abstract QT headers - QtCore/QDir - QtCore/QStandardPaths @@ -12,7 +12,7 @@ excludelist: - QtCore/QUrl - QtGui/QFont - QtGui/QFontDatabase - shell/source/backends/kf5be/kf5backend.cxx: + shell/source/backends/kf5be/kfbackend.cxx: # Keep abstract QT headers - QtWidgets/QApplication shell/source/backends/localebe/localebackend.cxx: diff --git a/shell/Library_kf5be.mk b/shell/Library_kf5be.mk index 1355d402dc00..dfcac91f871a 100644 --- a/shell/Library_kf5be.mk +++ b/shell/Library_kf5be.mk @@ -25,8 +25,8 @@ $(eval $(call gb_Library_use_libraries,kf5be1,\ $(eval $(call gb_Library_set_componentfile,kf5be1,shell/source/backends/kf5be/kf5be1,services)) $(eval $(call gb_Library_add_exception_objects,kf5be1,\ - shell/source/backends/kf5be/kf5access \ - shell/source/backends/kf5be/kf5backend \ + shell/source/backends/kf5be/kfaccess \ + shell/source/backends/kf5be/kfbackend \ )) # Workaround for clang+icecream (clang's -frewrite-includes diff --git a/shell/source/backends/kf5be/kf5access.cxx b/shell/source/backends/kf5be/kfaccess.cxx similarity index 99% rename from shell/source/backends/kf5be/kf5access.cxx rename to shell/source/backends/kf5be/kfaccess.cxx index d266f147d68a..93fe1ed49b20 100644 --- a/shell/source/backends/kf5be/kf5access.cxx +++ b/shell/source/backends/kf5be/kfaccess.cxx @@ -19,7 +19,7 @@ #include -#include "kf5access.hxx" +#include "kfaccess.hxx" #include #include @@ -38,7 +38,7 @@ #include #include -namespace kf5access +namespace kfaccess { namespace { diff --git a/shell/source/backends/kf5be/kf5access.hxx b/shell/source/backends/kf5be/kfaccess.hxx similarity index 98% rename from shell/source/backends/kf5be/kf5access.hxx rename to shell/source/backends/kf5be/kfaccess.hxx index bb4817c38cf5..2bbd5ad4887b 100644 --- a/shell/source/backends/kf5be/kf5access.hxx +++ b/shell/source/backends/kf5be/kfaccess.hxx @@ -30,7 +30,7 @@ namespace com::sun::star::uno class Any; } -namespace kf5access +namespace kfaccess { css::beans::Optional getValue(std::u16string_view id); } diff --git a/shell/source/backends/kf5be/kf5backend.cxx b/shell/source/backends/kf5be/kfbackend.cxx similarity index 97% rename from shell/source/backends/kf5be/kf5backend.cxx rename to shell/source/backends/kf5be/kfbackend.cxx index 7a90dfdcdffd..81a48ad53ffe 100644 --- a/shell/source/backends/kf5be/kf5backend.cxx +++ b/shell/source/backends/kf5be/kfbackend.cxx @@ -46,7 +46,7 @@ #include #include -#include "kf5access.hxx" +#include "kfaccess.hxx" namespace { @@ -144,14 +144,14 @@ void readKDESettings(std::map>& rS for (const OUString& aKey : aKeys) { - css::beans::Optional aValue = kf5access::getValue(aKey); + css::beans::Optional aValue = kfaccess::getValue(aKey); std::pair> elem = std::make_pair(aKey, aValue); rSettings.insert(elem); } } -// init the QApplication when we load the kf5backend into a non-Qt vclplug (e.g. gtk3_kde5) +// init the QApplication when we load the kfbackend into a non-Qt vclplug (e.g. gtk3_kde5) // TODO: use a helper process to read these values without linking to Qt directly? // TODO: share this code somehow with Qt5Instance.cxx? void initQApp(std::map>& rSettings)