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