diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-05 09:18:11 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-05 09:18:11 +0800 |
commit | f4348f4d6fffb101f5176174698aa0dd1617eebc (patch) | |
tree | 5b99b7a10ada076442d4fa358e2529e8192edf82 /ibus/interface | |
parent | 2266e16f4fed8dde3b8c0414731937eefc631ef8 (diff) | |
download | ibus-f4348f4d6fffb101f5176174698aa0dd1617eebc.tar.gz ibus-f4348f4d6fffb101f5176174698aa0dd1617eebc.tar.xz ibus-f4348f4d6fffb101f5176174698aa0dd1617eebc.zip |
WIP. config.
Diffstat (limited to 'ibus/interface')
-rw-r--r-- | ibus/interface/__init__.py | 9 | ||||
-rw-r--r-- | ibus/interface/iconfig.py | 16 | ||||
-rw-r--r-- | ibus/interface/iibus.py | 24 |
3 files changed, 39 insertions, 10 deletions
diff --git a/ibus/interface/__init__.py b/ibus/interface/__init__.py index 3c80a4f..618e96b 100644 --- a/ibus/interface/__init__.py +++ b/ibus/interface/__init__.py @@ -19,7 +19,8 @@ # Free Software Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307 USA -from iibus import IIBus -from iengine import IEngine -from ienginefactory import IEngineFactory -from ipanel import IPanel +from iibus import * +from iengine import * +from ienginefactory import * +from ipanel import * +from iconfig import * diff --git a/ibus/interface/iconfig.py b/ibus/interface/iconfig.py index 587aec6..be4334d 100644 --- a/ibus/interface/iconfig.py +++ b/ibus/interface/iconfig.py @@ -43,26 +43,30 @@ class IConfig (dbus.service.Object): **args) @method (in_signature = "ss", out_signature = "s") - def ReadString (self, key, default_value): + def GetString (self, key, default_value): pass @method (in_signature = "si", out_signature = "i") - def ReadInt (self, key, default_value): + def GetInt (self, key, default_value): pass @method (in_signature = "sb", out_signature = "b") - def ReadBool (self, key, default_value): + def GetBool (self, key, default_value): pass @method (in_signature = "ss") - def WriteString (self, key, value): + def SetString (self, key, value): pass @method (in_signature = "si") - def WriteInt (self, key, value): + def SetInt (self, key, value): pass @method (in_signature = "sb") - def WriteBool (self, key, value): + def SetBool (self, key, value): + pass + + @signal (signature = "sv") + def ValueChanged (self, key, value): pass diff --git a/ibus/interface/iibus.py b/ibus/interface/iibus.py index a196acb..56d4da6 100644 --- a/ibus/interface/iibus.py +++ b/ibus/interface/iibus.py @@ -78,6 +78,10 @@ class IIBus (dbus.service.Object): @method (in_signature = "ob") def RegisterPanel (self, object_path, replace, dbusconn): pass + # methods for ibus config + @method (in_signature = "ob") + def RegisterConfig (self, object_path, replace, dbusconn): pass + # general methods @method (out_signature = "av") def GetFactories (self, dbusconn): pass @@ -91,6 +95,24 @@ class IIBus (dbus.service.Object): @method (in_signature = "s", out_signature = "sb") def GetInputContextStates (self, ic, dbusconn): pass + @async_method (in_signature = "ss") + def ConfigSetString (self, key, value, dbusconn, reply_cb, error_cb): pass + + @async_method (in_signature = "si") + def ConfigSetInt (self, key, value, dbusconn, reply_cb, error_cb): pass + + @async_method (in_signature = "sb") + def ConfigSetBool (self, key, value, dbusconn, reply_cb, error_cb): pass + + @async_method (in_signature = "s", out_signature = "s") + def ConfigGetString (self, key, dbusconn, reply_cb, error_cb): pass + + @async_method (in_signature = "s", out_signature = "i") + def ConfigGetInt (self, key, dbusconn, reply_cb, error_cb): pass + + @async_method (in_signature = "s", out_signature = "b") + def ConfigGetBool (self, key, dbusconn, reply_cb, error_cb): pass + #sigals def CommitString (self, ic, text): pass @@ -99,3 +121,5 @@ class IIBus (dbus.service.Object): def Enabled (self, ic): pass def Disabled (self, ic): pass + + def ConfigValueChanged (self, key, value): pass |