mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 06:44:18 +00:00
31 lines
549 B
C++
31 lines
549 B
C++
/*
|
|
SPDX-FileCopyrightText: 2017 Valerio Pilo <vpilo@coldshock.net>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QCoreApplication>
|
|
#include <QString>
|
|
#include <QTimer>
|
|
|
|
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;
|
|
};
|