kylin-connectivity/dbus/dbusvfsinterface.h

34 lines
860 B
C
Raw Normal View History

2022-09-29 20:28:54 +08:00
#ifndef DBUSVFSINTERFACE_H
#define DBUSVFSINTERFACE_H
#define KYLIN_CONNECTIVITY_PATH "/"
#define KYLIN_CONNECTIVITY_SERVICE "com.kylinos.Multiterminal.Manager"
#define KYLIN_CONNECTIVITY_INTERFACE "com.kylinos.Multiterminal.Manager"
2022-09-29 20:28:54 +08:00
#include <QObject>
#include "fileinfo.h"
#include "fileinfolist.h"
class DbusVfsInterface : public QObject
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", KYLIN_CONNECTIVITY_SERVICE)
2022-09-29 20:28:54 +08:00
public:
DbusVfsInterface(QObject *parent = nullptr);
Q_SIGNALS:
void sigDeviceUpdate(QString);
void sigFileInfoList(FileInfoList);
public Q_SLOTS:
QString getDeviceName();
QString getMountDir();
void getFileInfoList(QString path);
void downFile(QStringList fromPathList, QString targetPath);
private:
QMap<QString, FileInfo> m_fileMap; // 缓存当前目录文件信息
};
#endif // DBUSVFSINTERFACE_H