diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-06-28 09:05:21 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-06-28 09:05:21 +0800 |
| commit | ed6e1911da0b08df1c32e5259eee0de5c7d252c3 (patch) | |
| tree | 03d543033a2aaf235f185f9425120f2adcb392f1 /ibus/interface | |
| parent | 26c4f00c471df6cb35c1f5daaf95afbacc924616 (diff) | |
| download | ibus-ed6e1911da0b08df1c32e5259eee0de5c7d252c3.tar.gz ibus-ed6e1911da0b08df1c32e5259eee0de5c7d252c3.tar.xz ibus-ed6e1911da0b08df1c32e5259eee0de5c7d252c3.zip | |
Add motheds of IConfig interface.
Diffstat (limited to 'ibus/interface')
| -rw-r--r-- | ibus/interface/iconfig.py | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/ibus/interface/iconfig.py b/ibus/interface/iconfig.py index a62a705..68a0c8b 100644 --- a/ibus/interface/iconfig.py +++ b/ibus/interface/iconfig.py @@ -29,16 +29,40 @@ class IConfig (dbus.service.Object): # define method decorator. method = lambda **args: \ dbus.service.method (dbus_interface = IBUS_CONFIG_IFACE, \ - **args) + **args) # define signal decorator. signal = lambda **args: \ dbus.service.signal (dbus_interface = IBUS_CONFIG_IFACE, \ - **args) + **args) # define async method decorator. async_method = lambda **args: \ dbus.service.method (dbus_interface = IBUS_CONFIG_IFACE, \ - async_callbacks = ("reply_cb", "error_cb"), \ - **args) + async_callbacks = ("reply_cb", "error_cb"), \ + **args) + + @method (in_signature = "ss", out_signature = "s") + def ReadString (self, key, default_value): + pass + + @method (in_signature = "si", out_signature = "i") + def ReadInt (self, key, default_value): + pass + + @method (in_signature = "sb", out_signature = "b") + def ReadBool (self, key, default_value): + pass + + @method (in_signature = "ss") + def WriteString (self, key, value): + pass + + @method (in_signature = "si", value) + def WriteInt (self, key): + pass + + @method (in_signature = "sb", value) + def WriteBool (self, key): + pass |
