You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.7 KiB
44 lines
1.7 KiB
11 years ago
|
/*
|
||
|
* Copyright 2010-2013 Eric Kok et al.
|
||
|
*
|
||
|
* Transdroid is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* Transdroid 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 General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
11 years ago
|
package org.transdroid.core.gui;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
11 years ago
|
import org.transdroid.daemon.Priority;
|
||
11 years ago
|
import org.transdroid.daemon.Torrent;
|
||
11 years ago
|
import org.transdroid.daemon.TorrentFile;
|
||
11 years ago
|
|
||
11 years ago
|
/**
|
||
|
* Interface to be implemented by any activity that wants containing fragments to be able to load data and execute
|
||
|
* commands against a torrent server.
|
||
|
* @author Eric Kok
|
||
|
*/
|
||
11 years ago
|
public interface TorrentTasksExecutor {
|
||
|
void resumeTorrent(Torrent torrent);
|
||
|
void pauseTorrent(Torrent torrent);
|
||
|
void startTorrent(Torrent torrent, boolean forced);
|
||
|
void stopTorrent(Torrent torrent);
|
||
|
void removeTorrent(Torrent torrent, boolean withData);
|
||
11 years ago
|
void forceRecheckTorrent(Torrent torrent);
|
||
11 years ago
|
void updateLabel(Torrent torrent, String newLabel);
|
||
|
void updateTrackers(Torrent torrent, List<String> newTrackers);
|
||
|
void updateLocation(Torrent torrent, String newLocation);
|
||
11 years ago
|
void refreshTorrentDetails(Torrent torrent);
|
||
|
void refreshTorrentFiles(Torrent torrent);
|
||
11 years ago
|
void updatePriority(Torrent torrent, List<TorrentFile> files, Priority priority);
|
||
11 years ago
|
}
|