org.gnu.gnome

Class Program


public class Program
extends Boxed

This class takes care of handling application and library initialization and command line parsing.

Constructor Summary

Program(Handle handle)

Method Summary

String
getAppID()
String
getName()
static Type
getType()
Retrieve the runtime type used by the GLib library.
String
getVersion()
protected static Handle
gnome_program_get()
protected static String
gnome_program_get_app_id(Handle program)
protected static String
gnome_program_get_app_version(Handle program)
protected static String
gnome_program_get_human_readable_name(Handle program)
protected static int
gnome_program_get_type()
protected static Handle
gnome_program_module_load(String modName)
protected static void
gnome_program_module_register(Handle moduleInfo)
protected static boolean
gnome_program_module_registered(Handle moduleInfo)
static Program
initGnome(String appId, String appVersion, String[] argv)
Initialize the gnome application using the default directories for the app.
static Program
initGnome(String appId, String appVersion, String[] argv, String prefix, String sysconfdir, String datadir, String libdir)
Initialize the gnome application specifying the directories use by the app.
static Program
initGnomeUI(String appId, String appVersion, String[] argv)
Initialize the gnome application using the default directories for the app.
static Program
initGnomeUI(String appId, String appVersion, String[] argv, String prefix, String sysconfdir, String datadir, String libdir)
Initialize the gnome application specifying the directories used by the app.

Constructor Details

Program

protected Program(Handle handle)

Method Details

getAppID

public String getAppID()


getName

public String getName()


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


getVersion

public String getVersion()


gnome_program_get

protected static final Handle gnome_program_get()


gnome_program_get_app_id

protected static final String gnome_program_get_app_id(Handle program)


gnome_program_get_app_version

protected static final String gnome_program_get_app_version(Handle program)


gnome_program_get_human_readable_name

protected static final String gnome_program_get_human_readable_name(Handle program)


gnome_program_get_type

protected static final int gnome_program_get_type()


gnome_program_module_load

protected static final Handle gnome_program_module_load(String modName)


gnome_program_module_register

protected static final void gnome_program_module_register(Handle moduleInfo)


gnome_program_module_registered

protected static final boolean gnome_program_module_registered(Handle moduleInfo)


initGnome

public static Program initGnome(String appId,
                                String appVersion,
                                String[] argv)
Initialize the gnome application using the default directories for the app.


initGnome

public static Program initGnome(String appId,
                                String appVersion,
                                String[] argv,
                                String prefix,
                                String sysconfdir,
                                String datadir,
                                String libdir)
Initialize the gnome application specifying the directories use by the app.


initGnomeUI

public static Program initGnomeUI(String appId,
                                  String appVersion,
                                  String[] argv)
Initialize the gnome application using the default directories for the app.


initGnomeUI

public static Program initGnomeUI(String appId,
                                  String appVersion,
                                  String[] argv,
                                  String prefix,
                                  String sysconfdir,
                                  String datadir,
                                  String libdir)
Initialize the gnome application specifying the directories used by the app.