Re: Getting a phone number from an OssoABookContact

2010-08-27 Thread Andrew Flegg
On Fri, Aug 27, 2010 at 02:30, Kurtis Heimerl wrote: > Thanks Andrew, this seems to be roughly what I'm looking for. In > particular, it seems an OssoABookContact is asubclass of an EContact, > so I can just use this stuff directly. Cool. > However, I've looked at the associated code in hermes:

Re: Getting a phone number from an OssoABookContact

2010-08-26 Thread Felipe Crochik
The source code for the qt mobility contacts backend for the n900 may also be a good reference. I am pretty sure it is all in one file and it is pretty straigh forward. Just an idea - Original message - > Thanks Andrew, this seems to be roughly what I'm looking for. In > particular,

Re: Getting a phone number from an OssoABookContact

2010-08-26 Thread Kurtis Heimerl
Thanks Andrew, this seems to be roughly what I'm looking for. In particular, it seems an OssoABookContact is asubclass of an EContact, so I can just use this stuff directly. However, I've looked at the associated code in hermes: https://garage.maemo.org/plugins/ggit/browse.php/?p=hermes;a=blob;f=p

Re: Getting a phone number from an OssoABookContact

2010-08-25 Thread Dave Neary
Hi, Andrew Flegg wrote: > On Wed, Aug 25, 2010 at 12:04, Dave Neary wrote: >> Andrew Flegg wrote: >>> Here's some code from Hermes'[1] org/maemo/hermes/engine/contact.py: >> Any chance you could turn this into a use-case using the use-case >> template in the wiki, please? > > Any particular plac

Re: Getting a phone number from an OssoABookContact

2010-08-25 Thread Andrew Flegg
On Wed, Aug 25, 2010 at 12:04, Dave Neary wrote: > > Andrew Flegg wrote: >> Here's some code from Hermes'[1] org/maemo/hermes/engine/contact.py: > > Any chance you could turn this into a use-case using the use-case > template in the wiki, please? Any particular place you can suggest? Doing it in

Re: Getting a phone number from an OssoABookContact

2010-08-25 Thread Dave Neary
Hi, Andrew Flegg wrote: > Here's some code from Hermes'[1] org/maemo/hermes/engine/contact.py: Any chance you could turn this into a use-case using the use-case template in the wiki, please? Thanks! Dave. -- maemo.org docsmaster Email: dne...@maemo.org Jabber: bo...@jabber.org ___

Re: Getting a phone number from an OssoABookContact

2010-08-24 Thread Andrew Flegg
Here's some code from Hermes'[1] org/maemo/hermes/engine/contact.py: 8<- # Constants from http://library.gnome.org/devel/libebook/stable/EContact.html#EContactField ebook = CDLL('libebook-1.2.so.5') E_CONTACT_PHONE_OTHER = 30 def get_phones(self)

Getting a phone number from an OssoABookContact

2010-08-24 Thread Kurtis Heimerl
Hello maemo-developers! Does anyone know how to get a phone number (any number) out of an OssoABookContact instance? I'm at my wit's end; all of the online hits i've found have been doing the opposite and I can't figure this out. My guess was using the osso_abook_contact_get_value function, but I