You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
695 B
35 lines
695 B
/* |
|
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; |
|
};
|
|
|