PlayerCc::PowerProxy Class Reference

The PowerProxy class controls a power device. More...

#include <playerc++.h>

Inheritance diagram for PlayerCc::PowerProxy:
PlayerCc::ClientProxy

List of all members.

Public Member Functions

 PowerProxy (PlayerClient *aPc, uint32_t aIndex=0)
 constructor
 ~PowerProxy ()
 destructor
double GetCharge () const
 Returns the current charge.
double GetPercent () const
 Returns the percent of power.
double GetJoules () const
 Returns the joules.
double GetWatts () const
 Returns the watts.
bool GetCharging () const
 Returns whether charging is taking place.
bool IsValid () const
 Returns true if we have received any data from the device.

Private Member Functions

void Subscribe (uint32_t aIndex)
void Unsubscribe ()

Private Attributes

playerc_power_tmDevice

Detailed Description

The PowerProxy class controls a power device.


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

Last updated 25 May 2011 21:17:00