void
BatteryBusinessLogic::remainingCapacityRequired()
{
    #ifdef HAVE_QMSYSTEM
    emit remainingBatteryCapacityChanged(
            m_battery->getRemainingCapacityPct());
    #else
    /*
     * FIXME: To create an implementation that works without the QmSystem.
     */
    #endif
}
void
BatteryBusinessLogic::batteryRemCapacityChanged (
		int percentage, 
		int bars)
{
    Q_UNUSED (bars);
    
    // XXX: FIXME: maybe we can drop batteryBarValue and use 'bars' parameter..
    SYS_DEBUG ("Emitting batteryBarValueReceived(%d)",
            batteryBarValue (percentage));
    emit batteryBarValueReceived (batteryBarValue (percentage));
    emit remainingBatteryCapacityChanged(percentage);
}
void
BatteryBusinessLogic::batteryRemCapacityChanged (
		int percentage, 
		int bars)
{
    Q_UNUSED (bars);
    
    SYS_DEBUG ("Emitting batteryBarValueReceived(%d)",
            batteryBarValue (percentage));
    emit batteryBarValueReceived (batteryBarValue (percentage));

    /* Fixes: NB#265208 */
    if (isBatteryFull())
        emit batteryFull ();
    else
        emit remainingBatteryCapacityChanged (percentage);
}