See on Tõrva Gümnaasiumi vana veebilehe arhiiv. Uus veebileht: https://torva.edu.ee/

DCCListener (PJIRC project)

Lisamaterjalide loend

Algne fail: vana_veeb/pjirc/doc/javadoc/irc/dcc/DCCListener.html.

========== START OF NAVBAR ==========
=========== END OF NAVBAR ===========
======== START OF CLASS DATA ========

irc.dcc
Interface DCCListener

All Known Implementing Classes:
IRCApplication

public interface DCCListener

DCCListener, provided to catch dcc events triggered by the CTCP filter.


Method Summary
 void DCCChatCreated(DCCChat chat, java.lang.Boolean local)
          A new DCCChat has been created.
 void DCCChatRemoved(DCCChat chat)
          A DCCChat has been removed.
 boolean DCCChatRequest(java.lang.String nick)
          A new DCCChat is requested.
 void DCCFileCreated(DCCFile file)
          A DCCFile has been created.
 void DCCFileRemoved(DCCFile file)
          A DCCFile has been removed.
 java.io.File DCCFileRequest(java.lang.String nick, java.lang.String fileName, java.lang.Integer size)
          A new DCC reception is requested.
 

Method Detail

DCCFileRequest

public java.io.File DCCFileRequest(java.lang.String nick,
                                   java.lang.String fileName,
                                   java.lang.Integer size)
A new DCC reception is requested.

Parameters:
nick - the source nick.
fileName - the file to transfert.
size - the file size.
Returns:
the local destination file.


DCCFileCreated

public void DCCFileCreated(DCCFile file)
A DCCFile has been created.

Parameters:
file - the DCCFile.


DCCFileRemoved

public void DCCFileRemoved(DCCFile file)
A DCCFile has been removed.

Parameters:
file - the DCCFile.


DCCChatRequest

public boolean DCCChatRequest(java.lang.String nick)
A new DCCChat is requested.

Parameters:
nick - the requesting nick.
Returns:
true if the request is accepted, false otherwise.


DCCChatCreated

public void DCCChatCreated(DCCChat chat,
                           java.lang.Boolean local)
A new DCCChat has been created.

Parameters:
chat - the DCCChat.
local - true if the chat has been created following a local user action, and not following a remote request.


DCCChatRemoved

public void DCCChatRemoved(DCCChat chat)
A DCCChat has been removed.

Parameters:
chat - the DCCChat.