mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +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 deviceRemoved(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:
|
||||
void monitorReadyRead(int fd);
|
||||
|
|
|
@ -108,15 +108,13 @@ void Client::monitorReadyRead(int fd)
|
|||
emit deviceRemoved(device);
|
||||
} else if (action == "change") {
|
||||
emit deviceChanged(device);
|
||||
} else if (action == "online") {
|
||||
emit deviceOnlined(device);
|
||||
} 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 (action == "online" || action == "offline") {
|
||||
; // nada
|
||||
} 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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue