File indexing completed on 2025-02-16 10:53:00
0001 /* 0002 SPDX-FileCopyrightText: 2024 Ralf Habacker ralf.habacker @freenet.de 0003 0004 This file is part of libalkimia. 0005 0006 SPDX-License-Identifier: LGPL-2.1-or-later 0007 */ 0008 0009 #ifndef ALKONLINEQUOTEUPLOADDIALOG_H 0010 #define ALKONLINEQUOTEUPLOADDIALOG_H 0011 0012 #include <QDialog> 0013 #include <QUrl> 0014 0015 class AlkOnlineQuoteSource; 0016 0017 namespace Ui { 0018 class AlkOnlineQuoteUploadDialog; 0019 } 0020 0021 class AlkOnlineQuoteUploadDialog : public QDialog 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit AlkOnlineQuoteUploadDialog(const AlkOnlineQuoteSource &source, bool autoGenerate = false, QWidget *parent = nullptr); 0027 ~AlkOnlineQuoteUploadDialog(); 0028 0029 static bool isSupported(); 0030 0031 protected: 0032 bool compressFile(const QString &outFile, const QString &inFile); 0033 0034 private Q_SLOTS: 0035 void slotCreatePackage(); 0036 void slotCopyToClipboard(); 0037 void slotEnterStoreAndClose(); 0038 0039 private: 0040 Ui::AlkOnlineQuoteUploadDialog *ui; 0041 const AlkOnlineQuoteSource &m_source; 0042 QUrl m_file; 0043 QUrl m_storePackageEditUrl; 0044 }; 0045 0046 #endif // ALKONLINEQUOTEUPLOADDIALOG_H