File indexing completed on 2024-04-14 04:52:18

0001 /* This file is part of the KDE project
0002 
0003    Copyright (C) 2008 Lukas Appelhans <l.appelhans@gmx.de>
0004    Copyright (C) 2009 Matthias Fuchs <mat69@gmx.net>
0005 
0006    This program is free software; you can redistribute it and/or
0007    modify it under the terms of the GNU General Public
0008    License as published by the Free Software Foundation; either
0009    version 2 of the License, or (at your option) any later version.
0010 */
0011 
0012 #ifndef TRANSFERSETTINGSDIALOG_H
0013 #define TRANSFERSETTINGSDIALOG_H
0014 
0015 #include "../core/basedialog.h"
0016 #include "ui_transfersettingsdialog.h"
0017 
0018 class FileModel;
0019 class QSortFilterProxyModel;
0020 class TransferHandler;
0021 
0022 class TransferSettingsDialog : public KGetSaveSizeDialog
0023 {
0024     Q_OBJECT
0025 public:
0026     TransferSettingsDialog(QWidget *parent, TransferHandler *transfer);
0027     ~TransferSettingsDialog() override;
0028 
0029     QSize sizeHint() const override;
0030 
0031 private Q_SLOTS:
0032     void updateCapabilities();
0033     void slotMirrors();
0034     void slotRename();
0035     void slotVerification();
0036     void slotSignature();
0037     void slotSelectionChanged();
0038     void slotFinished();
0039     void save();
0040 
0041 private:
0042     TransferHandler *m_transfer = nullptr;
0043     FileModel *m_model = nullptr;
0044     QSortFilterProxyModel *m_proxy = nullptr;
0045     Ui::TransferSettingsDialog ui;
0046 };
0047 
0048 #endif