File indexing completed on 2024-04-28 05:49:20
0001 /* 0002 SPDX-FileCopyrightText: 2005 Christoph Cullmann <cullmann@kde.org> 0003 SPDX-FileCopyrightText: 2002, 2003 Joseph Wenninger <jowenn@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QCoreApplication> 0011 #include <QDBusConnection> 0012 #include <QDBusConnectionInterface> 0013 #include <QDBusServiceWatcher> 0014 #include <QObject> 0015 0016 class KateWaiter : public QObject 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 KateWaiter(const QString &service, const QStringList &tokens); 0022 0023 public Q_SLOTS: 0024 static void exiting(); 0025 0026 void documentClosed(const QString &token); 0027 0028 static void serviceOwnerChanged(const QString &, const QString &, const QString &); 0029 0030 private: 0031 QStringList m_tokens; 0032 QDBusServiceWatcher m_watcher; 0033 };