View Single Post
Posts: 82 | Thanked: 214 times | Joined on Jan 2010 @ Cape town
#36
Hah, making me feel old. I'm doing second year engineering up at UCT - electrical and computer to be specific.

That's exactly what I have done - apologizes if it wasn't clear from my explanation. The daemon runs in the background and handles all the work (connecting to servers / etc) and it emits DBUS signals when appropriate / pop up notifications. The GUI, when running, receives these signals and updates its view as needed. It also calls a few DBUS methods every now and again, like if a user requests a sync and such.

As for the event loop, it's a standard gobject main loop, DBUS requires one. My actual work gets handled by the imaplib2 library, which is highly threaded in itself.

The code is up at https://github.com/cb22/immoral - feel free to take a look. Some parts of it (mostly the GUI bits) I'm not too proud of - but it's my first venture into using QML.

As for eating your sister... Well, it probably won't do that but it might kill any kittens you have floating around... Just kidding - the code doesn't even know how to delete mail off the server yet, which is a nice safety net

I write Signals I tomorrow... A most enjoyable (hear the sarcasm?) course consisting of the basics of Fourier transforms... After that it's party time, then overseas. So I'll probably get around to debugging in 2 - 3 days

EDIT: Also, the commit messages can be a bit, err, ******ed... My main use for github so far had been moving work between my laptop and desktop...