Commit 3aa08ef5 authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Luigi Toscano
Browse files

Port away KServiceTypeTrader and use plugin system

Task: https://phabricator.kde.org/T15466
parent be9e2a10
......@@ -8,26 +8,10 @@ add_subdirectory(actions)
# Add bundled actions
set(powerdevil_bundled_actions_SRCS
powerdevil_debug.cpp
actions/bundled/suspendsession.cpp
actions/bundled/brightnesscontrol.cpp
actions/bundled/keyboardbrightnesscontrol.cpp
actions/bundled/dimdisplay.cpp
actions/bundled/runscript.cpp
actions/bundled/handlebuttonevents.cpp
actions/bundled/dpms.cpp
actions/bundled/abstractdpmshelper.cpp
actions/bundled/xcbdpmshelper.cpp
actions/bundled/waylanddpmshelper.cpp
#actions/bundled/handlebuttonevents.cpp
${PowerDevil_SOURCE_DIR}/daemon/kwinkscreenhelpereffect.cpp
actions/bundled/powerprofile.cpp
)
if(HAVE_WIRELESS_SUPPORT)
set(powerdevil_bundled_actions_SRCS ${powerdevil_bundled_actions_SRCS}
actions/bundled/wirelesspowersaving.cpp
)
endif()
# target no.1 - powerdevil core library
set(powerdevilcore_SRCS
powerdevil_debug.cpp
......@@ -45,7 +29,9 @@ set(powerdevilcore_SRCS
kwinkscreenhelpereffect.cpp
)
ecm_qt_declare_logging_category(powerdevilcore_SRCS
add_library(powerdevil_log_static STATIC)
target_link_libraries(powerdevil_log_static Qt::Core)
ecm_qt_declare_logging_category(powerdevil_log_static
HEADER powerdevil_debug.h
IDENTIFIER POWERDEVIL
CATEGORY_NAME org.kde.powerdevil
......@@ -55,27 +41,9 @@ ecm_qt_declare_logging_category(powerdevilcore_SRCS
kconfig_add_kcfg_files(powerdevilcore_SRCS ../PowerDevilSettings.kcfgc)
# Action DBus Adaptors
qt_add_dbus_adaptor(powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.BrightnessControl.xml
actions/bundled/brightnesscontrol.h PowerDevil::BundledActions::BrightnessControl)
qt_add_dbus_adaptor(powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.KeyboardBrightnessControl.xml
actions/bundled/keyboardbrightnesscontrol.h PowerDevil::BundledActions::KeyboardBrightnessControl)
qt_add_dbus_adaptor(powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.HandleButtonEvents.xml
actions/bundled/handlebuttonevents.h PowerDevil::BundledActions::HandleButtonEvents)
qt_add_dbus_adaptor(powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.SuspendSession.xml
actions/bundled/suspendsession.h PowerDevil::BundledActions::SuspendSession)
if(HAVE_WIRELESS_SUPPORT)
qt_add_dbus_adaptor(powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.WirelessPowerSaving.xml
actions/bundled/wirelesspowersaving.h PowerDevil::BundledActions::WirelessPowerSaving)
endif()
qt_add_dbus_adaptor(powerdevilcore_SRCS actions/bundled/org.kde.Solid.PowerManagement.Actions.PowerProfile.xml
actions/bundled/powerprofile.h PowerDevil::BundledActions::PowerProfile)
qt_add_dbus_interface(powerdevilcore_SRCS org.freedesktop.ScreenSaver.xml screenlocker_interface)
qt_add_dbus_interface(powerdevilcore_SRCS actions/bundled/org.freedesktop.DBus.Properties.xml properties_interface)
qt_add_dbus_interface(powerdevilcore_SRCS actions/bundled/net.hadess.PowerProfiles.xml power_profiles_interface)
add_library(powerdevilcore SHARED ${powerdevilcore_SRCS} ${powerdevil_bundled_actions_SRCS})
set_target_properties(powerdevilcore PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 2)
......@@ -98,6 +66,7 @@ target_link_libraries(powerdevilcore
KF5::Kirigami2
PW::KWorkspace
XCB::DPMS
powerdevil_log_static
)
if(HAVE_WIRELESS_SUPPORT)
......
function(add_powerdevil_bundled_action _name)
# Build the plugin
kcoreaddons_add_plugin(powerdevil_${_name}action SOURCES ${_name}.cpp INSTALL_NAMESPACE "powerdevil/action")
target_link_libraries(powerdevil_${_name}action
powerdevil_log_static
powerdevilcore
powerdevilui
Qt::Widgets
KF5::CoreAddons
KF5::I18n
KF5::ConfigGui
KF5::XmlGui
${ARGN})
# Build the config module
set(actionconfig_SRCS ${_name}config.cpp)
add_library(powerdevil${_name}action_config MODULE
${actionconfig_SRCS})
......@@ -12,20 +25,56 @@ function(add_powerdevil_bundled_action _name)
KF5::XmlGui
${ARGN})
install(TARGETS powerdevil${_name}action_config DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES powerdevil${_name}action.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR})
endfunction(add_powerdevil_bundled_action _name)
function(target_dbus_files _target)
set(dbus_SRCS)
qt_add_dbus_adaptor(dbus_SRCS ${ARGN})
target_sources(${_target} PRIVATE ${dbus_SRCS})
endfunction()
add_powerdevil_bundled_action(brightnesscontrol KF5::GlobalAccel)
target_dbus_files(powerdevil_brightnesscontrolaction org.kde.Solid.PowerManagement.Actions.BrightnessControl.xml
brightnesscontrol.h PowerDevil::BundledActions::BrightnessControl)
add_powerdevil_bundled_action(keyboardbrightnesscontrol)
target_dbus_files(powerdevil_keyboardbrightnesscontrolaction org.kde.Solid.PowerManagement.Actions.KeyboardBrightnessControl.xml
keyboardbrightnesscontrol.h PowerDevil::BundledActions::KeyboardBrightnessControl)
add_powerdevil_bundled_action(dimdisplay)
add_powerdevil_bundled_action(runscript KF5::KIOCore KF5::KIOWidgets)
add_powerdevil_bundled_action(suspendsession KF5::KIOCore KF5::KIOWidgets)
target_dbus_files(powerdevil_suspendsessionaction org.kde.Solid.PowerManagement.Actions.SuspendSession.xml
suspendsession.h PowerDevil::BundledActions::SuspendSession)
add_powerdevil_bundled_action(dpms)
target_Sources(powerdevil_dpmsaction PRIVATE
abstractdpmshelper.cpp
xcbdpmshelper.cpp
waylanddpmshelper.cpp
)
set(handlebuttons_SRCS handlebuttonevents.cpp)
qt_add_dbus_adaptor(handlebuttons_SRCS org.kde.Solid.PowerManagement.Actions.HandleButtonEvents.xml handlebuttonevents.h PowerDevil::BundledActions::HandleButtonEvents)
add_powerdevil_bundled_action(powerprofile)
target_dbus_files(powerdevil_powerprofileaction org.kde.Solid.PowerManagement.Actions.PowerProfile.xml powerprofile.h PowerDevil::BundledActions::PowerProfile)
set(powerprofile_dbus_SRCS)
qt_add_dbus_interface(powerprofile_dbus_SRCS org.freedesktop.DBus.Properties.xml properties_interface)
qt_add_dbus_interface(powerprofile_dbus_SRCS net.hadess.PowerProfiles.xml power_profiles_interface)
target_sources(powerdevil_powerprofileaction PRIVATE ${powerprofile_dbus_SRCS} ${handlebuttons_SRCS})
if(HAVE_WIRELESS_SUPPORT)
add_powerdevil_bundled_action(wirelesspowersaving KF5::NetworkManagerQt KF5::BluezQt)
target_dbus_files(powerdevil_wirelesspowersavingaction org.kde.Solid.PowerManagement.Actions.WirelessPowerSaving.xml
actions/bundled/wirelesspowersaving.h PowerDevil::BundledActions::WirelessPowerSaving)
endif()
kcoreaddons_add_plugin(powerdevil_handlebuttoneventsaction SOURCES powerdevilhandlebuttonevents_plugin.cpp ${handlebuttons_SRCS} INSTALL_NAMESPACE "powerdevil/action")
target_link_libraries(powerdevil_handlebuttoneventsaction PRIVATE powerdevilcore)
set(actionconfig_SRCS handlebuttoneventsconfig.cpp)
qt_add_dbus_interface(actionconfig_SRCS
${CMAKE_SOURCE_DIR}/daemon/backends/upower/dbus/org.freedesktop.UPower.xml
......@@ -42,4 +91,3 @@ target_link_libraries(powerdevilhandlebuttoneventsaction_config
KF5::XmlGui
)
install(TARGETS powerdevilhandlebuttoneventsaction_config DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES powerdevilhandlebuttoneventsaction.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR})
......@@ -31,12 +31,15 @@
#include <KActionCollection>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KGlobalAccel>
#include <KLocalizedString>
#include <KPluginFactory>
K_PLUGIN_CLASS_WITH_JSON(PowerDevil::BundledActions::BrightnessControl, "powerdevilbrightnesscontrolaction.json")
namespace PowerDevil {
namespace BundledActions {
BrightnessControl::BrightnessControl(QObject* parent)
BrightnessControl::BrightnessControl(QObject *parent, const QVariantList &)
: Action(parent)
{
// DBus
......@@ -206,3 +209,4 @@ int BrightnessControl::brightnessPercent(float value) const
}
}
#include "brightnesscontrol.moc"
......@@ -34,7 +34,7 @@ class BrightnessControl : public PowerDevil::Action
Q_CLASSINFO("D-Bus Interface", "org.kde.Solid.PowerManagement.Actions.BrightnessControl")
public:
explicit BrightnessControl(QObject* parent);
explicit BrightnessControl(QObject *parent, const QVariantList &);
~BrightnessControl() override = default;
protected:
......
......@@ -27,11 +27,14 @@
#include <KConfigGroup>
#include <KLocalizedString>
#include <KPluginFactory>
K_PLUGIN_CLASS_WITH_JSON(PowerDevil::BundledActions::DimDisplay, "powerdevildimdisplayaction.json")
namespace PowerDevil {
namespace BundledActions {
DimDisplay::DimDisplay(QObject* parent) : Action(parent)
DimDisplay::DimDisplay(QObject* parent, const QVariantList &) : Action(parent)
{
setRequiredPolicies(PowerDevil::PolicyAgent::ChangeScreenSettings);
}
......@@ -130,3 +133,5 @@ bool DimDisplay::loadAction(const KConfigGroup& config)
}
}
#include "dimdisplay.moc"
......@@ -33,7 +33,7 @@ class DimDisplay : public PowerDevil::Action
Q_DISABLE_COPY(DimDisplay)
public:
explicit DimDisplay(QObject *parent);
explicit DimDisplay(QObject *parent, const QVariantList &);
~DimDisplay() override = default;
protected:
......
......@@ -49,10 +49,11 @@
#include <KSharedConfig>
#include <TabletModeWatcher>
K_PLUGIN_CLASS_WITH_JSON(PowerDevil::BundledActions::DPMS, "powerdevildpmsaction.json")
namespace PowerDevil {
namespace BundledActions {
DPMS::DPMS(QObject* parent)
DPMS::DPMS(QObject *parent, const QVariantList &)
: Action(parent)
, m_helper()
{
......@@ -240,3 +241,4 @@ void DPMS::lockScreen()
}
}
#include "dpms.moc"
......@@ -37,7 +37,7 @@ class DPMS : public PowerDevil::Action
Q_DISABLE_COPY(DPMS)
public:
explicit DPMS(QObject *parent);
explicit DPMS(QObject *parent, const QVariantList &);
~DPMS() override;
protected:
......
......@@ -43,8 +43,7 @@
namespace PowerDevil {
namespace BundledActions {
HandleButtonEvents::HandleButtonEvents(QObject *parent)
HandleButtonEvents::HandleButtonEvents(QObject *parent, const QVariantList &)
: Action(parent)
, m_screenConfiguration(nullptr)
{
......
......@@ -37,7 +37,7 @@ class HandleButtonEvents : public PowerDevil::Action
Q_CLASSINFO("D-Bus Interface", "org.kde.Solid.PowerManagement.Actions.HandleButtonEvents")
public:
explicit HandleButtonEvents(QObject* parent);
explicit HandleButtonEvents(QObject *parent, const QVariantList & = {});
~HandleButtonEvents() override;
bool loadAction(const KConfigGroup& config) override;
......
......@@ -31,16 +31,19 @@
#include <KActionCollection>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KGlobalAccel>
#include <KLocalizedString>
#include <KPluginFactory>
#include <QDBusInterface>
#include <QDBusPendingCall>
K_PLUGIN_CLASS_WITH_JSON(PowerDevil::BundledActions::KeyboardBrightnessControl, "powerdevilkeyboardbrightnesscontrolaction.json")
namespace PowerDevil {
namespace BundledActions {
KeyboardBrightnessControl::KeyboardBrightnessControl(QObject* parent)
KeyboardBrightnessControl::KeyboardBrightnessControl(QObject* parent, const QVariantList &)
: Action(parent)
{
// DBus
......@@ -225,3 +228,4 @@ int KeyboardBrightnessControl::keyboardBrightnessPercent() const
}
}
#include "keyboardbrightnesscontrol.moc"
......@@ -34,7 +34,7 @@ class KeyboardBrightnessControl : public PowerDevil::Action
Q_CLASSINFO("D-Bus Interface", "org.kde.Solid.PowerManagement.Actions.KeyboardBrightnessControl")
public:
explicit KeyboardBrightnessControl(QObject* parent);
explicit KeyboardBrightnessControl(QObject* parent, const QVariantList &);
~KeyboardBrightnessControl() override = default;
protected:
......
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=PowerDevil/Action
X-KDE-Library=powerdevilbrightnesscontrolaction_config
Icon=preferences-system-power-management
Name=Screen brightness
Name[ar]=سطوع الشاشة
Name[az]=Ekran parlaqlığı
Name[bg]=Яркост на екрана
Name[bs]=Svjetlost ekrana
Name[ca]=Lluminositat de la pantalla
Name[ca@valencia]=Lluminositat de la pantalla
Name[cs]=Jas obrazovky
Name[da]=Skærmens lysstyrke
Name[de]=Bildschirmhelligkeit
Name[el]=Λαμπρότητα οθόνης
Name[en_GB]=Screen brightness
Name[es]=Brillo de la pantalla
Name[et]=Ekraani heledus
Name[eu]=Pantailaren distira
Name[fi]=Näytön kirkkaus
Name[fr]=Luminosité de l'écran
Name[gl]=Brillo da pantalla
Name[he]=בהירות מסך
Name[hu]=Képernyő fényessége
Name[ia]=Brillantia de Schermo
Name[id]=Kecerahan layar
Name[it]=Luminosità dello schermo
Name[ja]=スクリーンの明るさ
Name[ko]=화면 밝기
Name[lt]=Ekrano ryškumas
Name[ml]=സ്ക്രീന്‍ തെളിച്ചം
Name[nb]=Skjermlysstyrke
Name[nds]=Schirm-Helligkeit
Name[nl]=Schermhelderheid
Name[nn]=Skjermlysstyrke
Name[pa]=ਸਕਰੀਨ ਚਮਕ
Name[pl]=Jasność ekranu
Name[pt]=Brilho do ecrã
Name[pt_BR]=Brilho da tela
Name[ro]=Luminozitate ecran
Name[ru]=Яркость экрана
Name[sk]=Jas obrazovky
Name[sl]=Svetlost zaslona
Name[sr]=Осветљај екрана
Name[sr@ijekavian]=Освјетљај екрана
Name[sr@ijekavianlatin]=Osvjetljaj ekrana
Name[sr@latin]=Osvetljaj ekrana
Name[sv]=Skärmljusstyrka
Name[ta]=தரையின் பிரகாசம்
Name[tg]=Дурахшонии экран
Name[tr]=Ekran parlaklığı
Name[uk]=Яскравість екрана
Name[x-test]=xxScreen brightnessxx
Name[zh_CN]=屏幕亮度
Name[zh_TW]=螢幕亮度
Comment=Basic Controls for brightness
Comment[ar]=تحكم بسيط بالسطوع
Comment[az]=Parlaqlığın idarə edilməsinin əsas elementləri
Comment[bg]=Основни контроли за яркост
Comment[bs]=Osnovne kontrole osvjetljenja
Comment[ca]=Controls bàsics per a la lluminositat
Comment[ca@valencia]=Controls bàsics per a la lluminositat
Comment[cs]=Základní ovládání jasu
Comment[da]=Basal kontrol af lysstyrke
Comment[de]=Grundeinstellungen zur Bildschirmhelligkeit
Comment[el]=Βασικά στοιχεία ελέγχου λαμπρότητας
Comment[en_GB]=Basic Controls for brightness
Comment[es]=Control básico del brillo
Comment[et]=Heleduse lihtne juhtimine
Comment[eu]=Distiraren oinarrizko kontrolak
Comment[fi]=Kirkkauden perussäätimet
Comment[fr]=Contrôles simples de la luminosité
Comment[gl]=Controis básicos do brillo
Comment[he]=שליטה בבהירות
Comment[hu]=Alap fényerő-beállítások
Comment[ia]=Controlos basic pro brillantia
Comment[id]=Kendali Dasar pada kecerahan
Comment[it]=Controlli di base della luminosità
Comment[ja]=明るさの基本的な制御
Comment[ko]=기본 밝기 제어
Comment[lt]=Pagrindiniai ryškumo valdikliai
Comment[ml]=തെളിച്ചത്തിനുള്ള അടിസ്ഥാന നിയന്ത്രണങ്ങൾ
Comment[nb]=Grunnleggende styring av lysstyrke
Comment[nds]=Eenfach Helligkeit-Instellen
Comment[nl]=Basisbesturing voor helderheid
Comment[nn]=Grunnleggjande styring av lysstyrke
Comment[pa]=ਚਮਕ ਲਈ ਮੁੱਢਲੇ ਕੰਟਰੋਲ
Comment[pl]=Podstawowe sterowanie jasnością
Comment[pt]=Controlos básicos do brilho
Comment[pt_BR]=Controles básicos do brilho
Comment[ro]=Controale de bază pentru luminozitate
Comment[ru]=Базовые функции управления яркостью
Comment[sk]=Základné ovládanie jasu
Comment[sl]=Osnovni nadzor svetlosti
Comment[sr]=Основне контроле осветљаја
Comment[sr@ijekavian]=Основне контроле освјетљаја
Comment[sr@ijekavianlatin]=Osnovne kontrole osvjetljaja
Comment[sr@latin]=Osnovne kontrole osvetljaja
Comment[sv]=Grundkontroller för ljusstyrka
Comment[ta]=திரையின் பிரகாசத்திற்கான அடிப்படை இயக்கிகள்
Comment[tg]=Унсурҳои идоракунии асосӣ барои дурахшонӣ
Comment[tr]=Parlaklık için temel denetimler
Comment[uk]=Базове керування яскравістю
Comment[x-test]=xxBasic Controls for brightnessxx
Comment[zh_CN]=亮度基本控制
Comment[zh_TW]=基本亮度控制
X-KDE-PowerDevil-Action-ID=BrightnessControl
X-KDE-PowerDevil-Action-IsBundled=true
X-KDE-PowerDevil-Action-UIComponentLibrary=powerdevilbrightnesscontrolaction_config
X-KDE-PowerDevil-Action-ConfigPriority=100
X-KDE-PowerDevil-Action-HasRuntimeRequirement=true
X-KDE-PowerDevil-Action-RegistersDBusInterface=true
{
"KPlugin": {
"Description": "Basic Controls for brightness",
"Description[ar]": "تحكم بسيط بالسطوع",
"Description[az]": "Parlaqlığın idarə edilməsinin əsas elementləri",
"Description[bs]": "Osnovne kontrole osvjetljenja",
"Description[ca@valencia]": "Controls bàsics per a la lluminositat",
"Description[ca]": "Controls bàsics per a la lluminositat",
"Description[cs]": "Základní ovládání jasu",
"Description[da]": "Basal kontrol af lysstyrke",
"Description[de]": "Grundeinstellungen zur Bildschirmhelligkeit",
"Description[el]": "Βασικά στοιχεία ελέγχου λαμπρότητας",
"Description[en_GB]": "Basic Controls for brightness",
"Description[es]": "Control básico del brillo",
"Description[et]": "Heleduse lihtne juhtimine",
"Description[eu]": "Distiraren oinarrizko kontrolak",
"Description[fi]": "Kirkkauden perussäätimet",
"Description[fr]": "Contrôles simples de la luminosité",
"Description[gl]": "Controis básicos do brillo",
"Description[he]": "שליטה בבהירות",
"Description[hu]": "Alap fényerő-beállítások",
"Description[ia]": "Controlos basic pro brillantia",
"Description[id]": "Kendali Dasar pada kecerahan",
"Description[it]": "Controlli di base della luminosità",
"Description[ja]": "明るさの基本的な制御",
"Description[ko]": "기본 밝기 제어",
"Description[lt]": "Pagrindiniai ryškumo valdikliai",
"Description[ml]": "തെളിച്ചത്തിനുള്ള അടിസ്ഥാന നിയന്ത്രണങ്ങൾ",
"Description[nb]": "Grunnleggende styring av lysstyrke",
"Description[nds]": "Eenfach Helligkeit-Instellen",
"Description[nl]": "Basisbesturing voor helderheid",
"Description[nn]": "Grunnleggjande styring av lysstyrke",
"Description[pa]": "ਚਮਕ ਲਈ ਮੁੱਢਲੇ ਕੰਟਰੋਲ",
"Description[pl]": "Podstawowe sterowanie jasnością",
"Description[pt]": "Controlos básicos do brilho",
"Description[pt_BR]": "Controles básicos do brilho",
"Description[ro]": "Controale de bază pentru luminozitate",
"Description[ru]": "Базовые функции управления яркостью",
"Description[sk]": "Základné ovládanie jasu",
"Description[sl]": "Osnovni nadzor svetlosti",
"Description[sr@ijekavian]": "Основне контроле освјетљаја",
"Description[sr@ijekavianlatin]": "Osnovne kontrole osvjetljaja",
"Description[sr@latin]": "Osnovne kontrole osvetljaja",
"Description[sr]": "Основне контроле осветљаја",
"Description[sv]": "Grundkontroller för ljusstyrka",
"Description[ta]": "திரையின் பிரகாசத்திற்கான அடிப்படை இயக்கிகள்",
"Description[tg]": "Унсурҳои идоракунии асосӣ барои дурахшонӣ",
"Description[tr]": "Parlaklık için temel denetimler",
"Description[uk]": "Базове керування яскравістю",
"Description[x-test]": "xxBasic Controls for brightnessxx",
"Description[zh_CN]": "亮度基本控制",
"Description[zh_TW]": "基本亮度控制",
"Icon": "preferences-system-power-management",
"Name": "Screen brightness",
"Name[ar]": "سطوع الشاشة",
"Name[az]": "Ekran parlaqlığı",
"Name[bs]": "Svjetlost ekrana",
"Name[ca@valencia]": "Lluminositat de la pantalla",
"Name[ca]": "Lluminositat de la pantalla",
"Name[cs]": "Jas obrazovky",
"Name[da]": "Skærmens lysstyrke",
"Name[de]": "Bildschirmhelligkeit",
"Name[el]": "Λαμπρότητα οθόνης",
"Name[en_GB]": "Screen brightness",
"Name[es]": "Brillo de la pantalla",
"Name[et]": "Ekraani heledus",
"Name[eu]": "Pantailaren distira",
"Name[fi]": "Näytön kirkkaus",
"Name[fr]": "Luminosité de l'écran",
"Name[gl]": "Brillo da pantalla",
"Name[he]": "בהירות מסך",
"Name[hu]": "Képernyő fényessége",
"Name[ia]": "Brillantia de Schermo",
"Name[id]": "Kecerahan layar",
"Name[it]": "Luminosità dello schermo",
"Name[ja]": "スクリーンの明るさ",
"Name[ko]": "화면 밝기",
"Name[lt]": "Ekrano ryškumas",
"Name[ml]": "സ്ക്രീന്‍ തെളിച്ചം",
"Name[nb]": "Skjermlysstyrke",
"Name[nds]": "Schirm-Helligkeit",
"Name[nl]": "Schermhelderheid",
"Name[nn]": "Skjermlysstyrke",
"Name[pa]": "ਸਕਰੀਨ ਚਮਕ",
"Name[pl]": "Jasność ekranu",
"Name[pt]": "Brilho do ecrã",
"Name[pt_BR]": "Brilho da tela",
"Name[ro]": "Luminozitate ecran",
"Name[ru]": "Яркость экрана",
"Name[sk]": "Jas obrazovky",
"Name[sl]": "Svetlost zaslona",
"Name[sr@ijekavian]": "Освјетљај екрана",
"Name[sr@ijekavianlatin]": "Osvjetljaj ekrana",
"Name[sr@latin]": "Osvetljaj ekrana",
"Name[sr]": "Осветљај екрана",
"Name[sv]": "Skärmljusstyrka",
"Name[ta]": "தரையின் பிரகாசம்",
"Name[tg]": "Дурахшонии экран",
"Name[tr]": "Ekran parlaklığı",
"Name[uk]": "Яскравість екрана",
"Name[x-test]": "xxScreen brightnessxx",
"Name[zh_CN]": "屏幕亮度",
"Name[zh_TW]": "螢幕亮度",
"ServiceTypes": [
"PowerDevil/Action"
]
},
"X-KDE-PowerDevil-Action-ConfigPriority": 100,
"X-KDE-PowerDevil-Action-HasRuntimeRequirement": true,
"X-KDE-PowerDevil-Action-ID": "BrightnessControl",
"X-KDE-PowerDevil-Action-IsBundled": true,
"X-KDE-PowerDevil-Action-RegistersDBusInterface": true,
"X-KDE-PowerDevil-Action-UIComponentLibrary": "powerdevilbrightnesscontrolaction_config"
}
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=PowerDevil/Action
# X-KDE-Library=powerdevildimdisplayaction
Icon=preferences-desktop-display
Name=Dim screen
Name[ar]=أعتِم الشاشة
Name[az]=Ekranın qaralması
Name[bg]=Затъмняване на екрана
Name[bs]=Priguši ekran
Name[ca]=Enfosquiment de la pantalla
Name[ca@valencia]=Enfosquiment de la pantalla
Name[cs]=Ztmavit obrazovku
Name[da]=Dæmp skærmen
Name[de]=Bildschirm abdunkeln
Name[el]=Σκίαση οθόνης
Name[en_GB]=Dim screen
Name[es]=Oscurecer la pantalla
Name[et]=Ekraani tumendamine
Name[eu]=Ilundu pantaila
Name[fi]=Näytön himmennys
Name[fr]=Diminuer la luminosité de l'écran
Name[gl]=Atenuar a pantalla
Name[he]=החשך מסך
Name[hu]=Fényerő csökkentése
Name[ia]=Obscura Schermo
Name[id]=Layar redup
Name[it]=Oscuramento dello schermo
Name[ja]=スクリーンを暗く
Name[ko]=화면 어둡게 하기
Name[lt]=Pritemdyti ekraną
Name[nb]=Mørklegg skjerm
Name[nds]=Schirmafdüüstern
Name[nl]=Scherm dimmen
Name[nn]=Demp skjermen
Name[pa]=ਸਕਰੀਨ ਡਿਮ
Name[pl]=Przyciemnij ekran
Name[pt]=Escurecer o ecrã
Name[pt_BR]=Escurecer a tela
Name[ro]=Întunecă ecranul
Name[ru]=Потухание экрана
Name[sk]=Stmaviť obrazovku
Name[sl]=Potemni zaslon
Name[sr]=Пригуши екран
Name[sr@ijekavian]=Пригуши екран
Name[sr@ijekavianlatin]=Priguši ekran
Name[sr@latin]=Priguši ekran
Name[sv]=Dämpa skärmen
Name[ta]=திரையை மங்கசெய்
Name[tg]=Камнуркунии экран
Name[tr]=Ekranı karart
Name[uk]=Зменшення яскравості екрана
Name[x-test]=xxDim screenxx
Name[zh_CN]=降低屏幕亮度
Name[zh_TW]=將螢幕變暗
Comment=Dims gradually the display on a time basis
Comment[ar]=يعتِم الشاشة تدريجياً بناء على توقيت
Comment[az]=Ekran zamanla tədricən qaralır
Comment[bg]=Постепенно затъмнява дисплея за определен период от време
Comment[bs]=Postepeno prigušuje ekran na zadano vrijeme
Comment[ca]=Atenua gradualment la pantalla en funció del temps
Comment[ca@valencia]=Atenua gradualment la pantalla en funció del temps
Comment[cs]=Postupné ztmavení obrazovky
Comment[da]=Dæmper skærmen gradvist baseret på tid
Comment[de]=Dunkelt den Bildschirm zeitgesteuert ab
Comment[el]=Μειώνει σταδιακά τη φωτεινότητα της οθόνης
Comment[en_GB]=Dims gradually the display on a time basis