mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
53 lines
891 B
C++
53 lines
891 B
C++
/*
|
|
* This file Copyright (C) 2009-2014 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef MAKE_DIALOG_H
|
|
#define MAKE_DIALOG_H
|
|
|
|
#include <memory>
|
|
|
|
#include <QDialog>
|
|
|
|
#include "ui_make-dialog.h"
|
|
|
|
class QAbstractButton;
|
|
|
|
class Session;
|
|
|
|
extern "C"
|
|
{
|
|
struct tr_metainfo_builder;
|
|
}
|
|
|
|
class MakeDialog: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
void onSourceChanged ();
|
|
void makeTorrent ();
|
|
|
|
private:
|
|
QString getSource () const;
|
|
|
|
private:
|
|
Session& mySession;
|
|
Ui::MakeDialog ui;
|
|
std::unique_ptr<tr_metainfo_builder, void(*)(tr_metainfo_builder*)> myBuilder;
|
|
|
|
protected:
|
|
virtual void dragEnterEvent (QDragEnterEvent *);
|
|
virtual void dropEvent (QDropEvent *);
|
|
|
|
public:
|
|
MakeDialog (Session&, QWidget * parent = 0);
|
|
virtual ~MakeDialog ();
|
|
};
|
|
|
|
#endif
|