本文整理汇总了Java中org.jibble.pircbot.DccFileTransfer类的典型用法代码示例。如果您正苦于以下问题:Java DccFileTransfer类的具体用法?Java DccFileTransfer怎么用?Java DccFileTransfer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DccFileTransfer类属于org.jibble.pircbot包,在下文中一共展示了DccFileTransfer类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onFileTransferFinished
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
@Override
protected void onFileTransferFinished(final DccFileTransfer transfer,
final Exception e) {
for (final Module m : enabledModules.values()) {
if (m.onFileTransferFinished(transfer, e)) {
break;
}
}
}
示例2: onIncomingFileTransfer
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
@Override
protected void onIncomingFileTransfer(final DccFileTransfer transfer) {
for (final Module m : enabledModules.values()) {
if (m.onIncomingFileTransfer(transfer)) {
break;
}
}
}
示例3: onIncomingFileTransfer
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
public void onIncomingFileTransfer(DccFileTransfer transfer) {
int choix =
JOptionPane.showConfirmDialog(null, transfer.getNick() + " veux vous envoyer " + transfer.getFile() + ", voulez vous accepter?", transfer.getNick()
+ " - DCC transfer", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
if (choix == JOptionPane.OK_OPTION) {
File dir = new File("Download");
if (!dir.exists() && !dir.isDirectory()) {
dir.mkdir();
}
transfer.receive(new File("Download" + File.separator + transfer.getFile().getName()), true);
DarkIRC.currentTransfer = transfer;
} else {
transfer.close();
}
}
示例4: onFileTransferFinished
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
public void onFileTransferFinished(DccFileTransfer transfer, Exception e) {
if (e != null) {
System.out.println(e.getMessage());
JOptionPane.showMessageDialog(null, transfer.getFile() + " n'a pas put etre téléchargé car: " + e.getMessage(), "Erreur, Echec du téléchargement", JOptionPane.ERROR_MESSAGE);
} else {
JOptionPane.showMessageDialog(null, transfer.getFile().getName() + " à été téléchargé avec succes", "Téléchargement terminé", JOptionPane.PLAIN_MESSAGE);
}
}
示例5: onFileTransferFinished
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
public boolean onFileTransferFinished(final DccFileTransfer transfer,
final Exception e) {
return false;
}
示例6: onIncomingFileTransfer
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
public boolean onIncomingFileTransfer(final DccFileTransfer transfer) {
return false;
}
示例7: onIncomingFileTransfer
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
public void onIncomingFileTransfer(DccFileTransfer transfer) {
}
示例8: onFileTransferFinished
import org.jibble.pircbot.DccFileTransfer; //导入依赖的package包/类
public void onFileTransferFinished(DccFileTransfer transfer, Exception e) {
}