org.gudy.azureus2.plugins.platform
Interface PlatformManager

All Known Subinterfaces:
PlatformManager
All Known Implementing Classes:
PlatformManagerImpl, PlatformManagerImpl, PlatformManagerImpl, PlatformManagerImpl

public interface PlatformManager


Field Summary
static int LOC_DOCUMENTS
           
static int LOC_MUSIC
           
static int LOC_USER_DATA
           
static int LOC_VIDEO
           
 
Method Summary
 java.lang.String getComputerName()
           
 java.io.File getLocation(long location_id)
          Get a well-known location, if defined for the platform
 boolean isAdditionalFileTypeRegistered(java.lang.String name, java.lang.String type)
          Checks to see if the supplied file type is registered with this application
 void registerAdditionalFileType(java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String content_type)
          Registers a file type with this application
 void showFile(java.lang.String file_name)
          Reveals the file or directory with the platform's default browser
 void unregisterAdditionalFileType(java.lang.String name, java.lang.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(java.lang.String name,
                                       java.lang.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(java.lang.String name,
                                java.lang.String description,
                                java.lang.String type,
                                java.lang.String content_type)
                                throws PlatformManagerException
Registers a file type with this application

Parameters:
name -
description -
type -
content_type -
Throws:
PlatformManagerException

unregisterAdditionalFileType

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

Parameters:
name -
type -
Throws:
PlatformManagerException

showFile

void showFile(java.lang.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

java.io.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

java.lang.String getComputerName()
Returns:
null if can't be found