Lab1
Loading...
Searching...
No Matches
export_service.h
1#pragma once
2#include <QString>
3#include "note.h"
4
12public:
16 static bool exportToJson(const Note& note, const QString& filePath);
17
21 static bool exportToPdf(const Note& note, const QString& filePath);
22
27 static std::optional<Note> importFromJson(const QString& filePath);
28};
Сервіс, відповідальний виключно за експорт даних у зовнішні формати.
Definition export_service.h:11
static bool exportToPdf(const Note &note, const QString &filePath)
Експортує нотатку в PDF документ з форматуванням.
Definition export_service.cpp:42
static std::optional< Note > importFromJson(const QString &filePath)
Імпортує нотатку з JSON файлу.
Definition export_service.cpp:83
static bool exportToJson(const Note &note, const QString &filePath)
Експортує нотатку в JSON файл.
Definition export_service.cpp:12
Модель даних для однієї нотатки.
Definition note.h:19