LiveConnectExtension Class Reference
from PyKDE4.kparts import *
Inherits: QObject
Namespace: KParts.LiveConnectExtension
Detailed Description
An extension class for LiveConnect, i.e. a call from JavaScript from a HTML page which embeds this part. A part can have an object hierarchie by using objid as a reference to an object.
Enumerations | |
| Type | { TypeVoid, TypeBool, TypeFunction, TypeNumber, TypeObject, TypeString } |
Methods | |
| __init__ (self, KParts.ReadOnlyPart parent) | |
| bool | call (self, long objid, QString func, QStringList args, KParts.LiveConnectExtension.Type type, long retobjid, QString value) |
| KParts.LiveConnectExtension | childObject (self, QObject obj) |
| bool | get (self, long objid, QString field, KParts.LiveConnectExtension.Type type, long retobjid, QString value) |
| bool | put (self, long objid, QString field, QString value) |
| unregister (self, long objid) | |
Method Documentation
| __init__ | ( | self, | ||
| KParts.ReadOnlyPart | parent | |||
| ) |
| bool call | ( | self, | ||
| long | objid, | |||
| QString | func, | |||
| QStringList | args, | |||
| KParts.LiveConnectExtension.Type | type, | |||
| long | retobjid, | |||
| QString | value | |||
| ) |
calls a function of objid, return true on success
| KParts.LiveConnectExtension childObject | ( | self, | ||
| QObject | obj | |||
| ) |
| bool get | ( | self, | ||
| long | objid, | |||
| QString | field, | |||
| KParts.LiveConnectExtension.Type | type, | |||
| long | retobjid, | |||
| QString | value | |||
| ) |
get a field value from objid, return true on success
put a field value in objid, return true on success
| unregister | ( | self, | ||
| long | objid | |||
| ) |
notifies the part that there is no reference anymore to objid
Enumeration Documentation
| Type |
- Enumerator:
-
TypeVoid = 0 TypeBool TypeFunction TypeNumber TypeObject TypeString
KDE 4.4 PyKDE API Reference