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(java.lang.String from_file_name, java.lang.String to_file_name)
           
 void createProcess(java.lang.String command_line, boolean inherit_handles)
           
 void deleteKey(int type, java.lang.String subkey)
           
 void deleteKey(int type, java.lang.String subkey, boolean recursuve)
           
 void deleteValue(int type, java.lang.String subkey, java.lang.String value_name)
           
 java.util.Map<java.io.File,java.util.Map> getAllDrives()
           
 java.lang.String getApplicationInstallDir(java.lang.String app_name)
           
 java.lang.String getCommonAppData()
           
 java.lang.String getLocalAppData()
           
 java.lang.String getProgramFilesDir()
           
 java.lang.String getUserAppData()
           
 java.lang.String getUserDocumentsDir()
           
 java.lang.String getUserMusicDir()
           
 java.lang.String getUserVideoDir()
           
 java.lang.String getVersion()
           
 boolean isEnabled()
           
 boolean isUSBDrive(java.util.Map driveInfo)
           
 void moveToRecycleBin(java.lang.String file_name)
           
 void ping(java.net.InetAddress source_address, java.net.InetAddress target_address, PlatformManagerPingCallback callback)
           
 java.lang.String readStringValue(int type, java.lang.String subkey, java.lang.String value_name)
           
 int readWordValue(int type, java.lang.String subkey, java.lang.String value_name)
           
 void removeListener(AEWin32AccessListener listener)
           
 void setThreadExecutionState(int state)
           
 int shellExecute(java.lang.String operation, java.lang.String file, java.lang.String parameters, java.lang.String directory, int SW_const)
           
 int shellExecuteAndWait(java.lang.String file, java.lang.String params)
           
 boolean testNativeAvailability(java.lang.String name)
           
 void traceRoute(java.net.InetAddress source_address, java.net.InetAddress target_address, PlatformManagerPingCallback callback)
           
 void writeStringValue(int type, java.lang.String subkey, java.lang.String value_name, java.lang.String value_value)
           
 void writeWordValue(int type, java.lang.String subkey, java.lang.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

java.lang.String getVersion()

readStringValue

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

writeStringValue

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

readWordValue

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

writeWordValue

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

deleteKey

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

deleteKey

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

deleteValue

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

getUserAppData

java.lang.String getUserAppData()
                                throws AEWin32AccessException
Throws:
AEWin32AccessException

getProgramFilesDir

java.lang.String getProgramFilesDir()
                                    throws AEWin32AccessException
Throws:
AEWin32AccessException

getApplicationInstallDir

java.lang.String getApplicationInstallDir(java.lang.String app_name)
                                          throws AEWin32AccessException
Throws:
AEWin32AccessException

createProcess

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

moveToRecycleBin

void moveToRecycleBin(java.lang.String file_name)
                      throws AEWin32AccessException
Throws:
AEWin32AccessException

copyFilePermissions

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

testNativeAvailability

boolean testNativeAvailability(java.lang.String name)
                               throws AEWin32AccessException
Throws:
AEWin32AccessException

traceRoute

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

ping

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

addListener

void addListener(AEWin32AccessListener listener)

removeListener

void removeListener(AEWin32AccessListener listener)

getUserDocumentsDir

java.lang.String getUserDocumentsDir()
                                     throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

getUserMusicDir

java.lang.String getUserMusicDir()
                                 throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

getUserVideoDir

java.lang.String getUserVideoDir()
                                 throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

getCommonAppData

java.lang.String getCommonAppData()
                                  throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException

shellExecute

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

shellExecuteAndWait

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

getAllDrives

java.util.Map<java.io.File,java.util.Map> getAllDrives()
Returns:
Since:
4.1.0.5

isUSBDrive

boolean isUSBDrive(java.util.Map driveInfo)

getLocalAppData

java.lang.String getLocalAppData()
                                 throws AEWin32AccessException
Returns:
Throws:
AEWin32AccessException
Since:
4.5.0.3

setThreadExecutionState

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