kdeconnect-kde/kio/kiokdeconnect.h

38 lines
962 B
C
Raw Permalink Normal View History

/**
* 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>
2022-04-19 22:51:21 +01:00
#include <KIO/WorkerBase>
#include "dbusinterfaces.h"
2022-04-19 22:51:21 +01:00
class KioKdeconnect : public QObject, public KIO::WorkerBase
{
2015-10-19 05:49:29 +01:00
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