2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef ADDTORRENTDIALOG_H
|
|
|
|
#define ADDTORRENTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "ui_addtorrentform.h"
|
|
|
|
|
|
|
|
class AddTorrentDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-11-01 12:21:32 +00:00
|
|
|
AddTorrentDialog(QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QString torrentFileName() const;
|
|
|
|
QString destinationFolder() const;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setTorrent(const QString &torrentFile);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void selectTorrent();
|
|
|
|
void selectDestination();
|
|
|
|
void enableOkButton();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui_AddTorrentFile ui;
|
|
|
|
QString destinationDirectory;
|
|
|
|
QString lastDirectory;
|
|
|
|
QString lastDestinationDirectory;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|