LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ExportManager.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Error.hpp"
4#include "Result.hpp"
5
6#include <QAbstractItemModel>
7#include <QString>
8#include <vector>
9
10namespace ui::qt::ExportManager {
11
24util::Result<void, error::Error> ToCsv(const QAbstractItemModel& model,
25 const std::vector<int>& rows,
26 const QString& path);
27
39util::Result<void, error::Error> ToJson(const QAbstractItemModel& model,
40 const std::vector<int>& rows,
41 const QString& path);
42
55util::Result<void, error::Error> ToXml(const QAbstractItemModel& model,
56 const std::vector<int>& rows,
57 const QString& path);
58
59} // namespace ui::qt::ExportManager
Error handling utilities.
Definition Result.hpp:15
Definition ExportManager.cpp:14
util::Result< void, error::Error > ToXml(const QAbstractItemModel &model, const std::vector< int > &rows, const QString &path)
Export the given view rows to an XML file.
Definition ExportManager.cpp:152
util::Result< void, error::Error > ToJson(const QAbstractItemModel &model, const std::vector< int > &rows, const QString &path)
Export the given view rows to a JSON file.
Definition ExportManager.cpp:103
util::Result< void, error::Error > ToCsv(const QAbstractItemModel &model, const std::vector< int > &rows, const QString &path)
Export the given view rows to a CSV file.
Definition ExportManager.cpp:45