Home · All Namespaces · All Classes
Public Types | Public Slots | Signals | Public Member Functions

BatteryBusinessLogic Class Reference

#include <batterybusinesslogic.h>

Collaboration diagram for BatteryBusinessLogic:
Collaboration graph
[legend]

List of all members.

Public Types

enum  NotificationID {
  NotificationCharging, NotificationChargingComplete, NotificationRemoveCharger, NotificationChargingNotStarted,
  NotificationRechargeBattery, NotificationEnteringPSM, NotificationExitingPSM, NotificationLowBattery,
  NotificationNoEnoughPower
}

Public Slots

void initBattery ()
void lowBatteryAlert ()
void setTouchScreenLockActive (bool active)

Signals

void notificationSent (QString eventType, QString text, QString icon)

Public Member Functions

 BatteryBusinessLogic (QObject *parent=0)
virtual ~BatteryBusinessLogic ()

Detailed Description

Implements the configuration and state for the battery, the power save mode.


Member Enumeration Documentation

Enumerator:
NotificationCharging 
NotificationChargingComplete 
NotificationRemoveCharger 
NotificationChargingNotStarted 
NotificationRechargeBattery 
NotificationEnteringPSM 
NotificationExitingPSM 
NotificationLowBattery 
NotificationNoEnoughPower 

Constructor & Destructor Documentation

BatteryBusinessLogic::BatteryBusinessLogic ( QObject *  parent = 0  ) 
BatteryBusinessLogic::~BatteryBusinessLogic (  )  [virtual]

Member Function Documentation

void BatteryBusinessLogic::initBattery (  )  [slot]
void BatteryBusinessLogic::lowBatteryAlert (  )  [slot]

This slot is called by the low battery notifier to send the notifications.

void BatteryBusinessLogic::notificationSent ( QString  eventType,
QString  text,
QString  icon 
) [signal]
void BatteryBusinessLogic::setTouchScreenLockActive ( bool  active  )  [slot]

Sets the touch screen lock active state so notifications can be enabled/disabled based on that.

Parameters:
active true if the touch screen lock is active, false otherwise

The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Tue Aug 30 2011 16:38:12
Doxygen 1.7.1
MeeGo Touch