On Monday, 31 de January de 2011 22:47:22 Shane Bryan wrote: > On Tue, Feb 01, 2011 at 01:58:36PM +0800, alexguitar wrote: > > Dear All, > > > > I want to develop a app to detect earphone with two features, including > > plug in and plug out earphone jack . > > > > Whether does the Qt and Qt mobility provide the API about earphone > > detection? > > If you get an answer off list, please let us know, as I need to monitor this > as well.
I'm not sure if the info is available elsewhere, but there's a /dev/input interface usually associated with that. Even my Dell laptop has it. Event: time 1296545363.867189, type 5 (EV_SW), code 2 (Headphone insert), value 1 Event: time 1296545363.867201, -------------- Report Sync ------------ Event: time 1296545370.850146, type 5 (EV_SW), code 2 (Headphone insert), value 0 Event: time 1296545370.850155, -------------- Report Sync ------------ There might be a daemon already listening to this event and reporting it in contextkit. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Senior Product Manager - Nokia, Qt Development Frameworks PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev