kdeconnect-kde/kio/kiokdeconnect.h
2022-09-05 12:06:39 +02:00

40 lines
963 B
C++

/**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef KIOKDECONNECT_H
#define KIOKDECONNECT_H
#include <QObject>
#include <KIO/WorkerBase>
#include "dbusinterfaces.h"
class KioKdeconnect : public QObject, public KIO::WorkerBase
{
Q_OBJECT
public:
KioKdeconnect(const QByteArray& pool, const QByteArray& app);
KIO::WorkerResult get(const QUrl& url) override;
KIO::WorkerResult listDir(const QUrl& url) override;
KIO::WorkerResult stat(const QUrl& url) override;
KIO::WorkerResult listAllDevices(); //List all devices exported by m_dbusInterface
KIO::WorkerResult listDevice(const QString& device); //List m_currentDevice
private:
/**
* KDED DBus interface, used to communicate to the daemon since we need some status (like connected)
*/
DaemonDbusInterface* m_dbusInterface;
};
#endif