Package com.biglybt.pif.sharing
Interface ShareManager
- All Known Implementing Classes:
ShareManagerImpl
public interface ShareManager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddDirContents
(File dir, boolean recursive) addDirContents
(File dir, boolean recursive, Map<String, String> properties) void
addListener
(ShareManagerListener listener) void
adding shares can take a long time due to the torrent creation process.returns null if share not definedint
void
boolean
lookupShare
(byte[] torrent_hash) void
removeListener
(ShareManagerListener listener)
-
Field Details
-
PR_PERSONAL
- See Also:
-
PR_NETWORKS
- See Also:
-
PR_TAGS
- See Also:
-
PR_USER_DATA
- See Also:
-
PR_PERSISTENT
- See Also:
-
-
Method Details
-
initialise
- Throws:
ShareException
-
isInitialising
boolean isInitialising() -
addFile
-
addFile
ShareResourceFile addFile(File file, Map<String, String> properties) throws ShareException, ShareResourceDeletionVetoException -
addDir
-
addDir
ShareResourceDir addDir(File dir, Map<String, String> properties) throws ShareException, ShareResourceDeletionVetoException -
addDirContents
ShareResourceDirContents addDirContents(File dir, boolean recursive) throws ShareException, ShareResourceDeletionVetoException -
addDirContents
ShareResourceDirContents addDirContents(File dir, boolean recursive, Map<String, String> properties) throws ShareException, ShareResourceDeletionVetoException -
cancelOperation
void cancelOperation()adding shares can take a long time due to the torrent creation process. The current activity can be interrupted by calling this function, in which case the original activity will fail with a ShareException
-