Search in sources :

Example 6 with PaymentOptions

use of com.frostwire.bittorrent.PaymentOptions in project frostwire by frostwire.

the class CreateTorrentDialog method addAvailablePaymentOptions.

private void addAvailablePaymentOptions(final Map<String, Entry> entryMap) {
    if (paymentOptionsPanel.hasPaymentOptions()) {
        PaymentOptions paymentOptions = paymentOptionsPanel.getPaymentOptions();
        if (paymentOptions != null) {
            final Map<String, Entry> info = entryMap.get("info").dictionary();
            info.put("paymentOptions", Entry.fromMap(paymentOptions.asMap()));
            entryMap.put("info", Entry.fromMap(info));
        }
    }
}
Also used : Entry(com.frostwire.jlibtorrent.Entry) PaymentOptions(com.frostwire.bittorrent.PaymentOptions)

Aggregations

PaymentOptions (com.frostwire.bittorrent.PaymentOptions)6 CancelMenuAction (com.frostwire.android.gui.adapters.menu.CancelMenuAction)2 CopyToClipboardMenuAction (com.frostwire.android.gui.adapters.menu.CopyToClipboardMenuAction)2 PauseDownloadMenuAction (com.frostwire.android.gui.adapters.menu.PauseDownloadMenuAction)2 ResumeDownloadMenuAction (com.frostwire.android.gui.adapters.menu.ResumeDownloadMenuAction)2 SeedAction (com.frostwire.android.gui.adapters.menu.SeedAction)2 SendBitcoinTipAction (com.frostwire.android.gui.adapters.menu.SendBitcoinTipAction)2 SendFiatTipAction (com.frostwire.android.gui.adapters.menu.SendFiatTipAction)2 Activity (android.app.Activity)1 MenuItem (android.view.MenuItem)1 OpenMenuAction (com.frostwire.android.gui.adapters.menu.OpenMenuAction)1 StopSeedingAction (com.frostwire.android.gui.adapters.menu.StopSeedingAction)1 TransferDetailsMenuAction (com.frostwire.android.gui.adapters.menu.TransferDetailsMenuAction)1 UIBittorrentDownload (com.frostwire.android.gui.transfers.UIBittorrentDownload)1 BTInfoAdditionalMetadataHolder (com.frostwire.bittorrent.BTInfoAdditionalMetadataHolder)1 Entry (com.frostwire.jlibtorrent.Entry)1 TransferItem (com.frostwire.transfers.TransferItem)1 NameHolder (com.limegroup.gnutella.gui.tables.NameHolder)1 SizeHolder (com.limegroup.gnutella.gui.tables.SizeHolder)1 IOException (java.io.IOException)1