blob: bb531b5dd81294f1dd2c2b2cc2e6001acb252efa (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef _EXPORTOPERATION_H_
#define _EXPORTOPERATION_H_
#include "LogFile.h"
#include <QObject>
#include <vector>
#include <memory>
// ExportOperation is a small container class for the data necessary
// to export log files. The purpose of ExportOperation is to ensure the
// lifetime of that data--in particular, the list of log files.
class ExportOperation : public QObject
{
Q_OBJECT
std::vector<std::shared_ptr<LogFile>> m_logs;
const QString m_szDir;
const LogFile::ExportType m_type;
public:
ExportOperation(const std::vector<std::shared_ptr<LogFile>> & logs, LogFile::ExportType type, QString szDir, QObject * parent = nullptr);
void start();
};
#endif
|