/* This file is part of the KDE Project SPDX-FileCopyrightText: 2004 Kévin Ottens SPDX-License-Identifier: LGPL-2.0-only */ #include "remotedirnotify.h" #include #include #include #include RemoteDirNotify::RemoteDirNotify() { const QString path = QStringLiteral("%1/remoteview").arg(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)); m_dirWatch = new KDirWatch(this); m_dirWatch->addDir(path, KDirWatch::WatchFiles); connect(m_dirWatch, &KDirWatch::created, this, &RemoteDirNotify::slotRemoteChanged); connect(m_dirWatch, &KDirWatch::deleted, this, &RemoteDirNotify::slotRemoteChanged); connect(m_dirWatch, &KDirWatch::dirty, this, &RemoteDirNotify::slotRemoteChanged); } void RemoteDirNotify::slotRemoteChanged() { org::kde::KDirNotify::emitFilesAdded(QUrl(QStringLiteral("remote:/"))); } #include "moc_remotedirnotify.cpp"