Package com.biglybt.plugin.net.buddy
Class BuddyPluginUtils
- java.lang.Object
-
- com.biglybt.plugin.net.buddy.BuddyPluginUtils
-
public class BuddyPluginUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BuddyPluginUtils.CreateChatCallback
private static class
BuddyPluginUtils.ViewWrapper
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object
chat_lock
static java.lang.String
CK_CC
static java.lang.String
CK_LANG
private static BuddyPluginBeta.ChatInstance
country_chat
private static java.lang.String[]
country_info
private static BuddyPluginBeta.ChatInstance
language_chat
private static java.lang.String[]
language_info
private static AsyncDispatcher
peek_dispatcher
-
Constructor Summary
Constructors Constructor Description BuddyPluginUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
betaInit(BuddyPluginBeta bpb)
static BuddyPluginViewInterface.View
buildChatView(java.util.Map<java.lang.String,java.lang.Object> properties, BuddyPluginViewInterface.ViewListener listener)
static void
createBetaChat(java.lang.String network, java.lang.String key, BuddyPluginUtils.CreateChatCallback callback)
static BuddyPluginBeta
getBetaPlugin()
static BuddyPluginBeta.ChatInstance
getChat(Download download)
static BuddyPluginBeta.ChatInstance
getChat(java.lang.String net, java.lang.String key)
static BuddyPluginBeta.ChatInstance
getChat(java.lang.String net, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> options)
static java.lang.String
getChatKey(TOTorrent torrent)
static java.lang.String
getChatKey(Download download)
static java.lang.String
getChatKey(Torrent torrent)
static java.util.List<BuddyPluginBeta.ChatInstance>
getChats()
static BuddyPluginBeta.ChatInstance
getCountryChat()
static BuddyPluginBeta.ChatInstance
getLanguageChat()
static BuddyPlugin
getPlugin()
static java.lang.String
getTrackerChatKey(java.lang.String url)
static java.lang.String
getTrackerChatKey(java.net.URL url)
static boolean
isBetaChatAnonAvailable()
static boolean
isBetaChatAvailable()
static java.util.Map<java.lang.String,java.lang.Object>
peekChat(Download download)
static java.util.Map<java.lang.String,java.lang.Object>
peekChat(java.lang.String net, java.lang.String key)
static void
peekChatAsync(java.lang.String net, java.lang.String key, java.lang.Runnable done)
static java.util.List<BuddyPluginBeta.ChatInstance>
peekChatInstances(Download download)
-
-
-
Field Detail
-
chat_lock
private static java.lang.Object chat_lock
-
country_chat
private static BuddyPluginBeta.ChatInstance country_chat
-
country_info
private static java.lang.String[] country_info
-
CK_CC
public static final java.lang.String CK_CC
- See Also:
- Constant Field Values
-
language_chat
private static BuddyPluginBeta.ChatInstance language_chat
-
language_info
private static java.lang.String[] language_info
-
CK_LANG
public static final java.lang.String CK_LANG
- See Also:
- Constant Field Values
-
peek_dispatcher
private static AsyncDispatcher peek_dispatcher
-
-
Method Detail
-
betaInit
protected static void betaInit(BuddyPluginBeta bpb)
-
getCountryChat
public static BuddyPluginBeta.ChatInstance getCountryChat()
-
getLanguageChat
public static BuddyPluginBeta.ChatInstance getLanguageChat()
-
getPlugin
public static BuddyPlugin getPlugin()
-
getBetaPlugin
public static BuddyPluginBeta getBetaPlugin()
-
isBetaChatAvailable
public static boolean isBetaChatAvailable()
-
isBetaChatAnonAvailable
public static boolean isBetaChatAnonAvailable()
-
createBetaChat
public static void createBetaChat(java.lang.String network, java.lang.String key, BuddyPluginUtils.CreateChatCallback callback)
-
peekChat
public static java.util.Map<java.lang.String,java.lang.Object> peekChat(java.lang.String net, java.lang.String key)
-
peekChat
public static java.util.Map<java.lang.String,java.lang.Object> peekChat(Download download)
-
peekChatInstances
public static java.util.List<BuddyPluginBeta.ChatInstance> peekChatInstances(Download download)
-
peekChatAsync
public static void peekChatAsync(java.lang.String net, java.lang.String key, java.lang.Runnable done)
-
getChats
public static java.util.List<BuddyPluginBeta.ChatInstance> getChats()
-
getChat
public static BuddyPluginBeta.ChatInstance getChat(java.lang.String net, java.lang.String key)
-
getChat
public static BuddyPluginBeta.ChatInstance getChat(java.lang.String net, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> options)
-
getChat
public static BuddyPluginBeta.ChatInstance getChat(Download download)
-
buildChatView
public static BuddyPluginViewInterface.View buildChatView(java.util.Map<java.lang.String,java.lang.Object> properties, BuddyPluginViewInterface.ViewListener listener)
-
getChatKey
public static java.lang.String getChatKey(TOTorrent torrent)
-
getChatKey
public static java.lang.String getChatKey(Download download)
-
getChatKey
public static java.lang.String getChatKey(Torrent torrent)
-
getTrackerChatKey
public static java.lang.String getTrackerChatKey(java.lang.String url)
-
getTrackerChatKey
public static java.lang.String getTrackerChatKey(java.net.URL url)
-
-