Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
33 lines
767 B
C++
33 lines
767 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2012~2017 CSSlayer <wengxt@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#ifndef _DBUSADDONS_FCITXQTWATCHER_P_H_
|
|
#define _DBUSADDONS_FCITXQTWATCHER_P_H_
|
|
|
|
#include "fcitxqtwatcher.h"
|
|
#include <QDBusServiceWatcher>
|
|
|
|
#define FCITX_MAIN_SERVICE_NAME "org.fcitx.Fcitx5"
|
|
#define FCITX_PORTAL_SERVICE_NAME "org.freedesktop.portal.Fcitx"
|
|
|
|
namespace fcitx {
|
|
|
|
class FcitxQtWatcherPrivate {
|
|
public:
|
|
FcitxQtWatcherPrivate(FcitxQtWatcher *q) : serviceWatcher_(q) {}
|
|
|
|
QDBusServiceWatcher serviceWatcher_;
|
|
bool watchPortal_ = false;
|
|
bool availability_ = false;
|
|
bool mainPresent_ = false;
|
|
bool portalPresent_ = false;
|
|
bool watched_ = false;
|
|
};
|
|
} // namespace fcitx
|
|
|
|
#endif // _DBUSADDONS_FCITXQTWATCHER_P_H_
|