Kai Uwe Broulik
4932c6e2cb
[Power Management Engine] Fix kiosk restriction for lockscreen
...
It is action/lock_screen according to documentation.
BUG: 393331
FIXED-IN: 5.12.5
Differential Revision: https://phabricator.kde.org/D12375
8 years ago
Kai Uwe Broulik
032fbb8361
[Battery Monitor] Support "Gaming Input Battery type"
...
Gives them a nicer icon.
The icon does not yet exist in Plasma but gaming-input does, so it falls back to that.
CHANGELOG: Battery Monitor can now show battery levels of gaming devices, such as wireless gamepads and joysticks
Differential Revision: https://phabricator.kde.org/D11571
8 years ago
Friedrich W. H. Kossebau
beefcb1581
Use explicit
8 years ago
Friedrich W. H. Kossebau
2608ccce81
Use nullptr
8 years ago
Friedrich W. H. Kossebau
6e1946cec7
Remove module prefix from Qt includes
8 years ago
Laurent Montel
31421a6e5f
Use nullptr
8 years ago
l10n daemon script
1c8eb7a732
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
8 years ago
l10n daemon script
c758248f4d
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
8 years ago
l10n daemon script
5947632bd6
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
8 years ago
l10n daemon script
0952c56bd2
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
9 years ago
l10n daemon script
ced9357b82
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
9 years ago
l10n daemon script
50b7c832f3
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
9 years ago
l10n daemon script
1b4fcc7e05
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
10 years ago
l10n daemon script
a62ad99c50
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
10 years ago
l10n daemon script
f010b18a16
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
10 years ago
David Edmundson
55f3d69008
Port all authorizeKAction -> authorizeAction
...
Summary: Warnings--
Test Plan: compiles
Reviewers: #plasma
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D2537
10 years ago
Kai Uwe Broulik
1dabe44490
[Powermanagement Dataengine] Use "lock_screen" rather than "action/lock_screen"
...
This makes it consistent with the documentation and was most likely
a porting oversight
10 years ago
Kai Uwe Broulik
2626a6ad0a
[Powermanagement Dataengine] Expose "Logout" as Sleep State
...
This allows to query for whether the user may logout from QML-only parts
like the desktop toolbox.
Differential Revision: https://phabricator.kde.org/D1610
10 years ago
Kai Uwe Broulik
7ff6ef2a88
[Powermangement Dataengine] Support "NoCharge" state for cumulative battery
...
CCBUG: 350068
10 years ago
l10n daemon script
dede99791c
SVN_SILENT made messages (.desktop file)
10 years ago
l10n daemon script
85944fe9f9
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
10 years ago
Aleix Pol
96ff1c868e
Properly define overrides as suggested by the c++ standard
10 years ago
l10n daemon script
40f0461650
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
10 years ago
Montel Laurent
a007f294b4
Use new connect api + QStringLiteral
11 years ago
Kai Uwe Broulik
76d4a9b4b9
Expose whether we can lock the screen in the powermanagement data engine
...
This allows the lock logout applet and toolbox to access this information easily
since they already use this engine anyway
11 years ago
Kai Uwe Broulik
5aebb7b01c
Use percentage if there's just one battery
...
Energy readings seem quite unreliable - if we only have one battery
it's better just to show the actual percentage which, for whatever reason,
is usually more accurate than energy divided by energyFull.
11 years ago
Kai Uwe Broulik
6a2a5b9bd8
Fall back to averaging percentage when there are no energy values reported
...
According to the UPower specification UPS batteries do not suppliy energy values (Wh)
thus our calculation breaks when there's just an UPS and we start blinking because
we think the total percentage is zero. In case we do have batteries but no energy
just average the percentages. Still not perfect but close enough.
BUG: 348588
FIXED-IN: 5.4.0
11 years ago
Emmanuel Pescosta
08cbba07eb
Fix a crash in PowermanagementEngine::populateApplicationData when the given name is empty.
...
Use QString::section instead of QString::split + QList::last (which requires
a non empty list) to prevent the crash.
REVIEW: 123555
11 years ago
Kai Uwe Broulik
49c425a80e
Always set Has Cumulative, there's an early return when no there's no battery
...
Otherwise there will be a JS exception in the binding causing the battery percentage
to be shown on the screenlocker unconditionally leading to a "0% remaining" on a desktop PC
11 years ago
l10n daemon script
738b59196a
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
11 years ago
l10n daemon script
fb88c728e1
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
11 years ago
Montel Laurent
5f9ae5e13c
We depend against kf5-5.8 => ecm > 1.6 => we can use new KDE_ variable
11 years ago
l10n daemon script
2569d35ff4
SVN_SILENT made messages (.desktop file)
11 years ago
l10n daemon script
5e058803f7
SVN_SILENT made messages (.desktop file)
11 years ago
Kai Uwe Broulik
4ebe0dc427
Adjust powermanagement dataengine to API change in PowerDevil
...
REVIEW: 122603
11 years ago
Kai Uwe Broulik
01e22ac4dc
When KService doesn't find the application use the name as fallback for the icon
...
This can result in the "unknown" icon being shown but when an app posts an inhibition
without being found by either KService or name, that is a really naughty app.
11 years ago
Kai Uwe Broulik
adb7b85059
Show hint when the notebook won't suspend because an external monitor is connected
...
Also refactor that hint into a separate component and cleanup
11 years ago
Kai Uwe Broulik
5abc15bc3e
Expose whether we have a cumulative battery or not
...
A value of zero could either mean no battery present or it is really zero percent.
Also display "n% battery remaining" as fallback rather than an explicit "charging"
11 years ago
Kai Uwe Broulik
5f3fc97cd6
Fix coding style and always fill prettyName in populateApplicationData
11 years ago
Kai Uwe Broulik
063addfd3c
Remove unused include
11 years ago
Kai Uwe Broulik
5d87f25d1f
Address comments in review:
...
- Deduplicate code
- Remove redundant empty checks
11 years ago
Lukáš Tinkl
0df86746db
fix crash when calculating totals after suspend/resume
...
reported and verified by mck
11 years ago
Kai Uwe Broulik
62fbfd5b15
Remove explicit source request
...
This was there to initially populate the dataengine. But since the requests are all
asynchronous the data won't be there on time anyway, so let's just wait until somebody
explicitly requests the source which was done by batterymonitor anyway resulting in two
subsequent calls potentially confusing PowerDevil and causing it to go nuts.
CCBUG: 337674
11 years ago
Kai Uwe Broulik
f88c2a1414
Fix fallback to application-provided name in change handler
11 years ago
Kai Uwe Broulik
7ec8b74256
Expose inhibitions in dataengine
...
This adds a new "Inhibitions" source which has keys for each application
(amarok, vlc, ...) and inside a QVariantMap with the pretty application name
(taken from the desktop file through KService and cached localle), the
application icon and the reason for the inhibition (as provided by the app)
REVIEW: 122132
11 years ago
Kai Uwe Broulik
3c436d2968
Use Solid::Battery energyFull rather than deducing it from the capacity
...
This produced significant rounding errors up to 111% battery being reported :)
11 years ago
Lukáš Tinkl
ef8830672e
create a synthetic battery, containing overall charging state and percentage
...
to be used by the battery applet and the lock screen
CCMAIL: kde@privat.broulik.de
11 years ago
Lukáš Tinkl
258874faa3
take hotplugged batteries into account when calculating the energy
11 years ago
Lukáš Tinkl
a9dbe4592d
report correct overall battery percentage
...
in case of several batteries; a plain "sum/count" won't do it,
especially when the batteries have different Energy. Take that into
account, report it thru the dataengine and do the math correctly
11 years ago
l10n daemon script
abb6dd177d
SVN_SILENT made messages (.desktop file)
11 years ago