All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.libtorrent4j.alerts.FileRenamedAlert Maven / Gradle / Ivy

There is a newer version: 2.1.0-35
Show newest version
package org.libtorrent4j.alerts;

import org.libtorrent4j.swig.file_renamed_alert;
import org.libtorrent4j.TorrentHandle;

/**
 * This is posted as a response to a {@link TorrentHandle#renameFile(int, String)}, if the rename
 * operation succeeds.
 *
 * @author gubatron
 * @author aldenml
 */
public final class FileRenamedAlert extends TorrentAlert {

    public FileRenamedAlert(file_renamed_alert alert) {
        super(alert);
    }

    public String newName() {
        return alert.new_name();
    }

    /**
     * Refers to the index of the file that was renamed.
     *
     *
     */
    public int index() {
        return alert.getIndex();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy