phonebook error messages

"Simon C" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <000c01c60fc3$04d97f80$6400a8c0@HOME>
I've added a function to the phonebook helper to allow it to display a list
of error message.

You can use it from any Phone classes "convertphonebooktophone" function.

Example from the vx4400:

                        helper.add_error_message("%s has number %s if of
type %s not supported by phone" % 

                                                (e['name'], num['number'],
num['type']))

The function also optionally takes a priority field that allows you to
control the order they get displayed in. If it is not supplied the messages
are displayed in the order they are added. There is a new helper class
(MultiMessageBox) in guihelper that is used for this, it could be used in
other places as well.

Attached is an example of the dialog that will get displayed if one or more
entries in the phonebook is not able to be sent to the 8100.

Comments?

 

Simon
contact_errors.JPG (application/octet-stream, 16.8 KB) - not displayed
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.