org.xnap.plugin.limewire
Class LimeWireChatChannel

java.lang.Object
  extended by org.xnap.chat.AbstractChannel
      extended by org.xnap.plugin.limewire.LimeWireChatChannel
All Implemented Interfaces:
Channel, ChannelInfo

public class LimeWireChatChannel
extends AbstractChannel

Implements a limewire search session.


Field Summary
 
Fields inherited from class org.xnap.chat.AbstractChannel
cs
 
Fields inherited from interface org.xnap.chat.Channel
AWAY_MESSAGE_INTERVAL
 
Constructor Summary
LimeWireChatChannel(com.limegroup.gnutella.chat.Chatter chatter)
           
 
Method Summary
 void close()
          Invoked by the ChatManager when the channel is removed.
 javax.swing.Action[] getActions()
          Returns an array of actions that can be performed on the channel.
 javax.swing.Action[] getPeerActions(Peer peer)
          Returns an array of peer specific actions.
 ChatProvider getProvider()
          Returns a reference to the chat provider.
 LimeWireServant getRemotePeer()
           
 boolean isJoined()
          Returns true, if the channel is joined.
 boolean isLocal(Peer peer)
          Returns true, if peer is the local peer.
 void sendMessage(java.lang.String message)
          Sends a message to this channel.
 
Methods inherited from class org.xnap.chat.AbstractChannel
actionMessageReceived, add, addChannelListener, errorReceived, getCommands, getIcon, getName, getPeerCount, getPeers, getPrefix, getTopic, infoReceived, joined, messageReceived, parted, peerChanged, remove, removeChannelListener, setTopic, topicChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimeWireChatChannel

public LimeWireChatChannel(com.limegroup.gnutella.chat.Chatter chatter)
Method Detail

close

public void close()
Description copied from interface: Channel
Invoked by the ChatManager when the channel is removed.

See Also:
xnap.chat.Channel#close()

getActions

public javax.swing.Action[] getActions()
Description copied from interface: Channel
Returns an array of actions that can be performed on the channel.

See Also:
xnap.chat.Channel#getActions()

getPeerActions

public javax.swing.Action[] getPeerActions(Peer peer)
Description copied from interface: Channel
Returns an array of peer specific actions.

This can be used to implement channel operations like "op".

See Also:
xnap.chat.Channel#getPeerActions(xnap.peer.Peer)

getProvider

public ChatProvider getProvider()
Description copied from interface: Channel
Returns a reference to the chat provider.

Returns:
null, if the channel has no provider; the provider, otherwise
See Also:
xnap.chat.Channel#getProvider()

getRemotePeer

public LimeWireServant getRemotePeer()

isLocal

public boolean isLocal(Peer peer)
Description copied from interface: Channel
Returns true, if peer is the local peer. XNap does not beep if messages are received from local peers.

See Also:
xnap.chat.Channel#isLocal(xnap.peer.Peer)

isJoined

public boolean isJoined()
Description copied from interface: Channel
Returns true, if the channel is joined.

See Also:
xnap.chat.Channel#isJoined()

sendMessage

public void sendMessage(java.lang.String message)
Description copied from interface: Channel
Sends a message to this channel.

See Also:
xnap.chat.Channel#sendMessage(java.lang.String)


Copyright © 2001-2005 XNap Team. All Rights Reserved.