Debian Codegraph @

qt4/dbusaddons/fcitxqtwatcher_p.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2012~2017 CSSlayer <[email protected]>
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8 #ifndef _DBUSADDONS_FCITXQTWATCHER_P_H_
9 #define _DBUSADDONS_FCITXQTWATCHER_P_H_
10
11 #include "fcitxqtwatcher.h"
12 #include <QDBusServiceWatcher>
13
14 #define FCITX_MAIN_SERVICE_NAME "org.fcitx.Fcitx5"
15 #define FCITX_PORTAL_SERVICE_NAME "org.freedesktop.portal.Fcitx"
16
17 namespace fcitx {
18
19 class FcitxQtWatcherPrivate {
20 public:
21 FcitxQtWatcherPrivate(FcitxQtWatcher *q) : serviceWatcher_(q) {}
22
23 QDBusServiceWatcher serviceWatcher_;
24 bool watchPortal_ = false;
25 bool availability_ = false;
26 bool mainPresent_ = false;
27 bool portalPresent_ = false;
28 bool watched_ = false;
29 };
30 } // namespace fcitx
31
32 #endif // _DBUSADDONS_FCITXQTWATCHER_P_H_