com.aelitis.azureus.plugins.net.buddy
Class BuddyPluginBeta.ChatInstance

java.lang.Object
  extended by com.aelitis.azureus.plugins.net.buddy.BuddyPluginBeta.ChatInstance
Enclosing class:
BuddyPluginBeta

public class BuddyPluginBeta.ChatInstance
extends java.lang.Object


Field Summary
static java.lang.String OPT_INVISIBLE
           
 
Method Summary
 void addListener(BuddyPluginBeta.ChatListener listener)
           
protected  void addReference()
           
 boolean amManager()
           
 java.util.Map<java.lang.String,java.lang.Object> chatRequested(java.util.Map<java.lang.String,java.lang.Object> message_map)
           
 void destroy()
           
 java.lang.String export()
           
 void fixupSeenState(java.util.List<BuddyPluginBeta.ChatMessage> msgs)
           
 boolean getAutoMute()
           
 BuddyPluginBeta.ChatInstance getClone()
           
 java.lang.String getDefaultNickname()
           
 boolean getDisableNewMsgIndications()
           
 boolean getEnableNotificationsPost()
           
 int getEstimatedNodes()
           
 BuddyPluginBeta.ChatMessage[] getHistory()
           
 int getIncomingSyncState()
          -ve -> state unknown 0 - synced +ve - number of messages pending
 java.lang.String getInstanceNickname()
           
 boolean getKeepAlive()
           
 java.lang.String getKey()
           
 BuddyPluginBeta.ChatMessage getLastMessageRequiringAttention()
           
 boolean getLogMessages()
           
 BuddyPluginBeta.ChatInstance getManagedChannel()
           
 int getMessageCount(boolean not_mine)
           
 boolean getMessageOutstanding()
           
 java.util.List<BuddyPluginBeta.ChatMessage> getMessages()
           
 java.net.InetSocketAddress getMyAddress()
           
 java.lang.String getName()
           
 java.lang.String getName(boolean abbreviated)
           
 java.lang.String getNetAndKey()
           
 java.lang.String getNetwork()
           
 java.lang.String getNickname(boolean use_default)
           
 int getOutgoingSyncState()
          -ve -> state unknown 0 - synced +ve - number of messages pending
 BuddyPluginBeta.ChatParticipant getParticipant(java.lang.String nick)
           
 BuddyPluginBeta.ChatParticipant[] getParticipants()
           
 byte[] getPublicKey()
           
 BuddyPluginBeta.ChatInstance getReadOnlyChannel()
           
 boolean getSaveMessages()
           
 java.lang.String getShortName()
           
 java.lang.String getStatus()
           
 java.util.List<BuddyPluginBeta.ChatMessage> getUnseenMessages()
           
 java.lang.String getURL()
           
 java.lang.Object getUserData(java.lang.Object key)
           
 void handleDrop(java.lang.String str)
           
 boolean hasUnseenMessageWithNick()
           
 boolean isAnonymous()
           
 boolean isAutoNotify()
           
 boolean isAvailable()
           
 boolean isDestroyed()
           
 boolean isFavourite()
           
 boolean isInteresting()
           
 boolean isInvisible()
           
 boolean isManaged()
           
 boolean isManagedFor(java.lang.String network, java.lang.String key)
           
 boolean isOldOutstandingMessage(BuddyPluginBeta.ChatMessage msg)
           
 boolean isPrivateChat()
           
 boolean isReadOnly()
           
 boolean isReadOnlyFor(java.lang.String network, java.lang.String key)
           
 boolean isSharedNickname()
           
 boolean isStatistics()
           
 void messageReceived(java.util.Map<java.lang.String,java.lang.Object> message_map)
           
 void remove()
           
 void removeListener(BuddyPluginBeta.ChatListener listener)
           
 void sendControlMessage(java.lang.String cmd)
           
 void sendLocalMessage(java.lang.String message, java.lang.String[] args, int message_type)
           
 void sendMessage(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> options)
           
 void sendMessage(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> flags, java.util.Map<java.lang.String,java.lang.Object> options)
           
 void sendRawMessage(byte[] message, java.util.Map<java.lang.String,java.lang.Object> flags, java.util.Map<java.lang.String,java.lang.Object> options)
           
 void setAutoMute(boolean b)
           
 void setAutoNotify(boolean b)
           
 void setDisableNewMsgIndications(boolean b)
           
 void setEnableNotificationsPost(boolean b)
           
 void setFavourite(boolean b)
           
 void setInstanceNickname(java.lang.String _nick)
           
 void setInteresting(boolean b)
           
 void setKeepAlive(boolean b)
           
 void setLogMessages(boolean b)
           
 void setMessageOutstanding(BuddyPluginBeta.ChatMessage message)
           
 void setSaveMessages(boolean b)
           
 void setSharedNickname(boolean _shared)
           
 void setUserData(java.lang.Object key, java.lang.Object value)
           
protected  void updated(BuddyPluginBeta.ChatParticipant p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPT_INVISIBLE

public static final java.lang.String OPT_INVISIBLE
See Also:
Constant Field Values
Method Detail

getClone

public BuddyPluginBeta.ChatInstance getClone()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

addReference

protected void addReference()

getName

public java.lang.String getName()

getName

public java.lang.String getName(boolean abbreviated)

getShortName

public java.lang.String getShortName()

getNetwork

public java.lang.String getNetwork()

getKey

public java.lang.String getKey()

isFavourite

public boolean isFavourite()

setAutoNotify

public void setAutoNotify(boolean b)

isAutoNotify

public boolean isAutoNotify()

isInteresting

public boolean isInteresting()

setInteresting

public void setInteresting(boolean b)

isStatistics

public boolean isStatistics()

setFavourite

public void setFavourite(boolean b)

getSaveMessages

public boolean getSaveMessages()

setSaveMessages

public void setSaveMessages(boolean b)

getLogMessages

public boolean getLogMessages()

setLogMessages

public void setLogMessages(boolean b)

getAutoMute

public boolean getAutoMute()

setAutoMute

public void setAutoMute(boolean b)

getDisableNewMsgIndications

public boolean getDisableNewMsgIndications()

setDisableNewMsgIndications

public void setDisableNewMsgIndications(boolean b)

getEnableNotificationsPost

public boolean getEnableNotificationsPost()

setEnableNotificationsPost

public void setEnableNotificationsPost(boolean b)

isManaged

public boolean isManaged()

amManager

public boolean amManager()

isManagedFor

public boolean isManagedFor(java.lang.String network,
                            java.lang.String key)

getManagedChannel

public BuddyPluginBeta.ChatInstance getManagedChannel()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

isReadOnlyFor

public boolean isReadOnlyFor(java.lang.String network,
                             java.lang.String key)

getReadOnlyChannel

public BuddyPluginBeta.ChatInstance getReadOnlyChannel()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

isReadOnly

public boolean isReadOnly()

getURL

public java.lang.String getURL()

getPublicKey

public byte[] getPublicKey()

isInvisible

public boolean isInvisible()

isPrivateChat

public boolean isPrivateChat()

isAnonymous

public boolean isAnonymous()

getNetAndKey

public java.lang.String getNetAndKey()

setKeepAlive

public void setKeepAlive(boolean b)

getKeepAlive

public boolean getKeepAlive()

getDefaultNickname

public java.lang.String getDefaultNickname()

isSharedNickname

public boolean isSharedNickname()

setSharedNickname

public void setSharedNickname(boolean _shared)

getInstanceNickname

public java.lang.String getInstanceNickname()

setInstanceNickname

public void setInstanceNickname(java.lang.String _nick)

getNickname

public java.lang.String getNickname(boolean use_default)

isAvailable

public boolean isAvailable()

getHistory

public BuddyPluginBeta.ChatMessage[] getHistory()

handleDrop

public void handleDrop(java.lang.String str)

getEstimatedNodes

public int getEstimatedNodes()

getMessageCount

public int getMessageCount(boolean not_mine)

getIncomingSyncState

public int getIncomingSyncState()
-ve -> state unknown 0 - synced +ve - number of messages pending

Returns:

getOutgoingSyncState

public int getOutgoingSyncState()
-ve -> state unknown 0 - synced +ve - number of messages pending

Returns:

getStatus

public java.lang.String getStatus()

messageReceived

public void messageReceived(java.util.Map<java.lang.String,java.lang.Object> message_map)
                     throws IPCException
Throws:
IPCException

chatRequested

public java.util.Map<java.lang.String,java.lang.Object> chatRequested(java.util.Map<java.lang.String,java.lang.Object> message_map)
                                                               throws IPCException
Throws:
IPCException

sendMessage

public void sendMessage(java.lang.String message,
                        java.util.Map<java.lang.String,java.lang.Object> options)

sendMessage

public void sendMessage(java.lang.String message,
                        java.util.Map<java.lang.String,java.lang.Object> flags,
                        java.util.Map<java.lang.String,java.lang.Object> options)

sendRawMessage

public void sendRawMessage(byte[] message,
                           java.util.Map<java.lang.String,java.lang.Object> flags,
                           java.util.Map<java.lang.String,java.lang.Object> options)

sendLocalMessage

public void sendLocalMessage(java.lang.String message,
                             java.lang.String[] args,
                             int message_type)

sendControlMessage

public void sendControlMessage(java.lang.String cmd)

export

public java.lang.String export()

getMessages

public java.util.List<BuddyPluginBeta.ChatMessage> getMessages()

hasUnseenMessageWithNick

public boolean hasUnseenMessageWithNick()

getUnseenMessages

public java.util.List<BuddyPluginBeta.ChatMessage> getUnseenMessages()

getParticipants

public BuddyPluginBeta.ChatParticipant[] getParticipants()

getParticipant

public BuddyPluginBeta.ChatParticipant getParticipant(java.lang.String nick)

updated

protected void updated(BuddyPluginBeta.ChatParticipant p)

getLastMessageRequiringAttention

public BuddyPluginBeta.ChatMessage getLastMessageRequiringAttention()

setUserData

public void setUserData(java.lang.Object key,
                        java.lang.Object value)

getUserData

public java.lang.Object getUserData(java.lang.Object key)

getMessageOutstanding

public boolean getMessageOutstanding()

setMessageOutstanding

public void setMessageOutstanding(BuddyPluginBeta.ChatMessage message)

isOldOutstandingMessage

public boolean isOldOutstandingMessage(BuddyPluginBeta.ChatMessage msg)

fixupSeenState

public void fixupSeenState(java.util.List<BuddyPluginBeta.ChatMessage> msgs)

getMyAddress

public java.net.InetSocketAddress getMyAddress()

addListener

public void addListener(BuddyPluginBeta.ChatListener listener)

removeListener

public void removeListener(BuddyPluginBeta.ChatListener listener)

remove

public void remove()

isDestroyed

public boolean isDestroyed()

destroy

public void destroy()