solid: rename Solid::Battery::ChargeState::FullCharge to Solid::Battery::ChargeState::FullyCharged

there was FullyCharged enum once? I am guessing so:
4385f0be53/plasma/applets/batterymonitor/contents/code/logic.js (L101)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-04-22 15:44:48 +03:00
parent 649dcbd2a0
commit 2e1544537d
3 changed files with 5 additions and 5 deletions

View file

@ -103,7 +103,7 @@ Solid::Battery::ChargeState FakeBattery::chargeState() const
}
else if (state == "full")
{
return Solid::Battery::FullCharge;
return Solid::Battery::FullyCharged;
}
else
{
@ -123,7 +123,7 @@ void FakeBattery::setChargeState(Solid::Battery::ChargeState newState)
case Solid::Battery::Discharging:
name = "discharging";
break;
case Solid::Battery::FullCharge:
case Solid::Battery::FullyCharged:
name = "full";
break;
case Solid::Battery::UnknownCharge:

View file

@ -114,7 +114,7 @@ Solid::Battery::ChargeState Battery::chargeState() const
} else if (powersupplystatus == QLatin1String("discharging")) {
return Solid::Battery::Discharging;
} else if (powersupplystatus == QLatin1String("full")) {
return Solid::Battery::FullCharge;
return Solid::Battery::FullyCharged;
}
return Solid::Battery::UnknownCharge;

View file

@ -65,9 +65,9 @@ namespace Solid
* - UnknownCharge : Battery state is Unknown
* - Charging : Battery is charging
* - Discharging : Battery is discharging
* - FullCharge : Battery is fully charged
* - FullyCharged : Battery is fully charged
*/
enum ChargeState { UnknownCharge, Charging, Discharging, FullCharge };
enum ChargeState { UnknownCharge, Charging, Discharging, FullyCharged };
private: