3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-14 11:15:54 +00:00
2022-04-02 18:24:21 +05:00

36 lines
695 B
C++

/*
SPDX-FileCopyrightText: 2008, 2009 Fredrik Höglund <fredrik@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#pragma once
#include <QDBusAbstractAdaptor>
#include <QUrl>
#include <kdedmodule.h>
class KDirWatch;
class DesktopNotifier : public KDEDModule
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.DesktopNotifier")
public:
DesktopNotifier(QObject *parent, const QList<QVariant> &);
public Q_SLOTS:
Q_SCRIPTABLE Q_NOREPLY void watchDir(const QString &path);
private Q_SLOTS:
void created(const QString &path);
void dirty(const QString &path);
private:
void checkDesktopLocation();
KDirWatch *dirWatch;
QUrl m_desktopLocation;
};