PlayerCc::PowerProxy Class Reference
[Proxies]
#include <playerc++.h>
Inheritance diagram for PlayerCc::PowerProxy:
Detailed Description
ThePowerProxy
class controls a power device.
Definition at line 2050 of file playerc++.h.
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_t * | mDevice |
The documentation for this class was generated from the following file: