File indexing completed on 2025-01-19 03:52:46
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2017-06-27 0007 * Description : a tool to export items by email. 0008 * 0009 * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_MAIL_WIZARD_H 0016 #define DIGIKAM_MAIL_WIZARD_H 0017 0018 // Qt includes 0019 0020 #include <QList> 0021 #include <QUrl> 0022 0023 // Local includes 0024 0025 #include "dwizarddlg.h" 0026 #include "dinfointerface.h" 0027 #include "mailsettings.h" 0028 0029 using namespace Digikam; 0030 0031 namespace DigikamGenericSendByMailPlugin 0032 { 0033 0034 class MailWizard : public DWizardDlg 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 0040 explicit MailWizard(QWidget* const parent, DInfoInterface* const iface = nullptr); 0041 ~MailWizard() override; 0042 0043 bool validateCurrentPage() override; 0044 int nextId() const override; 0045 0046 DInfoInterface* iface() const; 0047 MailSettings* settings() const; 0048 0049 void setItemsList(const QList<QUrl>& urls); 0050 0051 private: 0052 0053 class Private; 0054 Private* const d; 0055 }; 0056 0057 } // namespace DigikamGenericSendByMailPlugin 0058 0059 #endif // DIGIKAM_MAIL_WIZARD_H