File indexing completed on 2024-05-12 05:48:10
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0003 0004 #pragma once 0005 0006 #include <QUrl> 0007 0008 #include "busobject.h" 0009 0010 class ChownCommand : public BusObject 0011 { 0012 Q_OBJECT 0013 Q_CLASSINFO("D-Bus Interface", "org.kde.kio.admin.ChownCommand") 0014 public: 0015 explicit ChownCommand(const QUrl &url, 0016 const QString &user, 0017 const QString &group, 0018 const QString &remoteService, 0019 const QDBusObjectPath &objectPath, 0020 QObject *parent = nullptr); 0021 0022 public Q_SLOTS: 0023 void start(); 0024 0025 Q_SIGNALS: 0026 void result(int error, const QString &errorString); 0027 0028 private: 0029 const QUrl m_url; 0030 const QString m_user; 0031 const QString m_group; 0032 };