File indexing completed on 2024-11-03 13:13:24

0001 /*
0002    SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqola_private_export.h"
0010 #include <QObject>
0011 class QDBusServiceWatcher;
0012 class LIBRUQOLACORE_TESTS_EXPORT UnityServiceManager : public QObject
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit UnityServiceManager(QObject *parent = nullptr);
0017     ~UnityServiceManager() override;
0018 
0019     void setCount(int count);
0020 
0021 private:
0022     Q_DISABLE_COPY(UnityServiceManager)
0023     void initUnity();
0024     void updateCount();
0025     QDBusServiceWatcher *const mUnityServiceWatcher;
0026     int mCount = 0;
0027     bool mUnityServiceAvailable = false;
0028 };