encode.config.Directory Class Reference

List of all members.

Public Member Functions

def __init__
def directory
def remove_all
def add_string
def add_strings
def add_int
def add_ints
def add_bool
def add_bools
def get_string
def get_strings
def get_int
def get_ints
def get_bool
def get_bools
def set_string
def set_strings
def set_int
def set_ints
def set_bool
def set_bools
def unset

Detailed Description

A handle for accessing settings under a particular GConf directory.  When registering a
   callback, it will be called immediately with the current value of the associated
   variable.  The correct set/get/add method needs to be used depending on the type of the
   target variable.

Definition at line 13 of file config.py.


Member Function Documentation

def encode.config.Directory.__init__ (   self,
  name 
)

Initialise a handle to the "/apps/NAME" directory.

Definition at line 16 of file config.py.

def encode.config.Directory.add_bool (   self,
  name,
  callback 
)

Register CALLBACK to be called when the value of the NAME variable changes.

Definition at line 92 of file config.py.

def encode.config.Directory.add_bools (   self,
  name,
  callback 
)

Register CALLBACK to be called when the value of the NAME variable changes.

Definition at line 97 of file config.py.

def encode.config.Directory.add_int (   self,
  name,
  callback 
)

Register CALLBACK to be called when the value of the NAME variable changes.

Definition at line 82 of file config.py.

def encode.config.Directory.add_ints (   self,
  name,
  callback 
)

Register CALLBACK to be called when the value of the NAME variable changes.

Definition at line 87 of file config.py.

def encode.config.Directory.add_string (   self,
  name,
  callback 
)

Register CALLBACK to be called when the value of the NAME variable changes.

Definition at line 72 of file config.py.

def encode.config.Directory.add_strings (   self,
  name,
  callback 
)

Register CALLBACK to be called when the value of the NAME variable changes.

Definition at line 77 of file config.py.

def encode.config.Directory.directory (   self,
  name 
)

Create a handle to the NAME subdirectory.

Definition at line 31 of file config.py.

def encode.config.Directory.get_bool (   self,
  name,
  default = None 
)

Get the current value of the NAME variable.

Definition at line 122 of file config.py.

def encode.config.Directory.get_bools (   self,
  name,
  default = None 
)

Get the current value of the NAME variable.

Definition at line 127 of file config.py.

def encode.config.Directory.get_int (   self,
  name,
  default = None 
)

Get the current value of the NAME variable.

Definition at line 112 of file config.py.

def encode.config.Directory.get_ints (   self,
  name,
  default = None 
)

Get the current value of the NAME variable.

Definition at line 117 of file config.py.

def encode.config.Directory.get_string (   self,
  name,
  default = None 
)

Get the current value of the NAME variable.

Definition at line 102 of file config.py.

def encode.config.Directory.get_strings (   self,
  name,
  default = None 
)

Get the current value of the NAME variable.

Definition at line 107 of file config.py.

def encode.config.Directory.remove_all (   self  ) 

Remove all callbacks registered via this handle.

Definition at line 37 of file config.py.

def encode.config.Directory.set_bool (   self,
  name,
  value 
)

Change the value of the NAME variable.

Definition at line 156 of file config.py.

def encode.config.Directory.set_bools (   self,
  name,
  values 
)

Change the value of the NAME variable.

Definition at line 162 of file config.py.

def encode.config.Directory.set_int (   self,
  name,
  value 
)

Change the value of the NAME variable.

Definition at line 144 of file config.py.

def encode.config.Directory.set_ints (   self,
  name,
  values 
)

Change the value of the NAME variable.

Definition at line 150 of file config.py.

def encode.config.Directory.set_string (   self,
  name,
  value 
)

Change the value of the NAME variable.

Definition at line 132 of file config.py.

def encode.config.Directory.set_strings (   self,
  name,
  values 
)

Change the value of the NAME variable.

Definition at line 138 of file config.py.

def encode.config.Directory.unset (   self,
  name 
)

Change the value of the NAME variable to its default.

Definition at line 168 of file config.py.


The documentation for this class was generated from the following file:
Generated on Thu Jan 18 09:47:43 2007 for Encode by  doxygen 1.4.7