|
2010-06-29
, 05:55
|
Posts: 13 |
Thanked: 18 times |
Joined on Jun 2009
@ India
|
#2
|
The Following User Says Thank You to kunal_the_one For This Useful Post: | ||
|
2010-06-29
, 10:38
|
Posts: 44 |
Thanked: 28 times |
Joined on Mar 2010
|
#3
|
I am not sure about playing sound, but for vibration I am using following code, You can try that out if works for you.
void Sample::enableVibration()
{
#ifdef Q_WS_MAEMO_5
mDbusInterface = new QDBusInterface(MCE_SERVICE, MCE_REQUEST_PATH,
MCE_REQUEST_IF, QDBusConnection::systemBus(),
this);
mDbusInterface->call(MCE_ENABLE_VIBRATOR);
#endif
}
void Sample::vibrate(int aTimeout)
{
#ifdef Q_WS_MAEMO_5
mDbusInterface->call(MCE_ACTIVATE_VIBRATOR_PATTERN, "PatternIncomingCall");
QTimer::singleShot(aTimeout,this,SLOT(stopVibratio n()));
#endif
}
void Sample::stopVibration()
{
#ifdef Q_WS_MAEMO_5
mDbusInterface->call(MCE_DEACTIVATE_VIBRATOR_PATTERN, "PatternIncomingCall");
#endif
}
|
2010-06-29
, 14:12
|
Posts: 13 |
Thanked: 18 times |
Joined on Jun 2009
@ India
|
#4
|
|
2010-06-29
, 20:11
|
Posts: 121 |
Thanked: 75 times |
Joined on Oct 2009
|
#5
|
|
2010-07-07
, 10:03
|
Posts: 121 |
Thanked: 75 times |
Joined on Oct 2009
|
#6
|
echo 100 > /sys/class/leds/twl4030\:vibrator/brightness
echo 0 > /sys/class/leds/twl4030\:vibrator/brightness
The Following User Says Thank You to matrim For This Useful Post: | ||
Preferably this would be a sound notification but a small vibration would do. Something like when you get a second call or message.
I'm using QT but the multimedia framework doesn't play on a call. Is there anything I can use to notify a user of an event when they are on a call