[Shr-Devel] Ringtone/Vibrator - How to use FSO?
Sebastian Krzyszkowiak
seba.dos1 at gmail.com
Tue Aug 25 13:45:06 CEST 2009
On 8/25/09, Pierre-yves albacore <albacorefr at gmail.com> wrote:
> Dear list,
>
> I want help SHR team to fix some tickets. I took a ticket on trac
> http://shr-project.org/trac/ticket/80.
> This is a silent button that would turn off the ringtone and also the
> vibration on incoming call.
>
> I work in libframeworkd-phonegui-efl2 library.
>
> What are my problems?
>
> 1-Stop ringtone
> On Silent action I modify scenario to stop ringhtone with this line code
> odeviced_audio_push_scenario("headset", NULL, NULL).
> Is it a good method?
No. There is StopSound and StopAllSounds (or something like that) in
odeviced. It's used in SHR Settings Current Profile module, you can
check it.
> then I want disable Silent button. (On Answer action I put back the
> stereoout scenario)
> But for disable elm_button, In Elementary.h the function
> elm_object_disabled_set return an error. The method does not exists.
> Maybe Elementary on my GTA02 is older than Elementary API?
Yes, it's older. Disabling buttons in elementary was introduces just
few days ago.
--
Sebastian Krzyszkowiak
dos
More information about the Shr-devel
mailing list