|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gnome.Client
The GnomeClient object makes it possible for your application to save session information when the user logs out. If, when logging out, the user chooses to save the current settings, a save_yourself signal is sent to each application. Then an application can save information in such a way that it is supported on the command line whenever the program automatically restarts a user login.
Constructor Summary | |
Client()
Create a new session management client and try to connect to a session manager. |
Method Summary | |
void |
addListener(ClientListener listener)
Register an object to handle Client events. |
void |
connect()
Try to connect to a session manager. |
void |
disconnect()
Disconnect from the session manager. |
void |
flush()
Flush the underlying connection to the connection manager. |
java.lang.String |
getConfigPrefix()
Get the config prefix for a client. |
java.lang.String |
getDesktopID()
|
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
|
ClientFlags |
getFlags()
Returns some flags, that give additional information about this client. |
java.lang.String |
getGlobalConfigPrefix()
Get the config prefix for clients which have NOT been restarted or cloned. |
java.lang.String |
getID()
|
java.lang.String |
getPreviousID()
|
static org.gnu.glib.Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
removeListener(ClientListener listener)
Removes a listener |
void |
requestPhase2()
|
void |
requestSave(SaveStyle saveStyle,
boolean shutdown,
InteractStyle interactStyle,
boolean fast,
boolean global)
Request the session manager to save the session in some way. |
void |
saveAnyDialog(org.gnu.gtk.Dialog dialog)
|
void |
saveErrorDialog(org.gnu.gtk.Dialog dialog)
|
void |
setCloneCommand(java.lang.String[] args)
|
void |
setCurrentDirectory(java.lang.String dir)
Sets the directory where all commands are executed. |
void |
setDiscardCommand(java.lang.String[] args)
|
void |
setEnvironment(java.lang.String name,
java.lang.String value)
|
void |
setGlobalConfigPrefix(java.lang.String prefix)
Set the value used for the global config prefix. |
void |
setID(java.lang.String id)
|
void |
setPriority(int priority)
The gnome-session manager includes an extension to the protocol which allows the order in which clients are started up to be organized into a number of run levels. |
void |
setProcessID(int id)
|
void |
setProgram(java.lang.String program)
|
void |
setResignCommand(java.lang.String[] args)
|
void |
setRestartCommand(java.lang.String[] args)
Provide the command that should be used to restart this application. |
void |
setRestartStyle(RestartStyle style)
The session manager usually only restarts clients which are running when the session was last saved. |
void |
setShutdownCommand(java.lang.String[] args)
|
void |
setUserID(java.lang.String id)
|
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Client()
Method Detail |
public java.lang.String getConfigPrefix()
public java.lang.String getGlobalConfigPrefix()
You may also use this prefix as a place to store and retrieve config details that you wish to apply to ALL instances of the app. However, this practice limits user's freedom to configure each instance in a different way so it should be used with caution.
public void setGlobalConfigPrefix(java.lang.String prefix)
The global config prefix defaults to a name based on the name of the executable. This function allows you to set it to a different value. It should be called BEFORE retrieving the config prefix for the first time.
public ClientFlags getFlags()
public void setRestartStyle(RestartStyle style)
public void setPriority(int priority)
public void setCurrentDirectory(java.lang.String dir)
public void setRestartCommand(java.lang.String[] args)
public void setDiscardCommand(java.lang.String[] args)
public void setResignCommand(java.lang.String[] args)
public void setShutdownCommand(java.lang.String[] args)
public void setEnvironment(java.lang.String name, java.lang.String value)
public void setCloneCommand(java.lang.String[] args)
public void setProcessID(int id)
public void setProgram(java.lang.String program)
public void setUserID(java.lang.String id)
public void saveAnyDialog(org.gnu.gtk.Dialog dialog)
public void saveErrorDialog(org.gnu.gtk.Dialog dialog)
public void requestPhase2()
public void requestSave(SaveStyle saveStyle, boolean shutdown, InteractStyle interactStyle, boolean fast, boolean global)
public void flush()
public void connect()
public void disconnect()
public void setID(java.lang.String id)
public java.lang.String getID()
public java.lang.String getPreviousID()
public java.lang.String getDesktopID()
public static org.gnu.glib.Type getType()
public void addListener(ClientListener listener)
ClientListener
public void removeListener(ClientListener listener)
addListener(ClientListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
public org.gnu.glib.EventType getEventType(java.lang.String signal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |