File indexing completed on 2024-05-19 05:08:12
0001 /* 0002 SPDX-FileCopyrightText: 2020 Thomas Baumgart <tbaumgart@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef TEMPLATEWRITER_H 0007 #define TEMPLATEWRITER_H 0008 0009 #include "kmm_templates_export.h" 0010 0011 // ---------------------------------------------------------------------------- 0012 // QT Includes 0013 0014 #include <QObject> 0015 0016 // ---------------------------------------------------------------------------- 0017 // KDE Includes 0018 0019 // ---------------------------------------------------------------------------- 0020 // Project Includes 0021 0022 class MyMoneyTemplate; 0023 0024 /** 0025 * @author Thomas Baumgart 0026 */ 0027 0028 class TemplateWriterPrivate; 0029 class KMM_TEMPLATES_EXPORT TemplateWriter : public QObject 0030 { 0031 Q_OBJECT 0032 Q_DISABLE_COPY(TemplateWriter) 0033 Q_DECLARE_PRIVATE(TemplateWriter) 0034 0035 public: 0036 explicit TemplateWriter(QWidget* parent = nullptr); 0037 ~TemplateWriter(); 0038 0039 bool exportTemplate(const MyMoneyTemplate& tmpl, const QUrl &url); 0040 QString errorMessage() const; 0041 0042 private: 0043 TemplateWriterPrivate * const d_ptr; 0044 }; 0045 0046 #endif