org.gnu.gconf
public class ConfClient extends GObject
Method Summary | |
---|---|
void | addDirectory(String dir, ConfClientPreloadType type)
Add a directory to the list of directories the ConfClient will watch. |
void | addListener(ConfClientListener listener, String nameSpace)
Register an object to handle notify events.
|
void | clearCache()
If you know you're done reading values for a while you can blow away the
cache. |
boolean | dirExists(String dir)
Check to see if a directory exists in the GConf database.
|
protected static Handle | gconf_client_add_dir(Handle client, String dir, int preloadType) |
protected static String[] | gconf_client_all_dirs(Handle client, String dir, Handle error) |
protected static Handle[] | gconf_client_all_entries(Handle client, String dir, Handle error) |
protected static void | gconf_client_clear_cache(Handle client) |
protected static boolean | gconf_client_dir_exists(Handle client, String dir, Handle error) |
protected static Handle | gconf_client_get(Handle client, String key, Handle error) |
protected static boolean | gconf_client_get_bool(Handle client, String key, Handle error) |
protected static Handle | gconf_client_get_default() |
protected static Handle | gconf_client_get_default_from_schema(Handle client, String key, Handle error) |
protected static Handle | gconf_client_get_entry(Handle client, String key, String locale, boolean useSchemaDefault, Handle error) |
protected static double | gconf_client_get_float(Handle client, String key, Handle error) |
protected static Handle | gconf_client_get_for_engine(Handle engine) |
protected static int | gconf_client_get_int(Handle client, String key, Handle error) |
protected static Object[] | gconf_client_get_list(Handle client, String key, int listType, Handle error) |
protected static boolean | gconf_client_get_pair(Handle client, String key, int carType, int cdrType, int[] car, int[] cdr, Handle error) |
protected static Handle | gconf_client_get_schema(Handle client, String key, Handle error) |
protected static String | gconf_client_get_string(Handle client, String key, Handle error) |
protected static Handle | gconf_client_get_without_default(Handle client, String key, Handle error) |
protected int | gconf_client_notify_add(Handle client, String namespace, Handle error) |
protected static void | gconf_client_notify_remove(Handle client, int cnxn) |
protected static void | gconf_client_preload(Handle client, String dirname, int type, Handle error) |
protected static Handle | gconf_client_remove_dir(Handle client, String dir) |
protected static void | gconf_client_set(Handle client, String key, Handle val, Handle error) |
protected static boolean | gconf_client_set_bool(Handle client, String key, boolean val, Handle error) |
protected static boolean | gconf_client_set_float(Handle client, String key, double val, Handle error) |
protected static boolean | gconf_client_set_int(Handle client, String key, int val, Handle error) |
protected static boolean | gconf_client_set_list(Handle client, String key, int listType, Object[] list, Handle error) |
protected static boolean | gconf_client_set_pair(Handle client, String key, int carType, int cdrType, Handle car, Handle cdr, Handle error) |
protected static boolean | gconf_client_set_schema(Handle client, String key, Handle val, Handle error) |
protected static boolean | gconf_client_set_string(Handle client, String key, String val, Handle error) |
protected static Handle | gconf_client_suggest_sync(Handle client) |
protected static boolean | gconf_client_unset(Handle client, String key, Handle error) |
protected static void | gconf_client_value_changed(Handle client, String key, Handle value) |
ConfValue | get(String key)
Get the value of a configuration key.
|
List | getAllDirs(String dir)
Get a list of the subdirectories in the provided directory.
|
List | getAllEntries(String dir)
Get a list of all ConfEntries in the provided direcotry.
|
boolean | getBoolean(String key)
Request the boolean value stored at the provided key.
|
ConfValue | getDefaultFromSchema(String key)
Return the default value stored in the key's schema, if the key has a
schema associated and the schema exists and the schema contains a default
value.
|
double | getDouble(String key)
Request the double value stored at the provided key.
|
ConfEntry | getEntry(String key, String locale, boolean useSchemaDefault)
Obtain the full ConfEntry for a value.
|
static ConfClient | getInstance()
Method to get the default ConfClient
|
int | getInt(String key)
Request the int value stored at the provided key.
|
Object[] | getList(String key, ConfValueType listType)
Request the object array stored at the key. |
ConfSchema | getSchema(String key)
Request the ConfSchema value stored at the provided key.
|
String | getString(String key)
Request the String value stored at the provided key.
|
void | notifyCallback() |
protected void | notifyCallback(Handle e, String nameSpace) |
void | preload(String directory, ConfClientPreloadType type)
Preload a directory. |
void | removeDirectory(String dir)
Remove a directory from the list created with addDirectory.
|
void | removeListener(ConfClientListener listener, String nameSpace)
Removes a listener.
|
void | set(String key, ConfValue value)
Set the value of a configuration key.
|
boolean | setBoolean(String key, boolean value)
Change the value stored at the provided key to the provided boolean
value.
|
boolean | setDouble(String key, double value)
Change the value stored at the provided key to the provided double value.
|
boolean | setInt(String key, int value)
Change the value stored at the provided key to the provided int value.
|
boolean | setList(String key, ConfValueType listType, List value) |
boolean | setSchema(String key, ConfSchema value)
Change the value stored at the provided key to the provided ConfSchema
value.
|
boolean | setString(String key, String value)
Change the value stored at the provided key to the provided String value.
|
void | suggestSync()
Suggest to gconfd that you've just finished a block of changes and it
would be an optimal time to sync to permanent storage.
|
void | t() |
boolean | unset(String key)
Unsets the value of the provided key.
|
Parameters: dir type
Throws: ConfException
See Also: ConfClientListener
Parameters: dir
Throws: ConfException
Parameters: key
Throws: ConfException
Parameters: dir
Throws: ConfException
Parameters: dir
Throws: ConfException
Parameters: key
Throws: ConfException
Parameters: key
Throws: ConfException
Parameters: key
Throws: ConfException
Parameters: key locale useSchemaDefault
Throws: ConfException
Returns: The default ConfClient.
Parameters: key
Throws: ConfException
Parameters: key listType
Throws: ConfException
Parameters: key
Throws: ConfException
Parameters: key
Throws: ConfException
Parameters: directory The directory to load type How to preload the directory.
Throws: ConfException
Parameters: dir
Throws: ConfException
See Also: ConfClient
Parameters: key value
Throws: ConfException
Parameters: key value
Throws: ConfException
Parameters: key value
Throws: ConfException
Parameters: key value
Throws: ConfException
Parameters: key value
Throws: ConfException
Parameters: key value
Throws: ConfException
Throws: ConfException
Parameters: key
Throws: ConfException