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

java.lang.Object
  extended by com.aelitis.azureus.plugins.net.buddy.BuddyPluginBeta

public class BuddyPluginBeta
extends java.lang.Object


Nested Class Summary
static class BuddyPluginBeta.ActivityCallback
           
static class BuddyPluginBeta.ChatAdapter
           
 class BuddyPluginBeta.ChatInstance
           
static interface BuddyPluginBeta.ChatListener
           
static interface BuddyPluginBeta.ChatManagerListener
           
 class BuddyPluginBeta.ChatMessage
           
 class BuddyPluginBeta.ChatParticipant
           
static interface BuddyPluginBeta.FTUXStateChangeListener
           
 
Field Summary
static boolean BETA_CHAN_ENABLED
           
static java.lang.String BETA_CHAT_KEY
           
static boolean DEBUG_ENABLED
           
static int FLAGS_MSG_FLASH_NO
           
static java.lang.String FLAGS_MSG_FLASH_OVERRIDE
           
static int FLAGS_MSG_FLASH_YES
           
static java.lang.String FLAGS_MSG_ORIGIN_KEY
           
static int FLAGS_MSG_ORIGIN_RATINGS
           
static int FLAGS_MSG_ORIGIN_SEED_REQ
           
static int FLAGS_MSG_ORIGIN_SUBS
           
static int FLAGS_MSG_ORIGIN_USER
           
static java.lang.String FLAGS_MSG_TYPE_KEY
           
static int FLAGS_MSG_TYPE_ME
           
static int FLAGS_MSG_TYPE_NORMAL
           
static int PRIVATE_CHAT_DISABLED
           
static int PRIVATE_CHAT_ENABLED
           
static int PRIVATE_CHAT_PINNED_ONLY
           
 
Constructor Summary
protected BuddyPluginBeta(PluginInterface _pi, BuddyPlugin _plugin, BooleanParameter _enabled)
           
 
Method Summary
 void addFTUXStateChangeListener(BuddyPluginBeta.FTUXStateChangeListener listener)
           
 void addListener(BuddyPluginBeta.ChatManagerListener l, boolean fire_for_existing)
           
protected  void closedown()
           
 BuddyPluginBeta.ChatInstance getAndShowChat(java.lang.String network, java.lang.String key)
           
 BuddyPluginBeta.ChatInstance getChat(BuddyPluginBeta.ChatParticipant participant)
           
 BuddyPluginBeta.ChatInstance getChat(BuddyPluginBeta.ChatParticipant parent_participant, java.lang.Object handler)
           
 BuddyPluginBeta.ChatInstance getChat(Download download)
           
 BuddyPluginBeta.ChatInstance getChat(java.lang.String network, java.lang.String key)
           
 BuddyPluginBeta.ChatInstance getChat(java.lang.String network, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> options)
           
 java.util.List<BuddyPluginBeta.ChatInstance> getChats()
           
 boolean getFavourite(java.lang.String net, java.lang.String key)
           
 java.util.List<java.lang.String[]> getFavourites()
           
 boolean getFTUXAccepted()
           
 boolean getHideRatings()
           
 boolean getHideSearchSubs()
           
 java.lang.String getLastMessageInfo(java.lang.String net, java.lang.String key)
           
 int getMaxUICharsKB()
           
 int getMaxUILines()
           
 java.lang.String getNick(java.lang.String net, java.lang.String key)
           
 int getPrivateChatState()
           
 boolean getSharedAnonEndpoint()
           
 java.lang.String getSharedAnonNickname()
           
 java.lang.String getSharedPublicNickname()
           
 boolean getSoundEnabled()
           
 java.lang.String getSoundFile()
           
 boolean getStandAloneWindows()
           
 boolean getWindowsToSidebar()
           
 java.io.InputStream handleURI(java.lang.String url_str, boolean open_only)
           
 BuddyPluginBeta.ChatInstance importChat(java.lang.String import_data)
           
 boolean isAvailable()
           
 boolean isI2PAvailable()
           
 boolean isInitialised()
           
 java.util.Map<java.lang.String,java.lang.Object> peekChat(Download download, boolean async)
           
 java.util.Map<java.lang.String,java.lang.Object> peekChat(java.lang.String network, java.lang.String key)
           
 BuddyPluginBeta.ChatInstance peekChatInstance(Download download)
           
 BuddyPluginBeta.ChatInstance peekChatInstance(java.lang.String network, java.lang.String key)
           
 BuddyPluginBeta.ChatInstance peekChatInstance(java.lang.String network, java.lang.String key, boolean create_if_missing)
          returns existing chat if found without adding a reference to it.
 void removeFTUXStateChangeListener(BuddyPluginBeta.FTUXStateChangeListener listener)
           
 void removeListener(BuddyPluginBeta.ChatManagerListener l)
           
 void setFavourite(java.lang.String net, java.lang.String key, boolean b)
           
 void setFTUXAccepted(boolean accepted)
           
 void setHideRatings(boolean b)
           
 void setHideSearchSubs(boolean b)
           
 void setLastMessageInfo(java.lang.String net, java.lang.String key, java.lang.String info)
           
 void setMaxUICharsKB(int num)
           
 void setMaxUILines(int num)
           
 void setNick(java.lang.String net, java.lang.String key, java.lang.String nick)
           
 void setPrivateChatState(int state)
           
 void setSharedAnonEndpoint(boolean b)
           
 void setSharedAnonNickname(java.lang.String _nick)
           
 void setSharedPublicNickname(java.lang.String _nick)
           
 void setSoundEnabled(boolean b)
           
 void setSoundFile(java.lang.String _file)
           
 void setStandAloneWindows(boolean b)
           
 void setWindowsToSidebar(boolean b)
           
 BuddyPluginBeta.ChatInstance showChat(BuddyPluginBeta.ChatInstance inst)
           
protected  void startup()
           
 void tagDownload(Download download)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_ENABLED

public static final boolean DEBUG_ENABLED

BETA_CHAN_ENABLED

public static final boolean BETA_CHAN_ENABLED

BETA_CHAT_KEY

public static final java.lang.String BETA_CHAT_KEY
See Also:
Constant Field Values

PRIVATE_CHAT_DISABLED

public static final int PRIVATE_CHAT_DISABLED
See Also:
Constant Field Values

PRIVATE_CHAT_PINNED_ONLY

public static final int PRIVATE_CHAT_PINNED_ONLY
See Also:
Constant Field Values

PRIVATE_CHAT_ENABLED

public static final int PRIVATE_CHAT_ENABLED
See Also:
Constant Field Values

FLAGS_MSG_ORIGIN_KEY

public static final java.lang.String FLAGS_MSG_ORIGIN_KEY
See Also:
Constant Field Values

FLAGS_MSG_ORIGIN_USER

public static final int FLAGS_MSG_ORIGIN_USER
See Also:
Constant Field Values

FLAGS_MSG_ORIGIN_RATINGS

public static final int FLAGS_MSG_ORIGIN_RATINGS
See Also:
Constant Field Values

FLAGS_MSG_ORIGIN_SEED_REQ

public static final int FLAGS_MSG_ORIGIN_SEED_REQ
See Also:
Constant Field Values

FLAGS_MSG_ORIGIN_SUBS

public static final int FLAGS_MSG_ORIGIN_SUBS
See Also:
Constant Field Values

FLAGS_MSG_FLASH_OVERRIDE

public static final java.lang.String FLAGS_MSG_FLASH_OVERRIDE
See Also:
Constant Field Values

FLAGS_MSG_FLASH_NO

public static final int FLAGS_MSG_FLASH_NO
See Also:
Constant Field Values

FLAGS_MSG_FLASH_YES

public static final int FLAGS_MSG_FLASH_YES
See Also:
Constant Field Values

FLAGS_MSG_TYPE_KEY

public static final java.lang.String FLAGS_MSG_TYPE_KEY
See Also:
Constant Field Values

FLAGS_MSG_TYPE_NORMAL

public static final int FLAGS_MSG_TYPE_NORMAL
See Also:
Constant Field Values

FLAGS_MSG_TYPE_ME

public static final int FLAGS_MSG_TYPE_ME
See Also:
Constant Field Values
Constructor Detail

BuddyPluginBeta

protected BuddyPluginBeta(PluginInterface _pi,
                          BuddyPlugin _plugin,
                          BooleanParameter _enabled)
Method Detail

isAvailable

public boolean isAvailable()

isInitialised

public boolean isInitialised()

getMaxUILines

public int getMaxUILines()

setMaxUILines

public void setMaxUILines(int num)

getMaxUICharsKB

public int getMaxUICharsKB()

setMaxUICharsKB

public void setMaxUICharsKB(int num)

getStandAloneWindows

public boolean getStandAloneWindows()

setStandAloneWindows

public void setStandAloneWindows(boolean b)

getWindowsToSidebar

public boolean getWindowsToSidebar()

setWindowsToSidebar

public void setWindowsToSidebar(boolean b)

getHideRatings

public boolean getHideRatings()

setHideRatings

public void setHideRatings(boolean b)

getHideSearchSubs

public boolean getHideSearchSubs()

setHideSearchSubs

public void setHideSearchSubs(boolean b)

getFavourite

public boolean getFavourite(java.lang.String net,
                            java.lang.String key)

setFavourite

public void setFavourite(java.lang.String net,
                         java.lang.String key,
                         boolean b)

getFavourites

public java.util.List<java.lang.String[]> getFavourites()

getNick

public java.lang.String getNick(java.lang.String net,
                                java.lang.String key)

setNick

public void setNick(java.lang.String net,
                    java.lang.String key,
                    java.lang.String nick)

getLastMessageInfo

public java.lang.String getLastMessageInfo(java.lang.String net,
                                           java.lang.String key)

setLastMessageInfo

public void setLastMessageInfo(java.lang.String net,
                               java.lang.String key,
                               java.lang.String info)

getSharedPublicNickname

public java.lang.String getSharedPublicNickname()

setSharedPublicNickname

public void setSharedPublicNickname(java.lang.String _nick)

getSharedAnonNickname

public java.lang.String getSharedAnonNickname()

setSharedAnonNickname

public void setSharedAnonNickname(java.lang.String _nick)

getPrivateChatState

public int getPrivateChatState()

setPrivateChatState

public void setPrivateChatState(int state)

getSharedAnonEndpoint

public boolean getSharedAnonEndpoint()

setSharedAnonEndpoint

public void setSharedAnonEndpoint(boolean b)

setSoundEnabled

public void setSoundEnabled(boolean b)

getSoundEnabled

public boolean getSoundEnabled()

getSoundFile

public java.lang.String getSoundFile()

setSoundFile

public void setSoundFile(java.lang.String _file)

startup

protected void startup()

tagDownload

public void tagDownload(Download download)

closedown

protected void closedown()

isI2PAvailable

public boolean isI2PAvailable()

handleURI

public java.io.InputStream handleURI(java.lang.String url_str,
                                     boolean open_only)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getFTUXAccepted

public boolean getFTUXAccepted()

setFTUXAccepted

public void setFTUXAccepted(boolean accepted)

addFTUXStateChangeListener

public void addFTUXStateChangeListener(BuddyPluginBeta.FTUXStateChangeListener listener)

removeFTUXStateChangeListener

public void removeFTUXStateChangeListener(BuddyPluginBeta.FTUXStateChangeListener listener)

getAndShowChat

public BuddyPluginBeta.ChatInstance getAndShowChat(java.lang.String network,
                                                   java.lang.String key)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

showChat

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

importChat

public BuddyPluginBeta.ChatInstance importChat(java.lang.String import_data)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getChat

public BuddyPluginBeta.ChatInstance getChat(Download download)

getChat

public BuddyPluginBeta.ChatInstance getChat(java.lang.String network,
                                            java.lang.String key)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getChat

public BuddyPluginBeta.ChatInstance getChat(java.lang.String network,
                                            java.lang.String key,
                                            java.util.Map<java.lang.String,java.lang.Object> options)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getChat

public BuddyPluginBeta.ChatInstance getChat(BuddyPluginBeta.ChatParticipant participant)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getChat

public BuddyPluginBeta.ChatInstance getChat(BuddyPluginBeta.ChatParticipant parent_participant,
                                            java.lang.Object handler)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

peekChatInstance

public BuddyPluginBeta.ChatInstance peekChatInstance(java.lang.String network,
                                                     java.lang.String key)

peekChatInstance

public BuddyPluginBeta.ChatInstance peekChatInstance(Download download)

peekChatInstance

public BuddyPluginBeta.ChatInstance peekChatInstance(java.lang.String network,
                                                     java.lang.String key,
                                                     boolean create_if_missing)
returns existing chat if found without adding a reference to it. If create_if_missing supplied then this will create a new chat (and add a reference to it) so use this parameter with caution


peekChat

public java.util.Map<java.lang.String,java.lang.Object> peekChat(Download download,
                                                                 boolean async)

peekChat

public java.util.Map<java.lang.String,java.lang.Object> peekChat(java.lang.String network,
                                                                 java.lang.String key)

getChats

public java.util.List<BuddyPluginBeta.ChatInstance> getChats()

addListener

public void addListener(BuddyPluginBeta.ChatManagerListener l,
                        boolean fire_for_existing)

removeListener

public void removeListener(BuddyPluginBeta.ChatManagerListener l)