I input context-ls command, it shows result below:

Alarm.Present

Alarm.Trigger

Battery.ChargeBars

Battery.ChargePercentage

Battery.IsCharging

Battery.LowBattery

Battery.OnBattery

Battery.TimeUntilFull

Battery.TimeUntilLow

Bluetooth.Connected

Bluetooth.Enabled

Bluetooth.Visible

Cellular.CellName

Cellular.DataTechnology

Cellular.NetworkName

Cellular.RegistrationStatus

Cellular.SignalStrength

Cellular.Technology

Environment.IsBright

Environment.IsDark

Internet.NetworkName

Internet.NetworkState

Internet.NetworkType

Internet.SignalStrength

Internet.TrafficIn

Internet.TrafficOut

Location.Coordinates

Location.Heading

Location.SatPositioningState

Media.NowPlaying

Phone.Call

Phone.Muted

Position.Shaky

Position.Stable

Presence.State

Profile.Name

Screen.IsCovered

Screen.TopEdge

Session.State

System.PowerSaveMode


But it doesn't have properties about headphone.


How does Contextkit get value about headphone?


2011/2/1 Thiago Macieira <[email protected]>

> 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
>
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to