Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.generalconfig
Class WindowsStartup

java.lang.Object
  extended by net.java.sip.communicator.plugin.generalconfig.WindowsStartup

public class WindowsStartup
extends Object

Take care of application auto startup. Reading and writing the registry.

Author:
Damian Minkov

Constructor Summary
WindowsStartup()
           
 
Method Summary
static boolean isStartupEnabled(String appName)
          Checks whether startup is enabled.
static void setAutostart(String appName, String workingDirectory, boolean isAutoStart)
          Creates or deletes registry key for application autostart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsStartup

public WindowsStartup()
Method Detail

isStartupEnabled

public static boolean isStartupEnabled(String appName)
Checks whether startup is enabled.

Parameters:
appName - the application name.
Returns:
is startup enabled.

setAutostart

public static void setAutostart(String appName,
                                String workingDirectory,
                                boolean isAutoStart)
Creates or deletes registry key for application autostart.

Parameters:
appName - the application name
workingDirectory - the current working directory, normally the place where the application executable is placed.
isAutoStart - true to create registry key, false to delete it.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.