|
Hi, all.
I can't find an easy way how to write client application that gets all messages from opimd. I tried mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Messages org.freesmartphone.PIM.Messages.Query '{}' but this doesn't work when opimd is still in the stage of reading SMSs from SIM - it simply returns only the messages that were already loaded from SIM. There is another tool that looks might help: the signal org.freesmartphone.PIM.Messages.NewMessage, which seems to be emitted when a message is loaded. To accomplish the task, one can thus combine these two methods, ie. 1. Start listening to the signal "org.freesmartphone.PIM.Messages.NewMessage" and saving all results. 2. Do "org.freesmartphone.PIM.Messages.Query {}" and save results. Each message obtained this way must be checked for duplicity (to prevent the situation that some of the "NewMessage" signals were received after we did step 1. and before we did step 2.). My question is: is there any easier way to get all messages from opimd (ie. without the need to checking for duplicit messages)? (It would be sufficient to wait until all messages are loaded from SIM to opimd and then do "org.freesmartphone.PIM.Messages.Query {}" - but is there any way to figure out whether all messsages are loaded from SIM to opimd?) With regards, Tomas Tintera _______________________________________________ support mailing list [hidden email] https://lists.openmoko.org/mailman/listinfo/support |
|
On Mon, Feb 20, 2012 at 21:27, Tomas Tintera <[hidden email]> wrote:
> Hi, all. > > I can't find an easy way how to write client application that gets all messages from opimd. I tried > > mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Messages org.freesmartphone.PIM.Messages.Query '{}' > > but this doesn't work when opimd is still in the stage of reading SMSs from SIM - it simply returns only the messages that were already loaded from SIM. > > There is another tool that looks might help: the signal org.freesmartphone.PIM.Messages.NewMessage, which seems to be emitted when a message is loaded. > > To accomplish the task, one can thus combine these two methods, ie. > 1. Start listening to the signal "org.freesmartphone.PIM.Messages.NewMessage" and saving all results. > 2. Do "org.freesmartphone.PIM.Messages.Query {}" and save results. Each message obtained this way must be checked for duplicity (to prevent the situation that some of the "NewMessage" signals were received after we did step 1. and before we did step 2.). > > My question is: is there any easier way to get all messages from opimd (ie. without the need to checking for duplicit messages)? (It would be sufficient to wait until all messages are loaded from SIM to opimd and then do "org.freesmartphone.PIM.Messages.Query {}" - but is there any way to figure out whether all messsages are loaded from SIM to opimd?) > > > With regards, > Tomas Tintera opimd doesn't read messages from SIM for a looong time. Which version do you use? Also, using opimd with mdbus can be problematic. For CLI usage there is opimd-cli python script in [1] which should do exactly what you want. It should be available in repo as opimd-utils-cli (IIRC). [1] http://git.shr-project.org/git/?p=opimd-utils.git;a=summary -- Sebastian Krzyszkowiak dos _______________________________________________ support mailing list [hidden email] https://lists.openmoko.org/mailman/listinfo/support |
|
> ------------ Original message ------------
> Od: Sebastian Krzyszkowiak <[hidden email]> > Předmět: Re: How to get all messages from opimd? > Datum: 20.2.2012 21:40:17 > ---------------------------------------- > On Mon, Feb 20, 2012 at 21:27, Tomas Tintera <[hidden email]> wrote: > > Hi, all. > > > > I can't find an easy way how to write client application that gets all > messages from opimd. I tried > > > > mdbus -s org.freesmartphone.opimd /org/freesmartphone/PIM/Messages > org.freesmartphone.PIM.Messages.Query '{}' > > > > but this doesn't work when opimd is still in the stage of reading SMSs from > SIM - it simply returns only the messages that were already loaded from SIM. > > > > There is another tool that looks might help: the signal > org.freesmartphone.PIM.Messages.NewMessage, which seems to be emitted when a > message is loaded. > > > > To accomplish the task, one can thus combine these two methods, ie. > > 1. Start listening to the signal "org.freesmartphone.PIM.Messages.NewMessage" > and saving all results. > > 2. Do "org.freesmartphone.PIM.Messages.Query {}" and save results. Each > message obtained this way must be checked for duplicity (to prevent the > situation that some of the "NewMessage" signals were received after we did step > 1. and before we did step 2.). > > > > My question is: is there any easier way to get all messages from opimd (ie. > without the need to checking for duplicit messages)? (It would be sufficient to > wait until all messages are loaded from SIM to opimd and then do > "org.freesmartphone.PIM.Messages.Query {}" - but is there any way to figure out > whether all messsages are loaded from SIM to opimd?) > > > > > > With regards, > > Tomas Tintera > > opimd doesn't read messages from SIM for a looong time. Which version > do you use? I use the version that comes with the Debian package "fso-frameworkd 0.9.5.9+git20100131-4". I will try to update to "0.9.5.9+git20110512-2", thank you. > Also, using opimd with mdbus can be problematic. For CLI usage there > is opimd-cli python script in [1] which should do exactly what you > want. It should be available in repo as opimd-utils-cli (IIRC). Actually, I write a python application, I used "mdbus" in the mail only for a quick referrence. But thank you for the tip. > [1] http://git.shr-project.org/git/?p=opimd-utils.git;a=summary Tomas Tintera _______________________________________________ support mailing list [hidden email] https://lists.openmoko.org/mailman/listinfo/support |
| Powered by Nabble | Edit this page |
