Re: Getting a phone number from an OssoABookContact
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, 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=package/src/org/maemo/hermes/engine/contact.py;h=a309b290ee506ca6de7f46108adb1541ea4fbb58;hb=HEAD > and I can't find where you get the "GList" and "EVCardAttribute" > types. I've got my own implementation of a glist (stolen from > somewhere online) but I'd prefer to not have to write the > EVCardAttribute myself (wrapping the evolution code). > > My best guess is that it's coming through some long line of imports > (maybe evolution?) or the pygobject library, but neither of these seem > to have this type for the libraries I have access to. Any suggestions? > > Thanks! > > On Tue, Aug 24, 2010 at 11:40 PM, Andrew Flegg wrote: > > 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): > > """Return a list of phone numbers associated with this > > contact.""" > > > > nums = [] > > ai = > > GList.new(ebook.e_contact_get_attributes(hash(self._contact), > > E_CONTACT_PHONE_OTHER)) while ai.has_next(): attr = > > ai.next(as_a = EVCardAttribute) types = set() > > if attr.params: > > params = > > GList.new(ebook.e_vcard_attribute_param_get_values(attr.params.contents.next())) > > while params.has_next(): > > types.add(string_at(params.next())) > > > > device = 'VOICE' in types and 'landline' \ > > or 'CELL' in types and 'mobile' \ > > or None > > type = 'HOME' in types and 'home' \ > > or 'WORK' in types and 'work' \ > > or None > > number = string_at(attr.value().next()) > > nums.append(PhoneNumber(number, type = type, device = > > device)) > > > > return nums > > --->8 > > > > If you don't speak Python, what is basically does is (dealing with an > > EContact, but you can get that from an OssoABookContact IIRC: > > > > 1) Get all attributes of type 30 - this returns all > > phone numbers, I've found. > > 2) Loop over each attribute, the value of which is > > the phone number. > > 3) The parameters of the attribute will tell you the different > > types flagged against this number. > > > > HTH, > > > > Andrew > > > > [1] http://hermes.garage.maemo.org/ > > > > -- > > Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ > > Maemo Community Council chair > > - Original message - > > > 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 have no idea what the appropriate attribute would be. I've > > > tried a great many (Cell, for instance) and gotten nothing. > > > > > > Ideas? > > > > > > Thanks! > > > ___ > > > maemo-developers mailing list > > > maemo-developers@maemo.org > > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > > > ___ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Getting a phone number from an OssoABookContact
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=package/src/org/maemo/hermes/engine/contact.py;h=a309b290ee506ca6de7f46108adb1541ea4fbb58;hb=HEAD and I can't find where you get the "GList" and "EVCardAttribute" types. I've got my own implementation of a glist (stolen from somewhere online) but I'd prefer to not have to write the EVCardAttribute myself (wrapping the evolution code). My best guess is that it's coming through some long line of imports (maybe evolution?) or the pygobject library, but neither of these seem to have this type for the libraries I have access to. Any suggestions? Thanks! On Tue, Aug 24, 2010 at 11:40 PM, Andrew Flegg wrote: > 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): > """Return a list of phone numbers associated with this contact.""" > > nums = [] > ai = GList.new(ebook.e_contact_get_attributes(hash(self._contact), > E_CONTACT_PHONE_OTHER)) > while ai.has_next(): > attr = ai.next(as_a = EVCardAttribute) > types = set() > if attr.params: > params = > GList.new(ebook.e_vcard_attribute_param_get_values(attr.params.contents.next())) > while params.has_next(): > types.add(string_at(params.next())) > > device = 'VOICE' in types and 'landline' \ > or 'CELL' in types and 'mobile' \ > or None > type = 'HOME' in types and 'home' \ > or 'WORK' in types and 'work' \ > or None > number = string_at(attr.value().next()) > nums.append(PhoneNumber(number, type = type, device = device)) > > return nums > --->8 > > If you don't speak Python, what is basically does is (dealing with an > EContact, but you can get that from an OssoABookContact IIRC: > > 1) Get all attributes of type 30 - this returns all > phone numbers, I've found. > 2) Loop over each attribute, the value of which is > the phone number. > 3) The parameters of the attribute will tell you the different > types flagged against this number. > > HTH, > > Andrew > > [1] http://hermes.garage.maemo.org/ > > -- > Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ > Maemo Community Council chair > - Original message - >> 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 >> have no idea what the appropriate attribute would be. I've tried a >> great many (Cell, for instance) and gotten nothing. >> >> Ideas? >> >> Thanks! >> ___ >> maemo-developers mailing list >> maemo-developers@maemo.org >> https://lists.maemo.org/mailman/listinfo/maemo-developers > > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
How to be notified when the application is minimized using Qt
Hello, I would like my application to react whenever the user "minimizes" it, i.e. presses the home button, and when he/she brings it back to the foreground. What is the best way to do it using Qt? I have tried to reimplement "changeEvent", but the only event triggered in this case seems to be an activation event, which is also triggered in many other cases whenever the main window loses focus. Thanks in advance, Francesco ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Please remove gpxview from chinook and diablo repositories
On Thu, Aug 26, 2010 at 20:53, Till Harbaum / Lists wrote: > > i can't compile gpxview against this broken libgio and the libs maintainer > just doesn't care anymore. > > Therefore, please remove all versions of gpxview from the diablo and chinook > repositories. I can't update the current ones, i can't fix bugs. Thus they'd > better > be gone. Isn't the issue to complete the outstanding removal of libgio which is breaking it? Then you won't have any problems. Your continued support of Maemo 4 is appreciated, at least by me. Cheers, Andrew -- Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ Maemo Community Council chair ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Please remove gpxview from chinook and diablo repositories
Hi, i can't compile gpxview against this broken libgio and the libs maintainer just doesn't care anymore. Therefore, please remove all versions of gpxview from the diablo and chinook repositories. I can't update the current ones, i can't fix bugs. Thus they'd better be gone. So please just remove all version of gpxview from the chinook and diablo repositories and i'll stop supporting chinook and diablo. It's already close to a waste of time to support maemo4, but it defintely is a waste of time to have to deal with broken libs when supporting maemo4. And no, i won't hack my config files to explicitely ignore soup2.4 on maemo4. I don't mean to offend anybody, but i am only willing to support maemo4 if i don't have to spend additional effort on this. Regards, Till Am Donnerstag 19 August 2010 schrieb Niels Breet: > Hi, > On Wed, Aug 18, 2010 at 9:19 PM, Till Harbaum / Lists > wrote: > > I have some strange undefined references in chinook/diablo: > > > > https://garage.maemo.org/builder/diablo/gpxview_0.9.4/armel.build.log.FAILED.txt > > > > Is this a know bug or is maemo4 just finally dying? > > It is probably libgio which is broken: > http://maemo.org/packages/view/libgio0/ > > This is a user contributed lib, not part of the default sdk. > > > > > Till > > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Maemo / MeeGo application gallery?
On Thu, Aug 26, 2010 at 9:35 PM, Ville M. Vainio wrote: > The concept is so obvious, it has probably been discussed to death > many times over - > > Should we have some central place to "showcase" maemo / meego > applications, wherever they are? > Well, the original attempt was Maemo Select ( http://maemo.nokia.com/maemo-select/), which basically died from neglect as it was seen as a stepchild by both Ovi and maemo.org, and considering how self-sufficient they are, it seems to me it will be hard for such initiatives to survive on their own... ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Maemo / MeeGo application gallery?
The concept is so obvious, it has probably been discussed to death many times over - Should we have some central place to "showcase" maemo / meego applications, wherever they are? I mean all of extras / extras-devel / Ovi store. Sort of like http://maemo.org/downloads/Maemo5/ , but with the difference that you don't need to be in extras to have a space there. It could also have a nicer wiki (that would not revert your changes randomly ;-). -- Ville M. Vainio @@ Forum Nokia ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Issue with Maemo video
Hello, I have issue with video playing on latest MAEMO with scratchbox. I have installed some packages as it is said on website: http://www.gstreamer.net/wiki/HowToCompileForEmbedded But still no video is displayed As a prefix I typed /opt/gst (what path should be there..) I am receiving an error: maemo-launcher: invoking '/usr/bin/mediaplayer.launch' mediaplayer[18398]: GLIB WARNING ** GVFS-RemoteVolumeMonitor - remote volume monitor with dbus name org.gtk.Private.HalVolumeMonitor is not supported maemo-launcher: opening of /usr/bin/mediaplayer.launch took 9471 usec mafw-dbus-wrapper[17836]: GLIB WARNING ** default - libOMX_Core.so: cannot open shared object file: No such file or directory bt_audio_service_open: connect() failed: Connection refused (111) -- With kind regards, Damian --- Damian Dyl Computer Science Department University of Wales Aberystwyth University Mobile: 07763657077 tak...@gmail.com ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: extras not working - who should I talk to?
On Wed, Aug 25, 2010 at 6:30 PM, Andrew Flegg wrote: > On Wed, Aug 25, 2010 at 17:28, Andre Klapper wrote: >> Am Mittwoch, den 25.08.2010, 12:15 -0400 schrieb Felipe Crochik: >>> Would you mind posting yours so I can compare? >> >> Ahem, I'm very sorry, I hadn't disabled -testing and -devel when I >> tried. >> >> So yes, I can confirm that when only Extras is enabled mycontacts does >> NOT get displayed in App Manager. >> >> No idea what's going on. > > Niels Breet is, of course, the right person to talk to. And/or Bugzilla. > It seems there is a promotion issue with non-free apps from testing to Extras fremantle-1.2. This path is not well tested as there aren't that many non-free apps in Extras. Will try to find out what goes wrong exactly. > > -- > Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ > Maemo Community Council chair > -- Niels Breet maemo.org webmaster ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: not able to launch "fennec" through command line on N900
On 26/08/10 09:42, ext praveen koduru wrote: I have installed fennec browser from firefox website. I am able to launch fennec browser through Menu & clicking on firefox icon. and absolutely working fine. Whereas When I tried to launch the same fennec through command line from X-terminal. it executes and comes out no error messages nothing and still the browser will not be launched. Surprisingly!! the above problem happens only as root user(I mean "sudo gainroot" on N900 X-terminal). Fennec launches well with normal user login. But i need it as a root user to perform it. Help would be greatly appreciated. start it with: run-standalone.sh fennec Daniel ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers