Package com.biglybt.pif.platform
Interface PlatformManager
- All Known Subinterfaces:
PlatformManager
- All Known Implementing Classes:
PlatformManagerImpl
,PlatformManagerImpl
,PlatformManagerImpl
,PlatformManagerImpl
public interface PlatformManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptiongetLocation
(long location_id) Get a well-known location, if defined for the platformboolean
isAdditionalFileTypeRegistered
(String name, String type) Checks to see if the supplied file type is registered with this applicationvoid
registerAdditionalFileType
(String name, String description, String type, String content_type) Registers a file type with this applicationvoid
Reveals the file or directory with the platform's default browservoid
unregisterAdditionalFileType
(String name, String type) Removes a file-type registration
-
Field Details
-
LOC_USER_DATA
static final int LOC_USER_DATA- See Also:
-
LOC_MUSIC
static final int LOC_MUSIC- See Also:
-
LOC_DOCUMENTS
static final int LOC_DOCUMENTS- See Also:
-
LOC_VIDEO
static final int LOC_VIDEO- See Also:
-
LOC_DOWNLOADS
static final int LOC_DOWNLOADS- See Also:
-
-
Method Details
-
isAdditionalFileTypeRegistered
Checks to see if the supplied file type is registered with this application- Parameters:
name
-type
-- Returns:
- Throws:
PlatformManagerException
-
registerAdditionalFileType
void registerAdditionalFileType(String name, String description, String type, String content_type) throws PlatformManagerException Registers a file type with this application- Parameters:
name
-description
-type
-content_type
-- Throws:
PlatformManagerException
-
unregisterAdditionalFileType
Removes a file-type registration- Parameters:
name
-type
-- Throws:
PlatformManagerException
-
showFile
Reveals the file or directory with the platform's default browser- Parameters:
file_name
- The full path to a file or directory- Throws:
PlatformManagerException
- If this operation fails
-
getLocation
Get a well-known location, if defined for the platform- Parameters:
location_id
- from above LOC_constants- Returns:
- Throws:
PlatformManagerException
- Since:
- 2.3.0.6
-
getComputerName
String getComputerName()- Returns:
- null if can't be found
-