1
Python / Xmlrpclib For Python
« on: January 03, 2006, 04:19:36 pm »
Please disregard, as I discovered http://pyqplayer.sourceforge.net/cgi-bin/b...thonZaurusImage, which fits the bill nicely!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
system("qcop QPE/Application/HancomMobileWord 'setDocument(QString)' '/path/to/myDocument.doc'")
The Ruby system() method that wraps the qcop call simply launches a sub-shell that loads up Hancom Word set to a particular document. The problem is when I close Hancom Word the QPEApplication object disappears. When I check the active processes I see that my Ruby script is running but I can't seem to recover the GUI app I created. If I try to issue something like:qcop QPE/Application/myGUIApp 'setDocument()'
there is a brand new instance of the GUI app I have. The original one still doesn't appear. Or if I try:qcop QPE/Application/myGUIApp 'raise()'
nothing happens.system("qcop QPE/Application/HancomMobileWord 'setDocument(QString)' '/path/to/myDocument.doc'")
This system() methods forks out a subshell and should return back to the main Ruby/Qtopia application. Although the Ruby script is still an active process the Qtopia app has disappeared. How can I bring it back?
No problem, glad it worked,And as a follow up for anyone who's interested there is a tiff viewer available for the Zaurus. It's part of zfax (http://www.iaccarino.de/silvio/zfax.htm). After installing that and having a nicely sized swapfile I should be over than hurdle as well...
Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=98000\"][{POST_SNAPBACK}][/a][/div]
Though from my understanding each app can have it's own calls (there was an app floating round a while back which listed all of the calls being made - Japanese iirc, anyone remember what it was?)Actually I found the app that you are talking about. It's here.. [a href=\"http://www2.gol.com/users/ikezawa/zaurus/qcoptest.html]http://www2.gol.com/users/ikezawa/zaurus/qcoptest.html[/url]
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
c:\program files\microsoft office\office\winword.exe myDocument.doc
Appreciate the help though. This should get me going.
I think you'd start Hancom Word, then issue the QCop call separately (though it's only a guess).So it looks as if I would issue something like
Here's a list of some commands: http://doc.trolltech.com/qtopia2.1/html/qcop.html
Though from my understanding each app can have it's own calls (there was an app floating round a while back which listed all of the calls being made - Japanese iirc, anyone remember what it was?)
In any case you may be okay with a plain "setDocument()" call.
Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97795\"][{POST_SNAPBACK}][/a][/div]
qcop QPE/Application/HancomMobileWord 'setDocument(QString)' 'thisDocument.doc'
in order to have HancomMobileWord launch the document I want. Since my Z is back at the office I will have to wait until Monday to play around with qcop some. Hopefully it won't take too much fiddling. That will leave me with the tiff image viewing as the only thing I need in order to have my Ruby/Qt app fully ported over from its native win32 platform. Since I installed the libtiff ipk the other day maybe looking at it closer will close that gap as well.Thanks for the reply. I will check regarding the /etc/init.d/qpe file to see if I can start Samba and mount my network Samba shares that way. I did a ps -ax and saw that the HancomMobileWord process was followed by a qcop argument. What is the syntax if I wanted to launch a specific document? Something like /tmp/thisDocument.doc? Would I issue a command line ofQuotelooking for a way to run a script as root when the PDA finshes loading Qtopia
iirc the init scripts stop when Qtopia is loaded so you can't use them.
Can you not do this before Qtopia is loaded? In which case add it to the init scripts, otherwise I'd add it to /etc/init.d/qpe (I think that's the name of the script which is used to start Qtopia - I'm not running it so this is from memory).QuoteIs there a way to launch HancomMobileWord from the command line with a filename as the argument?
I imagine it requires a QCOP call to tell it which file to open.
No idea about the TIFFs I'm afraid.
Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97770\"][{POST_SNAPBACK}][/a][/div]
HancomMobileWord -qcop /tmp/thisDocument.doc
If you could provide me an example I'd be eternally grateful. Sorry for my ignorance. I used the Z back in 2002-2003 and just picked it up again for some Ruby/Qt projects I've been working on. Very rusty to say the least :-)
Now I have to learn C and Perl to write apps for the ZaurusActually I am just finishing a CRM application where one of the client choices is a Sharp Zaurus SL-5500 (Sharp 3.10 ROM). And the Zaurus version of the application was creating using Ruby with Qt/Embedded bindings. Other than a few tweaks here and there the code is the same between the Zaurus version and the Ruby/Qt version I have running on Windows 2000/XP. I am not much of an IDE guy, as I coded everything using Scite. But if I wanted to I could've used Qt Designer and ported things into Ruby using some utilities that come with the Ruby Qt bindings. In any event, I really enjoy coding in Ruby and was glad that I could use the language for my Zaurus work :-)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97644\"][{POST_SNAPBACK}][/a][/div]
HancomMobileWord /home/zaurus/myDocument.doc