RecordControlApplication/Tool.h

26 lines
553 B
C++
Executable File

#ifndef TOOL_H
#define TOOL_H
#include "TimeSlider.h"
#include <QString>
#include <functional>
class Tool {
public:
Tool();
static QStringList getFileList(QString path);
static bool removeFile(QString path);
#ifdef Q_OS_LINUX
static QString writeCom(QString path);
#endif
static int64_t getAvailableStorage(QString mountedPath);
static double getCostTime(std::function<void(void)> callback, const char* callbackName = "");
static QList<TimeSlider::TimeSegment> calTimeSegments(QVariantMap params);
};
#endif // TOOL_H