Re: Storage in Gecko

2013-04-27 Thread Jonathan Protzenko
Hi, I once met a similar need: a simple key/storage API for my addon. I ended up writing a "SimpleStorage" module that uses an underlying SQLite database. I'm pretty sure I fell into most of the pitfalls of using SQLite without being a guru, but here's the link for posterity: - sample usage

Re: jsm source (mercurial )

2013-01-06 Thread Jonathan Protzenko
On Sun 06 Jan 2013 03:49:46 PM CET, rvj wrote: > Yes thanks . > > Thats where I started before getting sidetracked looking for > test functions in the Mercurial source ...something which I am just > finding my around https://github.com/protz/gpgfox/blob/0d2fb7c0e207c8a76def0d87b0888b759b2f6ffe/

Re: jsm source (mercurial )

2013-01-06 Thread Jonathan Protzenko
The code lives there http://hg.mozilla.org/ipccode/ and is very well-documented. It's all JSM's so it should fit your use case very well. Cheers, jonathan On Sun 06 Jan 2013 02:48:59 PM CET, rvj wrote: > OK think Ive found it in testframework.js > > I could really do with a properly documente

Re: passing command line and filenames as parameters to nsiProcess

2012-12-25 Thread Jonathan Protzenko
ncements at > <https://sourceforge.net/p/enigmail/source/ci/master/tree/ipc/> > > -Patrick > > On 23.12.12 10:24, Jonathan Protzenko wrote: >> Patrick Brunschwig used to work on ipccode, the XPCOM library that is >> able to read/write from a process's stdin/stdout. H

Re: passing command line and filenames as parameters to nsiProcess

2012-12-23 Thread Jonathan Protzenko
Patrick Brunschwig used to work on ipccode, the XPCOM library that is able to read/write from a process's stdin/stdout. He uses it to communicate with gpg for Enigmail (Thunderbird addon). http://hg.mozilla.org/ipccode/ I don't know what the status of this code is, but from reading https://bu