kdeconnect-kde/kio/kiokdeconnect.h

41 lines
909 B
C
Raw 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>
#include <kio/slavebase.h>
#include "interfaces/dbusinterfaces.h"
class KioKdeconnect : public QObject, public KIO::SlaveBase
{
2015-10-19 05:49:29 +01:00
Q_OBJECT
public:
KioKdeconnect(const QByteArray& pool, const QByteArray& app);
void get(const QUrl& url) override;
void listDir(const QUrl& url) override;
void stat(const QUrl& url) override;
void listAllDevices(); //List all devices exported by m_dbusInterface
2019-03-09 14:52:29 +00:00
void 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