File indexing completed on 2024-05-12 17:09:48
0001 /* 0002 SPDX-FileCopyrightText: 2008, 2009 Fredrik Höglund <fredrik@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #include <QDBusAbstractAdaptor> 0010 #include <QUrl> 0011 #include <kdedmodule.h> 0012 0013 class KDirWatch; 0014 0015 class DesktopNotifier : public KDEDModule 0016 { 0017 Q_OBJECT 0018 Q_CLASSINFO("D-Bus Interface", "org.kde.DesktopNotifier") 0019 0020 public: 0021 DesktopNotifier(QObject *parent, const QList<QVariant> &); 0022 0023 public Q_SLOTS: 0024 Q_SCRIPTABLE Q_NOREPLY void watchDir(const QString &path); 0025 0026 private Q_SLOTS: 0027 void created(const QString &path); 0028 void dirty(const QString &path); 0029 0030 private: 0031 void checkDesktopLocation(); 0032 0033 KDirWatch *dirWatch; 0034 QUrl m_desktopLocation; 0035 };