Re: RE: pm-8200 devel

Stephen Wood <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
Look at getmemo in com_samsung_packet.py for a simple example of how memo
information gets passed back.  For SMS you'll create a sms entry object
instead of a memo object with entry=sms.SMSEntry().  You then set the fields
of entry with the information you get from the packet decoding.  Then each
entry is added to the result dictionary.

Don't be confused by the different usages of the local variable "res" in
different developers code.  I tend tend to use "res" for the result of a
sendpbcommand, others use it to hold a dictionary that will be result of a
getsomething call.

Stephen

On 12/12/05, Jordan Foley <[email protected]> wrote:
>
> ...
>     def getsms(self, result):
>         result['sms']=self._readsms()
>         return result
>
>     def _readsms(self):
>         self.log("Getting sms entries")
>         req=self.protocolclass.messagerequest()
>         for slot in range(200):
>             req.slot=slot
>             res=self.sendpbcommand(req, self.protocolclass.messageresponse
> )
>             entry.callback=sf.callback
>         return res
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> BitPim-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bitpim-devel
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.