kde-extraapps/kget/transfer-plugins/torrent/dlgtorrent.h
Ivailo Monev a1779579e0 kget: use QSpinBox for torrent settings of integer type
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-24 17:10:52 +02:00

53 lines
1.5 KiB
C++

/* This file is part of the KDE project
Copyright (C) 2022 Ivailo Monev <xakepa10@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2, as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef DLGTORRENT_H
#define DLGTORRENT_H
#include "ui_dlgtorrent.h"
#include <KCModule>
#include <KDialog>
#include <libtorrent/settings_pack.hpp>
class DlgTorrentSettings : public KCModule
{
Q_OBJECT
// KCModule reimplementations
public:
explicit DlgTorrentSettings(QWidget *parent = 0, const QVariantList &args = QVariantList());
~DlgTorrentSettings();
public Q_SLOTS:
void save() final;
void load() final;
void defaults() final;
private Q_SLOTS:
void slotItemChanged(QTableWidgetItem* tablewidget);
void slotSpinBoxChanged(const int value);
private:
void loadSettings(const lt::settings_pack &ltsettings);
Ui::DlgTorrent m_ui;
};
#endif // DLGTORRENT_H