Author Topic: Qcop Message Lists  (Read 3896 times)

papercrane

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://reversefold.com
Qcop Message Lists
« on: February 15, 2005, 07:47:02 pm »
Is there anywhere I can get a definitive list of QCop messages? Is there anyw ay to perhaps query an app to see what it can do? I've found some listings of the system qcop messages, but I'm actually looking for the messages that can be sent to the Music Player on the C series (I have a C3000).

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Qcop Message Lists
« Reply #1 on: February 15, 2005, 09:09:53 pm »
http://doc.trolltech.com/qtopia2.1/html/qcop.html has a bunch of them, but I doubt you'll ever get a definitive list as each app can use qcop itself and isn't limited to set qtopia has.

There was an app I saw that allowed you to "watch" the qcop messages and store ones for specific apps. This may help you in your hunt - If I can find it I'll post the link.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Qcop Message Lists
« Reply #2 on: February 16, 2005, 09:12:45 am »
Here is the qcop watching program I was talking about

http://www2.gol.com/users/ikezawa/zaurus/qcoptest.html

The site is Japanese, but the program works in english

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Qcop Message Lists
« Reply #3 on: February 16, 2005, 11:12:16 am »
Here is the result of my search through Sharp Qtopia binaries:

QPE/System  

volumeChange(bool)
enableWizardBtn(bool)

linkChanged(QString)
setBlankLCD(int)
setScreenSaverMode(int)
setScreenSaverInterval(int)
setScreenSaverIntervals(int,int,int)
setBacklight(int)
setScreenSaverOnOff(bool)
setSuspendOnOff(bool)
brightnessChange(int,int)

remoteControl(int)          ?
remoteControl(int,int,int)      ?
registerRemconMaster(QString,int)   ?

shutdown()  
restart()  
quit()  
mustQuit()
stopSamba()
startSamba()
startSync()
stopSync()
busy()
notBusy(QString)    
execute(QString)

timeChange(QString)

__zoomin
__zoomout
__rotate
__network_connect
__network_disconnect

execute(QString,QString)
addPrivilegeApp(QString)    ?    
removePrivilegeApp(QString) ?
raiseMenu()

QPE/Network

connectRequest()
disconnectRequest(int)
choicesChanged()
up()
down()

QPE/Card
mtabChanged()
stabChanged()

QPE/TaskBar

setLed(int,bool)    ?
reloadApplets()
reloadInputMethods()
updateMenu()
message(QString)
showInputMethod()  
hideInputMethod()  
changeInputMethod()
rotateInputMethod()
soundAlarm()

QPE/Application/addressbook

addContact(QString,QString) "First Last"  e-mail
editPersonal()
editPersonalAndClose()
nextView()
saveXML()
searchPhoneNo(QString,QString)
addPhoneNo(QString,QString)

QPE/Application/datebook

nextView()

QPE/Application/qtmail

writeMail(QString,QString)  "First Last"  e-mail
sendrecv()
nextView()
reload()

QPE/Application/launcher

escKey()
raise()
nextView()

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Qcop Message Lists
« Reply #4 on: February 16, 2005, 11:13:24 am »
Also, you can open program binary in a text editor and just look for string that look like a qcop messages

eviLjazz

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://katastrophos.net/andre/blog
Qcop Message Lists
« Reply #5 on: February 17, 2005, 06:19:03 pm »
Hi,

is there a way to suspend the Zaurus via qcop?

For some reason I have big trouble waking up the machine after suspending via
apm --suspend

The whole Qtopia UI is slooow. Actually I can see how it draws the content.
The funny thing is that my SSH connection seems to be running quite fine perfomance-wise.

I have no idea what the cause is. Maybe someone can shed a light on this.
I know for sure that this behaviour showed up on all ROMs I've tested (all Cacko versions, all Sharp). Perhaps I'm just doing something wrong?!

Regards,
evil
Sharp Zaurus SL-C3200/36GB running Cacko : Fujitsu LifeBook U2010/64GB SSD running Win7 : Nokia N900 (yes, flame me.) Blog : Twitter : Trac
Quasar Media Player : QScrobbler : Enhanced audio driver and mixer for C1000/C3x00 : Unified Sharp/Tetsu/Cacko/pdaXrom Kernel 2.4.20 branch : My packages : Sources

eviLjazz

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://katastrophos.net/andre/blog
Qcop Message Lists
« Reply #6 on: May 19, 2005, 09:40:08 pm »
Okay, since nobody seems to have this problem described above with
apm --suspend

I had to come up with my own solution. Actually it's quite easy to figure out once you use qcoptest. Great program!

qcop QPE/System "execute(QString)" suspend

will send your Zaurus into sleep mode.
Waking it up doesn't show the symptoms I had when using apm --suspend, ie. unusable UI.

I still don't get why that "apm --suspend" doesn't work as expected.
I guess it has to do with some framebuffer/graphic driver quirk/problem. It's only the graphics output that's incredibly slowed down - everything else, like using the Zaurus via SSH, works as usual. Perhaps it's a problem only visible with my C750, no idea...
Anyway, the line above works for me. If anybody else has the same problem, this is a solution.

So, now I can finally listen to music while falling asleep - and have my Zaurus suspend for sure after 20 minutes or so...

sleep 1200 && qcop QPE/System "execute(QString)" suspend

does the trick
« Last Edit: May 19, 2005, 09:52:53 pm by eviLjazz »
Sharp Zaurus SL-C3200/36GB running Cacko : Fujitsu LifeBook U2010/64GB SSD running Win7 : Nokia N900 (yes, flame me.) Blog : Twitter : Trac
Quasar Media Player : QScrobbler : Enhanced audio driver and mixer for C1000/C3x00 : Unified Sharp/Tetsu/Cacko/pdaXrom Kernel 2.4.20 branch : My packages : Sources