/* SPDX-FileCopyrightText: 2017 Valerio Pilo SPDX-License-Identifier: LGPL-2.0-only */ #pragma once #include #include #include class Waiter : public QCoreApplication { Q_OBJECT public: Waiter(int argc, char **argv); bool waitForService(); private Q_SLOTS: void registered(); void timeout(); private: constexpr static const int dbusTimeoutSec = 60; QString mService = QStringLiteral("org.freedesktop.Notifications"); QTimer mTimeoutTimer; };