PlayerCc::PowerProxy Class Reference

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

#include <playerc++.h>

Inheritance diagram for PlayerCc::PowerProxy:
Collaboration diagram for PlayerCc::PowerProxy:

List of all members.

Detailed Description

The PowerProxy class controls a power device.

Public Member Functions

 PowerProxy (PlayerClient *aPc, uint32_t aIndex=0)
 ~PowerProxy ()
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


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