use of com.frostwire.transfers.Transfer in project frostwire by frostwire.
the class Transfers method getSkipedFiles.
public static Set<File> getSkipedFiles() {
Set<File> set = new HashSet<>();
List<Transfer> transfers = TransferManager.instance().getTransfers();
for (Transfer t : transfers) {
if (t instanceof UIBittorrentDownload) {
set.addAll(getSkippedFiles(((UIBittorrentDownload) t).getDl()));
}
}
return set;
}
use of com.frostwire.transfers.Transfer in project frostwire by frostwire.
the class Transfers method getIncompleteFiles.
public static Set<File> getIncompleteFiles() {
Set<File> set = new HashSet<>();
List<Transfer> transfers = TransferManager.instance().getTransfers();
for (Transfer t : transfers) {
if (t instanceof UIBittorrentDownload) {
set.addAll(((UIBittorrentDownload) t).getDl().getIncompleteFiles());
}
}
return set;
}
use of com.frostwire.transfers.Transfer in project frostwire by frostwire.
the class TransferListAdapter method getMenuAdapter.
private MenuAdapter getMenuAdapter(View view) {
Object tag = view.getTag();
String title = "";
List<MenuAction> items = new ArrayList<>();
if (tag instanceof BittorrentDownload) {
title = populateBittorrentDownloadMenuActions((BittorrentDownload) tag, items);
} else if (tag instanceof Transfer) {
title = populateCloudDownloadMenuActions(tag, items);
}
return items.size() > 0 ? new MenuAdapter(contextRef.get(), title, items) : null;
}
Aggregations