2022-09-29 20:28:54 +08:00
|
|
|
#ifndef DBUSVFSINTERFACE_H
|
|
|
|
#define DBUSVFSINTERFACE_H
|
|
|
|
|
2022-10-09 10:07:28 +08:00
|
|
|
#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
|
2022-10-09 10:07:28 +08:00
|
|
|
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
|