org.gudy.azureus2.plugins.platform
Interface PlatformManager


public interface PlatformManager


Field Summary
static int LOC_DOCUMENTS
           
static int LOC_MUSIC
           
static int LOC_USER_DATA
           
static int LOC_VIDEO
           
 
Method Summary
 String getComputerName()
           
 File getLocation(long location_id)
          Get a well-known location, if defined for the platform
 boolean isAdditionalFileTypeRegistered(String name, String type)
          Checks to see if the supplied file type is registered with this application
 void registerAdditionalFileType(String name, String description, String type, String content_type)
          Registers a file type with this application
 void showFile(String file_name)
          Reveals the file or directory with the platform's default browser
 void unregisterAdditionalFileType(String name, String type)
          Removes a file-type registration
 

Field Detail

LOC_USER_DATA

static final int LOC_USER_DATA
See Also:
Constant Field Values

LOC_MUSIC

static final int LOC_MUSIC
See Also:
Constant Field Values

LOC_DOCUMENTS

static final int LOC_DOCUMENTS
See Also:
Constant Field Values

LOC_VIDEO

static final int LOC_VIDEO
See Also:
Constant Field Values
Method Detail

isAdditionalFileTypeRegistered

boolean isAdditionalFileTypeRegistered(String name,
                                       String type)
                                       throws PlatformManagerException
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

void unregisterAdditionalFileType(String name,
                                  String type)
                                  throws PlatformManagerException
Removes a file-type registration

Parameters:
name -
type -
Throws:
PlatformManagerException

showFile

void showFile(String file_name)
              throws PlatformManagerException
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

File getLocation(long location_id)
                 throws PlatformManagerException
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