CHAPTER 4. DEVELOPING APPLICATIONS
4.13 Powermanagement
A. Power Management Policy
NOTICE !!
This page requires log-in authentication since it contains confidential
information.
We appologize any inconvenience of you and please contact support@mizi.com.
B. Supported API
Below is the PM diagram for MIZI Prizm
Here you can know how change for PM status transition can be recognized by
each application and how you can change PM policy.
How to know PM status in each application
- Sleep / Wake-UP status transition
It can be known by signal sleep () and wakeup () of class MZApplication.
connect (MzApplication::instance (), SIGNAL (sleep ()), SLOT (slotSleep
()));
connect (MzApplication::instance (), SIGNAL (wakeup ()), SLOT (slotWakeup
())); |
- How to know setting time
The class MzPowerManager handles PM related each settings. It will make the
offer next functions. If you want to get more information, see SDK documents.
void setBacklightEnabled (bool enabled, bool battery);
bool backlightEnabled (bool battery);
void setPowerEnabled (bool enabled, bool battery);
bool powerEnabled (bool battery);
void setBacklightTimeOut (int sec, bool battery);
int backlightTimeOut (bool battery) const;
void setTurnOnBacklight (bool restore, bool battery);
bool turnOnBacklight (bool battery) const;
void setPowerTimeOut (int sec, bool battery);
int powerTimeOut (bool battery) const;
QSize size () const;
void setScreenOn (bool);
bool isScreenOn () const;
void setBright (int);
void setBright (int, bool save);
int bright () const;
|
- How to know current backlight / screen status
The class MzScreenManager gives the status and information related to screen.
And it will give next functions.
- How to know battery and external charge status.
The class MzBatteryManager gives the status and information of the battery and
the external charger (AC Line).
| void update ();
int batteryStatus () const;
int backupBatteryStatus () const;
int acLineStatus () const;
int batteryPercentage () const;
|
|