File indexing completed on 2024-12-29 04:47:03

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "printstyle.h"
0010 
0011 namespace KAddressBookGrantlee
0012 {
0013 class GrantleePrint;
0014 }
0015 
0016 namespace KABPrinting
0017 {
0018 class PrintProgress;
0019 
0020 class GrantleePrintStyle : public PrintStyle
0021 {
0022     Q_OBJECT
0023 public:
0024     explicit GrantleePrintStyle(const QString &themePath, PrintingWizard *parent);
0025     ~GrantleePrintStyle() override;
0026 
0027     void print(const KContacts::Addressee::List &, PrintProgress *) override;
0028 
0029 private:
0030     const QString m_themePath;
0031 };
0032 
0033 class GrantleeStyleFactory : public PrintStyleFactory
0034 {
0035 public:
0036     explicit GrantleeStyleFactory(const QString &name, const QString &themePath, PrintingWizard *parent);
0037 
0038     PrintStyle *create() const override;
0039     QString description() const override;
0040 
0041 private:
0042     QString mThemePath;
0043     QString mName;
0044 };
0045 }