com.aelitis.azureus.plugins.net.buddy
Class BuddyPluginBeta.ChatInstance
java.lang.Object
com.aelitis.azureus.plugins.net.buddy.BuddyPluginBeta.ChatInstance
- Enclosing class:
- BuddyPluginBeta
public class BuddyPluginBeta.ChatInstance
- extends Object
Method Summary |
void |
addListener(BuddyPluginBeta.ChatListener listener)
|
protected void |
addReference()
|
boolean |
amManager()
|
Map<String,Object> |
chatRequested(Map<String,Object> message_map)
|
void |
destroy()
|
String |
export()
|
void |
fixupSeenState(List<BuddyPluginBeta.ChatMessage> msgs)
|
boolean |
getAutoMute()
|
BuddyPluginBeta.ChatInstance |
getClone()
|
String |
getDefaultNickname()
|
boolean |
getDisableNewMsgIndications()
|
boolean |
getEnableNotificationsPost()
|
int |
getEstimatedNodes()
|
BuddyPluginBeta.ChatMessage[] |
getHistory()
|
int |
getIncomingSyncState()
-ve -> state unknown
0 - synced
+ve - number of messages pending |
String |
getInstanceNickname()
|
boolean |
getKeepAlive()
|
String |
getKey()
|
BuddyPluginBeta.ChatMessage |
getLastMessageRequiringAttention()
|
boolean |
getLogMessages()
|
BuddyPluginBeta.ChatInstance |
getManagedChannel()
|
int |
getMessageCount(boolean not_mine)
|
boolean |
getMessageOutstanding()
|
List<BuddyPluginBeta.ChatMessage> |
getMessages()
|
InetSocketAddress |
getMyAddress()
|
String |
getName()
|
String |
getName(boolean abbreviated)
|
String |
getNetAndKey()
|
String |
getNetwork()
|
String |
getNickname(boolean use_default)
|
int |
getOutgoingSyncState()
-ve -> state unknown
0 - synced
+ve - number of messages pending |
BuddyPluginBeta.ChatParticipant |
getParticipant(String nick)
|
BuddyPluginBeta.ChatParticipant[] |
getParticipants()
|
byte[] |
getPublicKey()
|
BuddyPluginBeta.ChatInstance |
getReadOnlyChannel()
|
boolean |
getSaveMessages()
|
String |
getShortName()
|
String |
getStatus()
|
List<BuddyPluginBeta.ChatMessage> |
getUnseenMessages()
|
String |
getURL()
|
Object |
getUserData(Object key)
|
void |
handleDrop(String str)
|
boolean |
hasUnseenMessageWithNick()
|
boolean |
isAnonymous()
|
boolean |
isAutoNotify()
|
boolean |
isAvailable()
|
boolean |
isDestroyed()
|
boolean |
isFavourite()
|
boolean |
isInteresting()
|
boolean |
isInvisible()
|
boolean |
isManaged()
|
boolean |
isManagedFor(String network,
String key)
|
boolean |
isOldOutstandingMessage(BuddyPluginBeta.ChatMessage msg)
|
boolean |
isPrivateChat()
|
boolean |
isReadOnly()
|
boolean |
isReadOnlyFor(String network,
String key)
|
boolean |
isSharedNickname()
|
boolean |
isStatistics()
|
void |
messageReceived(Map<String,Object> message_map)
|
void |
remove()
|
void |
removeListener(BuddyPluginBeta.ChatListener listener)
|
void |
sendControlMessage(String cmd)
|
void |
sendLocalMessage(String message,
String[] args,
int message_type)
|
void |
sendMessage(String message,
Map<String,Object> options)
|
void |
sendMessage(String message,
Map<String,Object> flags,
Map<String,Object> options)
|
void |
sendRawMessage(byte[] message,
Map<String,Object> flags,
Map<String,Object> options)
|
void |
setAutoMute(boolean b)
|
void |
setAutoNotify(boolean b)
|
void |
setDisableNewMsgIndications(boolean b)
|
void |
setEnableNotificationsPost(boolean b)
|
void |
setFavourite(boolean b)
|
void |
setInstanceNickname(String _nick)
|
void |
setKeepAlive(boolean b)
|
void |
setLogMessages(boolean b)
|
void |
setMessageOutstanding(BuddyPluginBeta.ChatMessage message)
|
void |
setSaveMessages(boolean b)
|
void |
setSharedNickname(boolean _shared)
|
void |
setUserData(Object key,
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 |
OPT_INVISIBLE
public static final String OPT_INVISIBLE
- See Also:
- Constant Field Values
getClone
public BuddyPluginBeta.ChatInstance getClone()
throws Exception
- Throws:
Exception
addReference
protected void addReference()
getName
public String getName()
getName
public String getName(boolean abbreviated)
getShortName
public String getShortName()
getNetwork
public String getNetwork()
getKey
public String getKey()
isFavourite
public boolean isFavourite()
setAutoNotify
public void setAutoNotify(boolean b)
isAutoNotify
public boolean isAutoNotify()
isInteresting
public boolean isInteresting()
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(String network,
String key)
getManagedChannel
public BuddyPluginBeta.ChatInstance getManagedChannel()
throws Exception
- Throws:
Exception
isReadOnlyFor
public boolean isReadOnlyFor(String network,
String key)
getReadOnlyChannel
public BuddyPluginBeta.ChatInstance getReadOnlyChannel()
throws Exception
- Throws:
Exception
isReadOnly
public boolean isReadOnly()
getURL
public String getURL()
getPublicKey
public byte[] getPublicKey()
isInvisible
public boolean isInvisible()
isPrivateChat
public boolean isPrivateChat()
isAnonymous
public boolean isAnonymous()
getNetAndKey
public String getNetAndKey()
setKeepAlive
public void setKeepAlive(boolean b)
getKeepAlive
public boolean getKeepAlive()
getDefaultNickname
public String getDefaultNickname()
isSharedNickname
public boolean isSharedNickname()
setSharedNickname
public void setSharedNickname(boolean _shared)
getInstanceNickname
public String getInstanceNickname()
setInstanceNickname
public void setInstanceNickname(String _nick)
getNickname
public String getNickname(boolean use_default)
isAvailable
public boolean isAvailable()
getHistory
public BuddyPluginBeta.ChatMessage[] getHistory()
handleDrop
public void handleDrop(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 String getStatus()
messageReceived
public void messageReceived(Map<String,Object> message_map)
throws IPCException
- Throws:
IPCException
chatRequested
public Map<String,Object> chatRequested(Map<String,Object> message_map)
throws IPCException
- Throws:
IPCException
sendMessage
public void sendMessage(String message,
Map<String,Object> options)
sendMessage
public void sendMessage(String message,
Map<String,Object> flags,
Map<String,Object> options)
sendRawMessage
public void sendRawMessage(byte[] message,
Map<String,Object> flags,
Map<String,Object> options)
sendLocalMessage
public void sendLocalMessage(String message,
String[] args,
int message_type)
sendControlMessage
public void sendControlMessage(String cmd)
export
public String export()
getMessages
public List<BuddyPluginBeta.ChatMessage> getMessages()
hasUnseenMessageWithNick
public boolean hasUnseenMessageWithNick()
getUnseenMessages
public List<BuddyPluginBeta.ChatMessage> getUnseenMessages()
getParticipants
public BuddyPluginBeta.ChatParticipant[] getParticipants()
getParticipant
public BuddyPluginBeta.ChatParticipant getParticipant(String nick)
updated
protected void updated(BuddyPluginBeta.ChatParticipant p)
getLastMessageRequiringAttention
public BuddyPluginBeta.ChatMessage getLastMessageRequiringAttention()
setUserData
public void setUserData(Object key,
Object value)
getUserData
public Object getUserData(Object key)
getMessageOutstanding
public boolean getMessageOutstanding()
setMessageOutstanding
public void setMessageOutstanding(BuddyPluginBeta.ChatMessage message)
isOldOutstandingMessage
public boolean isOldOutstandingMessage(BuddyPluginBeta.ChatMessage msg)
fixupSeenState
public void fixupSeenState(List<BuddyPluginBeta.ChatMessage> msgs)
getMyAddress
public 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()