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

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

public class BuddyPluginBeta
extends Object


Nested Class Summary
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 String BETA_CHAT_KEY
           
static boolean DEBUG_ENABLED
           
static int FLAGS_MSG_FLASH_NO
           
static String FLAGS_MSG_FLASH_OVERRIDE
           
static int FLAGS_MSG_FLASH_YES
           
static String FLAGS_MSG_ORIGIN_KEY
           
static int FLAGS_MSG_ORIGIN_RATINGS
           
static int FLAGS_MSG_ORIGIN_SEED_REQ
           
static int FLAGS_MSG_ORIGIN_USER
           
static 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()
           
 void getAndShowChat(String network, String key)
           
 BuddyPluginBeta.ChatInstance getChat(BuddyPluginBeta.ChatParticipant participant)
           
 BuddyPluginBeta.ChatInstance getChat(BuddyPluginBeta.ChatParticipant parent_participant, Object handler)
           
 BuddyPluginBeta.ChatInstance getChat(Download download)
           
 BuddyPluginBeta.ChatInstance getChat(String network, String key)
           
 BuddyPluginBeta.ChatInstance getChat(String network, String key, Map<String,Object> options)
           
 List<BuddyPluginBeta.ChatInstance> getChats()
           
 boolean getFavourite(String net, String key)
           
 List<String[]> getFavourites()
           
 boolean getFTUXAccepted()
           
 boolean getHideRatings()
           
 String getLastMessageInfo(String net, String key)
           
 int getMaxUICharsKB()
           
 int getMaxUILines()
           
 String getNick(String net, String key)
           
 int getPrivateChatState()
           
 boolean getSharedAnonEndpoint()
           
 String getSharedAnonNickname()
           
 String getSharedPublicNickname()
           
 boolean getSoundEnabled()
           
 String getSoundFile()
           
 boolean getStandAloneWindows()
           
 boolean getWindowsToSidebar()
           
 InputStream handleURI(String url_str, boolean open_only)
           
 BuddyPluginBeta.ChatInstance importChat(String import_data)
           
 boolean isAvailable()
           
 boolean isI2PAvailable()
           
 boolean isInitialised()
           
 Map<String,Object> peekChat(Download download, boolean async)
           
 Map<String,Object> peekChat(String network, String key)
           
 BuddyPluginBeta.ChatInstance peekChatInstance(Download download)
           
 BuddyPluginBeta.ChatInstance peekChatInstance(String network, String key)
           
 BuddyPluginBeta.ChatInstance peekChatInstance(String network, 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(String net, String key, boolean b)
           
 void setFTUXAccepted(boolean accepted)
           
 void setHideRatings(boolean b)
           
 void setLastMessageInfo(String net, String key, String info)
           
 void setMaxUICharsKB(int num)
           
 void setMaxUILines(int num)
           
 void setNick(String net, String key, String nick)
           
 void setPrivateChatState(int state)
           
 void setSharedAnonEndpoint(boolean b)
           
 void setSharedAnonNickname(String _nick)
           
 void setSharedPublicNickname(String _nick)
           
 void setSoundEnabled(boolean b)
           
 void setSoundFile(String _file)
           
 void setStandAloneWindows(boolean b)
           
 void setWindowsToSidebar(boolean b)
           
 void 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 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 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_FLASH_OVERRIDE

public static final 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 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)

getFavourite

public boolean getFavourite(String net,
                            String key)

setFavourite

public void setFavourite(String net,
                         String key,
                         boolean b)

getFavourites

public List<String[]> getFavourites()

getNick

public String getNick(String net,
                      String key)

setNick

public void setNick(String net,
                    String key,
                    String nick)

getLastMessageInfo

public String getLastMessageInfo(String net,
                                 String key)

setLastMessageInfo

public void setLastMessageInfo(String net,
                               String key,
                               String info)

getSharedPublicNickname

public String getSharedPublicNickname()

setSharedPublicNickname

public void setSharedPublicNickname(String _nick)

getSharedAnonNickname

public String getSharedAnonNickname()

setSharedAnonNickname

public void setSharedAnonNickname(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 String getSoundFile()

setSoundFile

public void setSoundFile(String _file)

startup

protected void startup()

tagDownload

public void tagDownload(Download download)

closedown

protected void closedown()

isI2PAvailable

public boolean isI2PAvailable()

handleURI

public InputStream handleURI(String url_str,
                             boolean open_only)
                      throws Exception
Throws:
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 void getAndShowChat(String network,
                           String key)
                    throws Exception
Throws:
Exception

showChat

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

importChat

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

getChat

public BuddyPluginBeta.ChatInstance getChat(Download download)

getChat

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

getChat

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

getChat

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

getChat

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

peekChatInstance

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

peekChatInstance

public BuddyPluginBeta.ChatInstance peekChatInstance(Download download)

peekChatInstance

public BuddyPluginBeta.ChatInstance peekChatInstance(String network,
                                                     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 Map<String,Object> peekChat(Download download,
                                   boolean async)

peekChat

public Map<String,Object> peekChat(String network,
                                   String key)

getChats

public List<BuddyPluginBeta.ChatInstance> getChats()

addListener

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

removeListener

public void removeListener(BuddyPluginBeta.ChatManagerListener l)