Remove unused signals
This commit is contained in:
parent
c1576ed44f
commit
8721423029
2 changed files with 0 additions and 14 deletions
|
@ -152,7 +152,6 @@ void Battery::updateData()
|
||||||
nextCharge = chargeFile->readLine().trimmed().toInt();
|
nextCharge = chargeFile->readLine().trimmed().toInt();
|
||||||
if(nextCharge != charge) {
|
if(nextCharge != charge) {
|
||||||
charge = nextCharge;
|
charge = nextCharge;
|
||||||
emit chargeChanged(charge);
|
|
||||||
logV(QString("Battery: %1%").arg(charge));
|
logV(QString("Battery: %1%").arg(charge));
|
||||||
}
|
}
|
||||||
chargeFile->close();
|
chargeFile->close();
|
||||||
|
@ -161,7 +160,6 @@ void Battery::updateData()
|
||||||
nextChargerConnected = chargerConnectedFile->readLine().trimmed().toInt();
|
nextChargerConnected = chargerConnectedFile->readLine().trimmed().toInt();
|
||||||
if(nextChargerConnected != chargerConnected) {
|
if(nextChargerConnected != chargerConnected) {
|
||||||
chargerConnected = nextChargerConnected;
|
chargerConnected = nextChargerConnected;
|
||||||
emit chargerConnectedChanged(chargerConnected);
|
|
||||||
logV(QString("Charger: %1").arg(chargerConnected ? "connected" : "disconnected"));
|
logV(QString("Charger: %1").arg(chargerConnected ? "connected" : "disconnected"));
|
||||||
}
|
}
|
||||||
chargerConnectedFile->close();
|
chargerConnectedFile->close();
|
||||||
|
@ -170,7 +168,6 @@ void Battery::updateData()
|
||||||
nextState = (QString(stateFile->readLine().trimmed().toLower()));
|
nextState = (QString(stateFile->readLine().trimmed().toLower()));
|
||||||
if(nextState != state) {
|
if(nextState != state) {
|
||||||
state = nextState;
|
state = nextState;
|
||||||
emit stateChanged(state);
|
|
||||||
logV("State: " + state);
|
logV("State: " + state);
|
||||||
|
|
||||||
// Hide/show notification right away
|
// Hide/show notification right away
|
||||||
|
@ -186,7 +183,6 @@ void Battery::updateData()
|
||||||
logV(QString("Temperature: %1°C").arg(nextTemperature / 10));
|
logV(QString("Temperature: %1°C").arg(nextTemperature / 10));
|
||||||
}
|
}
|
||||||
temperature = nextTemperature;
|
temperature = nextTemperature;
|
||||||
emit temperatureChanged(temperature);
|
|
||||||
}
|
}
|
||||||
temperatureFile->close();
|
temperatureFile->close();
|
||||||
}
|
}
|
||||||
|
@ -195,7 +191,6 @@ void Battery::updateData()
|
||||||
nextHealth = (QString(healthFile->readLine().trimmed().toLower()));
|
nextHealth = (QString(healthFile->readLine().trimmed().toLower()));
|
||||||
if(nextHealth != health) {
|
if(nextHealth != health) {
|
||||||
health = nextHealth;
|
health = nextHealth;
|
||||||
emit healthChanged(health);
|
|
||||||
logV("Health: " + health);
|
logV("Health: " + health);
|
||||||
|
|
||||||
// Hide/show notification right away
|
// Hide/show notification right away
|
||||||
|
@ -359,7 +354,6 @@ bool Battery::setChargingEnabled(const bool isEnabled) {
|
||||||
if(chargingEnabledFile->open(QIODevice::WriteOnly)) {
|
if(chargingEnabledFile->open(QIODevice::WriteOnly)) {
|
||||||
if(chargingEnabledFile->write(QString("%1").arg(isEnabled ? enableChargingValue : disableChargingValue).toLatin1())) {
|
if(chargingEnabledFile->write(QString("%1").arg(isEnabled ? enableChargingValue : disableChargingValue).toLatin1())) {
|
||||||
chargingEnabled = isEnabled;
|
chargingEnabled = isEnabled;
|
||||||
emit chargingEnabledChanged(chargingEnabled);
|
|
||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
if(isEnabled) {
|
if(isEnabled) {
|
||||||
|
|
|
@ -114,14 +114,6 @@ private:
|
||||||
QFileDevice::Permissions originalPerms; // Updated in constructor
|
QFileDevice::Permissions originalPerms; // Updated in constructor
|
||||||
QFileDevice::Permissions customPerms = static_cast<QFileDevice::Permissions>(0x0666);
|
QFileDevice::Permissions customPerms = static_cast<QFileDevice::Permissions>(0x0666);
|
||||||
|
|
||||||
signals:
|
|
||||||
void chargeChanged(int);
|
|
||||||
void stateChanged(QString);
|
|
||||||
void chargingEnabledChanged(bool);
|
|
||||||
void chargerConnectedChanged(bool);
|
|
||||||
void temperatureChanged(int);
|
|
||||||
void healthChanged(QString);
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void resetTimers();
|
void resetTimers();
|
||||||
void showHighNotification();
|
void showHighNotification();
|
||||||
|
|
Loading…
Reference in a new issue