org.gudy.azureus2.platform.win32.access
Interface AEWin32Access

All Known Implementing Classes:
AEWin32AccessImpl

public interface AEWin32Access

Author:
parg

Field Summary
static int HKEY_CLASSES_ROOT
           
static int HKEY_CURRENT_CONFIG
           
static int HKEY_CURRENT_USER
           
static int HKEY_LOCAL_MACHINE
           
static int SW_FORCEMINIMIZE
           
static int SW_HIDE
           
static int SW_MAX
           
static int SW_MAXIMIZE
           
static int SW_MINIMIZE
           
static int SW_NORMAL
           
static int SW_RESTORE
           
static int SW_SHOW
           
static int SW_SHOWDEFAULT
           
static int SW_SHOWMAXIMIZED
           
static int SW_SHOWMINIMIZED
           
static int SW_SHOWMINNOACTIVE
           
static int SW_SHOWNA
           
static int SW_SHOWNOACTIVATE
           
static int SW_SHOWNORMAL
           
 
Method Summary
 void addListener(AEWin32AccessListener listener)
           
 void copyFilePermissions(String from_file_name, String to_file_name)
           
 void createProcess(String command_line, boolean inherit_handles)
           
 void deleteKey(int type, String subkey)
           
 void deleteKey(int type, String subkey, boolean recursuve)
           
 void deleteValue(int type, String subkey, String value_name)
           
 Map<File,Map> getAllDrives()
           
 String getApplicationInstallDir(String app_name)
           
 String getCommonAppData()
           
 String getLocalAppData()
           
 String getProgramFilesDir()
           
 String getUserAppData()
           
 String getUserDocumentsDir()
           
 String getUserMusicDir()
           
 String getUserVideoDir()
           
 String getVersion()
           
 boolean isEnabled()
           
 boolean isUSBDrive(Map driveInfo)
           
 void moveToRecycleBin(String file_name)
           
 void ping(InetAddress source_address, InetAddress target_address, PlatformManagerPingCallback callback)
           
 String readStringValue(int type, String subkey, String value_name)
           
 int readWordValue(int type, String subkey, String value_name)
           
 void removeListener(AEWin32AccessListener listener)
           
 void setThreadExecutionState(int state)
           
 int shellExecute(String operation, String file, String parameters, String directory, int SW_const)
           
 int shellExecuteAndWait(String file, String params)
           
 boolean testNativeAvailability(String name)
           
 void traceRoute(InetAddress source_address, InetAddress target_address, PlatformManagerPingCallback callback)
           
 void writeStringValue(int type, String subkey, String value_name, String value_value)
           
 void writeWordValue(int type, String subkey, String value_name, int value_value)
           
 

Field Detail

HKEY_CLASSES_ROOT

static final int HKEY_CLASSES_ROOT
See Also:
Constant Field Values

HKEY_CURRENT_CONFIG

static final int HKEY_CURRENT_CONFIG
See Also:
Constant Field Values

HKEY_LOCAL_MACHINE

static final int HKEY_LOCAL_MACHINE
See Also:
Constant Field Values

HKEY_CURRENT_USER

static final int HKEY_CURRENT_USER
See Also:
Constant Field Values

SW_HIDE

static final int SW_HIDE
See Also:
Constant Field Values

SW_NORMAL

static final int SW_NORMAL
See Also:
Constant Field Values

SW_SHOWNORMAL

static final int SW_SHOWNORMAL
See Also:
Constant Field Values

SW_SHOWMINIMIZED

static final int SW_SHOWMINIMIZED
See Also:
Constant Field Values

SW_SHOWMAXIMIZED

static final int SW_SHOWMAXIMIZED
See Also:
Constant Field Values

SW_MAXIMIZE

static final int SW_MAXIMIZE
See Also:
Constant Field Values

SW_SHOWNOACTIVATE

static final int SW_SHOWNOACTIVATE
See Also:
Constant Field Values

SW_SHOW

static final int SW_SHOW
See Also:
Constant Field Values

SW_MINIMIZE

static final int SW_MINIMIZE
See Also:
Constant Field Values

SW_SHOWMINNOACTIVE

static final int SW_SHOWMINNOACTIVE
See Also:
Constant Field Values

SW_SHOWNA

static final int SW_SHOWNA
See Also:
Constant Field Values

SW_RESTORE

static final int SW_RESTORE
See Also:
Constant Field Values

SW_SHOWDEFAULT

static final int SW_SHOWDEFAULT
See Also:
Constant Field Values

SW_FORCEMINIMIZE

static final int SW_FORCEMINIMIZE
See Also:
Constant Field Values

SW_MAX

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

isEnabled

boolean isEnabled()

getVersion

String getVersion()

readStringValue

String readStringValue(int type,
                       String subkey,
                       String value_name)
                       throws AEWin32AccessException
Throws:
AEWin32AccessException

writeStringValue

void writeStringValue(int type,
                      String subkey,
                      String value_name,
                      String value_value)
                      throws AEWin32AccessException
Throws:
AEWin32AccessException

readWordValue

int readWordValue(int type,
                  String subkey,
                  String value_name)
                  throws AEWin32AccessException
Throws:
AEWin32AccessException

writeWordValue

void writeWordValue(int type,
                    String subkey,
                    String value_name,
                    int value_value)
                    throws AEWin32AccessException
Throws:
AEWin32AccessException

deleteKey

void deleteKey(int type,
               String subkey)
               throws AEWin32AccessException
Throws:
AEWin32AccessException

deleteKey

void deleteKey(int type,
               String subkey,
               boolean recursuve)
               throws AEWin32AccessException
Throws:
AEWin32AccessException

deleteValue

void deleteValue(int type,
                 String subkey,
                 String value_name)
                 throws AEWin32AccessException
Throws:
AEWin32AccessException

getUserAppData

String getUserAppData()
                      throws AEWin32AccessException
Throws:
AEWin32AccessException

getProgramFilesDir

String getProgramFilesDir()
                          throws AEWin32AccessException
Throws:
AEWin32AccessException

getApplicationInstallDir

String getApplicationInstallDir(String app_name)
                                throws AEWin32AccessException
Throws:
AEWin32AccessException

createProcess

void createProcess(String command_line,
                   boolean inherit_handles)
                   throws AEWin32AccessException
Throws:
AEWin32AccessException

moveToRecycleBin

void moveToRecycleBin(String file_name)
                      throws AEWin32AccessException
Throws:
AEWin32AccessException

copyFilePermissions

void copyFilePermissions(String from_file_name,
                         String to_file_name)
                         throws AEWin32AccessException
Throws:
AEWin32AccessException

testNativeAvailability

boolean testNativeAvailability(String name)
                               throws AEWin32AccessException
Throws:
AEWin32AccessException

traceRoute

void traceRoute(InetAddress source_address,
                InetAddress target_address,
                PlatformManagerPingCallback callback)
                throws AEWin32AccessException
Throws:
AEWin32AccessException

ping

void ping(InetAddress source_address,
          InetAddress target_address,
          PlatformManagerPingCallback callback)
          throws AEWin32AccessException
Throws:
AEWin32AccessException

addListener

void addListener(AEWin32AccessListener listener)

removeListener

void removeListener(AEWin32AccessListener listener)

getUserDocumentsDir

String getUserDocumentsDir()
                           throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

getUserMusicDir

String getUserMusicDir()
                       throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

getUserVideoDir

String getUserVideoDir()
                       throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

getCommonAppData

String getCommonAppData()
                        throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

shellExecute

int shellExecute(String operation,
                 String file,
                 String parameters,
                 String directory,
                 int SW_const)
                 throws AEWin32AccessException
Throws:
AEWin32AccessException

shellExecuteAndWait

int shellExecuteAndWait(String file,
                        String params)
                        throws AEWin32AccessException
Throws:
AEWin32AccessException

getAllDrives

Map<File,Map> getAllDrives()
Returns:
Since:
4.1.0.5

isUSBDrive

boolean isUSBDrive(Map driveInfo)

getLocalAppData

String getLocalAppData()
                       throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException
Since:
4.5.0.3

setThreadExecutionState

void setThreadExecutionState(int state)
Parameters:
state -
Since:
4713