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 #include <KJob>
0011 
0012 class GetCommand : public BusObject
0013 {
0014     Q_OBJECT
0015     Q_CLASSINFO("D-Bus Interface", "org.kde.kio.admin.GetCommand")
0016 public:
0017     explicit GetCommand(const QUrl &url, const QString &remoteService, const QDBusObjectPath &objectPath, QObject *parent = nullptr);
0018 
0019 public Q_SLOTS:
0020     void start();
0021     void kill();
0022 
0023 Q_SIGNALS:
0024     void data(const QByteArray &blob);
0025     void result(int error, const QString &errorString);
0026     void mimeTypeFound(const QString &mimetype);
0027 
0028 private:
0029     QUrl m_url;
0030 };