On Mon, Jul 27, 2009 at 11:58, Michal Brzozowski<ruso...@poczta.fm> wrote: > 2009/7/27 Sebastian Krzyszkowiak <seba.d...@gmail.com> >> >> I didn't work at folders yet. To differ between incoming and sent, >> just query for {'Direction':'in'} or {'Direction':'out'} >> >> NewMessage notifies about every message added to database. It's >> emitted at boot when reading messages from db, and it's emmited after >> adding message by Add method. It's also emitted on incoming message. >> >> IncomingMessage notifiers only about new incoming message. >> >> Add just adds message to default backend. opimd can't send messages >> (and I don't know if it should, but that's topic to discuss by FSO >> guys). So use Add to store sent messages or drafts. > > If I send a message using the GSM.SMS service, will it automatically be > inserted to the database (with 'Direction' = 'out') and will I be notified > with the NewMessage signal? >
No, now you have to add it using PIM.Messages.Add method. Then it'll be notified with NewMessage signal. -- Sebastian Krzyszkowiak dos _______________________________________________ devel mailing list devel@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/devel