On Friday 09 June 2006 13:51, Volker Kuhlmann wrote:
> Wow! How do I find out which functions it gives access to, and what
> their usage is? How do you make this in particular work?

DCOP is pretty neat.

Just go to the command prompt and type dcop and it will return a list of all 
the available interfaces that programs have exported.

Just add one of the names it spits out onto your command and keep going down 
the tree. e.g;

[EMAIL PROTECTED]:~$ dcop
KWeatherService
kwin
kicker
kaddressbook
konversation
[snip]

[EMAIL PROTECTED]:~$ dcop kaddressbook
qt
0x8591b70
0xb245ea4
AddressBookServiceIface
CalendarIface
KABC::AddresseeHelper
KAddressBookIface
KDebug
KDirNotify-1
KIMProxyIface
[snip]

[EMAIL PROTECTED]:~$ dcop kaddressbook KAddressBookIface
QCStringList interfaces()
QCStringList functions()
void addEmail(QString addr)
void importVCard(QString vCardURL)
ASYNC showContactEditor(QString uid)
void newContact()
QString getNameByPhone(QString phone)
void save()
void exit()
bool handleCommandLine()

[EMAIL PROTECTED]:~$ dcop kaddressbook KAddressBookIface getNameByPhone 
+6436846987
Movie Max 5

Pretty neat huh. There's also a GUI browser kdcop - but it doesn't seem to 
work for me at the moment.

hads

-- 
clone, n:
        1. An exact duplicate, as in "our product is a clone of their
        product."  2. A shoddy, spurious copy, as in "their product
        is a clone of our product."

Reply via email to