-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.h
More file actions
27 lines (20 loc) · 685 Bytes
/
io.h
File metadata and controls
27 lines (20 loc) · 685 Bytes
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
/////////////////////////////////////////////////////////////////////////////
// Name: io.h
// Purpose: File load/save methods (header)
// Author: Jan Buchholz
// Created: 2025-11-19
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include <QString>
#include <QObject>
#include <QByteArray>
class Io {
public:
Io() = default;
~Io() = default;
QString save(QString fileName, QByteArray payload);
QString load(QString fileName, QByteArray *payload);
private:
QString const ERR_FILEREAD = QObject::tr("Error reading file.");
QString const ERR_FILEWRITE = QObject::tr("Error writing file.");
};