service/tray: report misbehaving tray hosts

I've debugged broken tray items that just end up being a bad host far
too many times.
This commit is contained in:
outfoxxed 2024-11-17 01:30:54 -08:00
parent 0445eee33a
commit 36d1dbeb69
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 25 additions and 2 deletions

View file

@ -29,6 +29,7 @@ public:
[[nodiscard]] qint32 protocolVersion() const { return 0; } // NOLINT
[[nodiscard]] bool isHostRegistered() const;
[[nodiscard]] QList<QString> registeredItems() const;
[[nodiscard]] bool isRegistered() const;
// NOLINTBEGIN
void RegisterStatusNotifierHost(const QString& host);
@ -54,6 +55,7 @@ private:
QDBusServiceWatcher serviceWatcher;
QList<QString> hosts;
QList<QString> items;
bool registered = false;
};
} // namespace qs::service::sni