![]() |
Home · All Namespaces · All Classes |
#include <batterybusinesslogic.h>


Public Types | |
| enum | NotificationID { NotificationCharging, NotificationChargingComplete, NotificationRemoveCharger, NotificationChargingNotStarted, NotificationRechargeBattery, NotificationEnteringPSM, NotificationExitingPSM, NotificationLowBattery, NotificationNoEnoughPower } |
Public Slots | |
| void | initBattery () |
| void | lowBatteryAlert () |
Signals | |
| void | notificationSent (QString eventType, QString text, QString icon) |
Public Member Functions | |
| BatteryBusinessLogic (QObject *parent=0) | |
| virtual | ~BatteryBusinessLogic () |
Implements the configuration and state for the battery, the power save mode.
Definition at line 78 of file batterybusinesslogic.h.
Definition at line 86 of file batterybusinesslogic.h.
00086 { 00087 NotificationCharging, 00088 NotificationChargingComplete, 00089 NotificationRemoveCharger, 00090 NotificationChargingNotStarted, 00091 NotificationRechargeBattery, 00092 NotificationEnteringPSM, 00093 NotificationExitingPSM, 00094 NotificationLowBattery, 00095 NotificationNoEnoughPower, 00096 } NotificationID;
| BatteryBusinessLogic::BatteryBusinessLogic | ( | QObject * | parent = 0 |
) |
Definition at line 131 of file batterybusinesslogic.cpp.
00132 : 00133 QObject (parent), 00134 m_LowBatteryNotifier (0), 00135 m_notification (0) 00136 #ifdef HAVE_QMSYSTEM 00137 ,m_Battery (new MeeGo::QmBattery), 00138 m_DeviceMode (new MeeGo::QmDeviceMode), 00139 m_Led (new MeeGo::QmLED), 00140 m_ChargerType (MeeGo::QmBattery::Unknown) 00141 #endif 00142 { 00143 #ifdef HAVE_QMSYSTEM 00144 /* connect to QmSystem signals */ 00145 connect (m_Battery, 00146 SIGNAL (batteryStateChanged (MeeGo::QmBattery::BatteryState)), 00147 this, 00148 SLOT (batteryStateChanged (MeeGo::QmBattery::BatteryState))); 00149 connect (m_Battery, 00150 SIGNAL (chargingStateChanged (MeeGo::QmBattery::ChargingState)), 00151 this, 00152 SLOT (chargingStateChanged (MeeGo::QmBattery::ChargingState))); 00153 connect (m_Battery, 00154 SIGNAL (chargerEvent (MeeGo::QmBattery::ChargerType)), 00155 this, 00156 SLOT (batteryChargerEvent (MeeGo::QmBattery::ChargerType))); 00157 00158 connect (m_DeviceMode, 00159 SIGNAL (devicePSMStateChanged (MeeGo::QmDeviceMode::PSMState)), 00160 this, 00161 SLOT (devicePSMStateChanged (MeeGo::QmDeviceMode::PSMState))); 00162 #endif 00163 00164 // Init battery values delayed... 00165 initBattery (); 00166 }

| BatteryBusinessLogic::~BatteryBusinessLogic | ( | ) | [virtual] |
Definition at line 169 of file batterybusinesslogic.cpp.
| void BatteryBusinessLogic::initBattery | ( | ) | [slot] |
Definition at line 186 of file batterybusinesslogic.cpp.
| void BatteryBusinessLogic::lowBatteryAlert | ( | ) | [slot] |
This slot is called by the low battery notifier to send the notifications.
Definition at line 201 of file batterybusinesslogic.cpp.
00202 { 00203 sendNotification (NotificationLowBattery); 00204 }
| void BatteryBusinessLogic::notificationSent | ( | QString | eventType, | |
| QString | text, | |||
| QString | icon | |||
| ) | [signal] |
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:05:02 2010 Doxygen 1.6.1 |
MeeGo Touch |