1 /* 2 * This file Copyright (C) 2009-2015 Mnemosyne LLC 3 * 4 * It may be used under the GNU GPL versions 2 or 3 5 * or any future license endorsed by Mnemosyne LLC. 6 * 7 */ 8 9 #pragma once 10 11 #include "BaseDialog.h" 12 #include "Typedefs.h" 13 14 #include "ui_RelocateDialog.h" 15 16 class Session; 17 class TorrentModel; 18 19 class RelocateDialog : public BaseDialog 20 { 21 Q_OBJECT 22 23 public: 24 RelocateDialog(Session&, TorrentModel const&, torrent_ids_t const& ids, QWidget* parent = nullptr); 25 ~RelocateDialog()26 virtual ~RelocateDialog() 27 { 28 } 29 30 private: 31 QString newLocation() const; 32 33 private slots: 34 void onSetLocation(); 35 void onMoveToggled(bool); 36 37 private: 38 Session& mySession; 39 torrent_ids_t const myIds; 40 41 Ui::RelocateDialog ui; 42 43 static bool myMoveFlag; 44 }; 45