Author Topic: How To Switch The Icon On The Taskbar?  (Read 4744 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Switch The Icon On The Taskbar?
« on: May 10, 2006, 02:54:39 am »
When running evm, you can pass the name of the java application to evm and it will then be part of the task switch chain and use the desktop icon specified by the name passed. How is that implemented? It seems that Qtopia usually takes the name of the executing process and matches it to the value of the Exec variable in the desktop file to determine what icon to display for it.
In the case for the java application, the value of the Exec variable is a batch script that calls evm and passes it the name of the desktop file and then the task switch will recognise that the evm process is associated with the named desktop file and is able to be task switched and displays the icon defined in that desktop file.
I want to implement something similar and write a launcher app that can associate a desktop file to a spawned executable such as qshdlg, opie-sh so that these apps won't get lost when switching tasks, but also to give them an icon on the taskbar.
Any pointers on how I can implement that or which links to relevant API documentation? I have looked through the Trolltech docs but didn't really find anything except sample code for writing taskbar applets which isn't what I want to do unless I am missing something there. I am currently looking at Takahiro's taskswitcher to see if I can perhaps adapt it.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K