new AEThread2( "torrentAdder", true )
{
public void
run()
{
PluginInterface pi = plugin.getPluginInterface();
String msg = pi.getUtilities().getLocaleUtilities().getLocalisedMessageText(
"azbuddy.addtorrent.msg",
new String[]{ from_buddy.getName(), torrent.getName() });
long res = pi.getUIManager().showMessageBox(
"azbuddy.addtorrent.title",
"!" + msg + "!",
UIManagerEvent.MT_YES | UIManagerEvent.MT_NO );
if ( res == UIManagerEvent.MT_YES ){
pi.getUIManager().openTorrent( torrent );
}
}
}.start();
reply.put( "type", new Long( RT_AZ2_REPLY_SEND_TORRENT ));