1/* 2 * This file Copyright (C) Mnemosyne LLC 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 6 * as published by the Free Software Foundation. 7 * 8 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 9 * 10 * $Id: relocate.h 11092 2010-08-01 20:36:13Z charles $ 11 */ 12 13#ifndef RELOCATE_DIALOG_H 14#define RELOCATE_DIALOG_H 15 16#include <QDialog> 17#include <QSet> 18#include <QString> 19 20class QPushButton; 21class QRadioButton; 22class Session; 23class Torrent; 24class TorrentModel; 25 26class RelocateDialog: public QDialog 27{ 28 Q_OBJECT 29 30 private: 31 QString myPath; 32 static bool myMoveFlag; 33 34 private: 35 Session & mySession; 36 TorrentModel& myModel; 37 QSet<int> myIds; 38 QPushButton * myDirButton; 39 QRadioButton * myMoveRadio; 40 41 private slots: 42 void onFileSelected( const QString& path ); 43 void onDirButtonClicked( ); 44 void onSetLocation( ); 45 void onMoveToggled( bool ); 46 47 public: 48 RelocateDialog( Session&, TorrentModel&, const QSet<int>& ids, QWidget * parent = 0 ); 49 ~RelocateDialog( ) { } 50}; 51 52#endif 53