flNotify.c File Reference

#include "flGlobal.h"
#include <stdio.h>
#include <psprtc.h>
#include <pspkernel.h>
#include <psppower.h>
#include <pspimpose_driver.h>

Go to the source code of this file.

Functions

void ntfyInit ()
void ntfyTick ()
void ntfyShowAll (float inTime)
void ntfyCheckBattery ()
void ntfyCheckTime ()
void ntfyShowBattery ()
void ntfyShowTime ()
void ntfyShowDate ()
void ntfyTrayAdd (char *inMessage, u32 inColor)
void ntfyTrayTick ()
void ntfyTrayShow ()

Variables

int ntfyBattChrgLast = -1
int ntfyBattPercentLast = -1
int ntfyBattLowLast = -1
float ntfyBattTime = 0.0f
TimerntfyBattTimer = NULL
pspTime ntfyTimeLast
float ntfyTimeTime = 0.0f
TimerntfyTimeTimer = NULL
NotifyTrayItem ntfyTray [FL_NOTIFY_TRAYSIZE]
TimerntfyTrayTimer = NULL
u32 ntfyTickCount = 0
bool ntfyInitialized = false
bool ntfyVisible = true


Function Documentation

void ntfyCheckBattery (  ) 

Definition at line 170 of file flNotify.c.

References debugStatusLog, FL_NOTIFY_DURATION, ntfyBattChrgLast, ntfyBattLowLast, ntfyBattPercentLast, ntfyBattTime, and ntfyInitialized.

Referenced by ntfyTick().

void ntfyCheckTime (  ) 

Definition at line 217 of file flNotify.c.

References FL_NOTIFY_DURATION, ntfyInitialized, ntfyTimeLast, and ntfyTimeTime.

Referenced by ntfyTick().

void ntfyInit (  ) 

Definition at line 46 of file flNotify.c.

References FL_NOTIFY_TRAYSIZE, ntfyBattTimer, ntfyInitialized, ntfyTimeLast, ntfyTimeTimer, ntfyTray, ntfyTrayTimer, and timerCreate().

Referenced by flInitialize().

void ntfyShowAll ( float  inTime  ) 

Definition at line 131 of file flNotify.c.

References ntfyBattTime, ntfyShowBattery(), ntfyShowDate(), ntfyShowTime(), and ntfyTimeTime.

void ntfyShowBattery (  ) 

Definition at line 261 of file flNotify.c.

References debugWarning, fontDefault, fontDraw2dString(), fontHeight(), fontStringWidth(), graphics2dDrawLine(), graphics2dDrawRect(), graphics2dDrawRectFilled(), ntfyVisible, and SCREEN_WIDTH.

Referenced by ntfyShowAll(), and ntfyTick().

void ntfyShowDate (  ) 

Definition at line 327 of file flNotify.c.

Referenced by ntfyShowAll().

void ntfyShowTime (  ) 

Definition at line 300 of file flNotify.c.

References fontDefault, fontDraw2dString(), fontHeight(), graphics2dDrawEllipse(), graphics2dDrawEllipseFilled(), graphics2dDrawLine(), graphics2dDrawRectFilled(), ntfyVisible, and SCREEN_WIDTH.

Referenced by ntfyShowAll(), and ntfyTick().

void ntfyTick (  ) 

Definition at line 67 of file flNotify.c.

References FL_NOTIFY_FREQUENCY, ntfyBattTime, ntfyBattTimer, ntfyCheckBattery(), ntfyCheckTime(), ntfyInitialized, ntfyShowBattery(), ntfyShowTime(), ntfyTickCount, ntfyTimeTime, ntfyTimeTimer, ntfyTrayShow(), ntfyTrayTick(), and timerGetDeltaTime().

Referenced by graphicsSwapBuffers().

void ntfyTrayAdd ( char *  inMessage,
u32  inColor 
)

Definition at line 332 of file flNotify.c.

References FL_NOTIFY_DURATION, FL_NOTIFY_TRAYSIZE, ntfyInitialized, ntfyTray, NotifyTrayItem::ntiColor, NotifyTrayItem::ntiMessage, and NotifyTrayItem::ntiTime.

Referenced by debugDevWarningFrom(), debugErrorFrom(), debugStatusLogFrom(), and debugWarningFrom().

void ntfyTrayShow (  ) 

Definition at line 363 of file flNotify.c.

References FL_NOTIFY_TRAYSIZE, fontDefault, fontDraw2dString(), fontHeight(), graphics2dDrawRectFilled(), ntfyTray, ntfyVisible, SCREEN_HEIGHT, and SCREEN_WIDTH.

Referenced by ntfyTick().

void ntfyTrayTick (  ) 

Definition at line 348 of file flNotify.c.

References FL_NOTIFY_TRAYSIZE, ntfyInitialized, ntfyTray, ntfyTrayTimer, and timerGetDeltaTime().

Referenced by ntfyTick().


Variable Documentation

int ntfyBattChrgLast = -1

Definition at line 26 of file flNotify.c.

Referenced by ntfyCheckBattery().

int ntfyBattLowLast = -1

Definition at line 28 of file flNotify.c.

Referenced by ntfyCheckBattery().

int ntfyBattPercentLast = -1

Definition at line 27 of file flNotify.c.

Referenced by ntfyCheckBattery().

float ntfyBattTime = 0.0f

Definition at line 29 of file flNotify.c.

Referenced by ntfyCheckBattery(), ntfyShowAll(), and ntfyTick().

Timer* ntfyBattTimer = NULL

Definition at line 30 of file flNotify.c.

Referenced by ntfyInit(), and ntfyTick().

bool ntfyInitialized = false

Definition at line 42 of file flNotify.c.

Referenced by ntfyCheckBattery(), ntfyCheckTime(), ntfyInit(), ntfyTick(), ntfyTrayAdd(), and ntfyTrayTick().

u32 ntfyTickCount = 0

Definition at line 41 of file flNotify.c.

Referenced by ntfyTick().

pspTime ntfyTimeLast

Definition at line 32 of file flNotify.c.

Referenced by ntfyCheckTime(), and ntfyInit().

float ntfyTimeTime = 0.0f

Definition at line 33 of file flNotify.c.

Referenced by ntfyCheckTime(), ntfyShowAll(), and ntfyTick().

Timer* ntfyTimeTimer = NULL

Definition at line 34 of file flNotify.c.

Referenced by ntfyInit(), and ntfyTick().

NotifyTrayItem ntfyTray[FL_NOTIFY_TRAYSIZE]

Definition at line 37 of file flNotify.c.

Referenced by ntfyInit(), ntfyTrayAdd(), ntfyTrayShow(), and ntfyTrayTick().

Timer* ntfyTrayTimer = NULL

Definition at line 38 of file flNotify.c.

Referenced by ntfyInit(), and ntfyTrayTick().

bool ntfyVisible = true

Definition at line 43 of file flNotify.c.

Referenced by ntfyShowBattery(), ntfyShowTime(), and ntfyTrayShow().


Generated on Wed Sep 5 19:04:03 2007 for funcLib by  doxygen 1.5.1