Package com.biglybt.core.content
Class PlatformContentDirectory
- java.lang.Object
-
- com.biglybt.core.content.PlatformContentDirectory
-
- All Implemented Interfaces:
ContentDirectory
public class PlatformContentDirectory extends java.lang.Object implements ContentDirectory
Used in UPnP for something
-
-
Field Summary
Fields Modifier and Type Field Description private DownloadManager
downloadManager
private static CopyOnWriteList<ContentDirectoryListener>
listeners
private static boolean
registered
private static TorrentAttribute
ta_category
-
Fields inherited from interface com.biglybt.core.content.ContentDirectory
AT_BTIH, AT_FILE_INDEX
-
-
Constructor Summary
Constructors Constructor Description PlatformContentDirectory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(ContentDirectoryListener listener)
static void
fireCatsChanged(ContentFile acf)
static void
fireTagsChanged(ContentFile acf)
protected long
getETA(DiskManagerFileInfo file)
Content
lookupContent(java.util.Map attributes)
ContentDownload
lookupContentDownload(java.util.Map attributes)
ContentFile
lookupContentFile(java.util.Map attributes)
static void
register()
void
removeListener(ContentDirectoryListener listener)
-
-
-
Field Detail
-
registered
private static boolean registered
-
ta_category
private static TorrentAttribute ta_category
-
downloadManager
private final DownloadManager downloadManager
-
listeners
private static CopyOnWriteList<ContentDirectoryListener> listeners
-
-
Method Detail
-
register
public static void register()
-
lookupContent
public Content lookupContent(java.util.Map attributes)
- Specified by:
lookupContent
in interfaceContentDirectory
-
lookupContentDownload
public ContentDownload lookupContentDownload(java.util.Map attributes)
- Specified by:
lookupContentDownload
in interfaceContentDirectory
-
lookupContentFile
public ContentFile lookupContentFile(java.util.Map attributes)
- Specified by:
lookupContentFile
in interfaceContentDirectory
-
getETA
protected long getETA(DiskManagerFileInfo file)
-
fireCatsChanged
public static void fireCatsChanged(ContentFile acf)
-
fireTagsChanged
public static void fireTagsChanged(ContentFile acf)
-
addListener
public void addListener(ContentDirectoryListener listener)
- Specified by:
addListener
in interfaceContentDirectory
-
removeListener
public void removeListener(ContentDirectoryListener listener)
- Specified by:
removeListener
in interfaceContentDirectory
-
-