mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: remove unused UdevQt::Client signals
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e6aef8e5d5
commit
ccfd17a401
2 changed files with 6 additions and 10 deletions
|
@ -80,8 +80,6 @@ Q_SIGNALS:
|
||||||
void deviceAdded(const UdevQt::Device &dev);
|
void deviceAdded(const UdevQt::Device &dev);
|
||||||
void deviceRemoved(const UdevQt::Device &dev);
|
void deviceRemoved(const UdevQt::Device &dev);
|
||||||
void deviceChanged(const UdevQt::Device &dev);
|
void deviceChanged(const UdevQt::Device &dev);
|
||||||
void deviceOnlined(const UdevQt::Device &dev);
|
|
||||||
void deviceOfflined(const UdevQt::Device &dev);
|
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void monitorReadyRead(int fd);
|
void monitorReadyRead(int fd);
|
||||||
|
|
|
@ -108,15 +108,13 @@ void Client::monitorReadyRead(int fd)
|
||||||
emit deviceRemoved(device);
|
emit deviceRemoved(device);
|
||||||
} else if (action == "change") {
|
} else if (action == "change") {
|
||||||
emit deviceChanged(device);
|
emit deviceChanged(device);
|
||||||
} else if (action == "online") {
|
} else if (action == "online" || action == "offline") {
|
||||||
emit deviceOnlined(device);
|
; // nada
|
||||||
} else if (action == "offline") {
|
|
||||||
emit deviceOfflined(device);
|
|
||||||
/*
|
|
||||||
bind/unbind are driver changing for device type of event, on some systems it appears to be
|
|
||||||
broken and doing it all the time thus ignore the actions
|
|
||||||
*/
|
|
||||||
} else if (Q_UNLIKELY(action != "bind" && action != "unbind")) {
|
} else if (Q_UNLIKELY(action != "bind" && action != "unbind")) {
|
||||||
|
/*
|
||||||
|
bind/unbind are driver changing for device type of event, on some systems it appears to be
|
||||||
|
broken and doing it all the time thus ignore the actions
|
||||||
|
*/
|
||||||
qWarning("UdevQt: unhandled device action \"%s\"", action.constData());
|
qWarning("UdevQt: unhandled device action \"%s\"", action.constData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue