kbtv_dcop
index
/usr/local/share/apps/kbtv/kbtv_dcop.py

DCOP interface to kbtv

 
Modules
       
btcopyright

 
Classes
       
dcopexport.DCOPExObj(dcop.DCOPObject)
KbtvDCOPExObj

 
class KbtvDCOPExObj(dcopexport.DCOPExObj)
    Provides a DCOP interface to kbtv. Exports all actions and various
"get and set" methods. Inherits DCOPExObj.
 
 
Method resolution order:
KbtvDCOPExObj
dcopexport.DCOPExObj
dcop.DCOPObject
sip.wrapper
__builtin__.object

Methods defined here:
__init__(self, obj, id)
-> KbtvDCOPExObj
 
The constructor takes the argument obj, which should be the
application's main part/window and the application ID. Most 
but not all exported method names are identical to the actual 
methods' names.

Methods inherited from dcopexport.DCOPExObj:
addMethod(self, signature, pymethod)
add a method to the dict - makes it available to DCOP
signature - a string representing the C++ form of the method declaration
            with arg names removed (eg
pymethod - the Python method corresponding to the method in signature
 
example:
     def someMethod (a, b):
           return str (a + b)
 
     signature = "QString someMethod (int, int)"
     pymethod  =  someMethod
     self.addMethod (signature, pymethod)
 
note that in this case you could add a second entry:
 
     self.addMethod ("QString someMethod (float, float)", someMethod)
 
pymethod can also be a class method, for example - self.someMethod or
someClass.someMethod. In the second case, someClass has to be an instance
of a class (perhaps SomeClass), not the class itself.
 
self.methods is a dict holding all of the methods exposed, indexed by
method signature. In the example above, the signature would be:
 
         someMethod(QString,QString)
 
or everything but the return type, which is stored in the dict entry.
The dict entry is a DCOPExMeth instance.
functions(self)
matchMethod(self, meth)
process(self, meth, data, replyType, replyData)

Data and other attributes inherited from dcop.DCOPObject:
__reduce__ = None
__reduce_ex__ = None
__weakref__ = <attribute '__weakref__' of 'DCOPObject' objects>
list of weak references to the object (if defined)
callingDcopClient = <built-in function callingDcopClient>
connectDCOPSignal = <built-in function connectDCOPSignal>
disconnectDCOPSignal = <built-in function disconnectDCOPSignal>
emitDCOPSignal = <built-in function emitDCOPSignal>
find = <built-in function find>
functionsDynamic = <built-in function functionsDynamic>
hasObject = <built-in function hasObject>
interfaces = <built-in function interfaces>
interfacesDynamic = <built-in function interfacesDynamic>
match = <built-in function match>
objId = <built-in function objId>
objectName = <built-in function objectName>
processDynamic = <built-in function processDynamic>
setCallingDcopClient = <built-in function setCallingDcopClient>
setObjId = <built-in function setObjId>

Methods inherited from sip.wrapper:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Data and other attributes inherited from sip.wrapper:
__new__ = <built-in method __new__ of sip.wrappertype object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

 
Data
        MODULE_AUTHOR = 'Danny Pansters'
MODULE_AUTHOR_EMAIL = 'danny@ricin.com'
MODULE_COPYRIGHT = '(c) 2005-2007, Danny Pansters <danny@ricin.com>'
MODULE_LICENSE = 'BSD'
MODULE_LICENSE_TEXT = '(c) 2005-2007, Danny Pansters <danny@ricin.com>\n...EN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n'