webradio/userif.h File Reference

Go to the source code of this file.

Display Status

Log
Revision 1.1 2003/07/21 17:50:48 haraldkipp First check in

#define DIST_NONE   0
 Initial status, displays program banner.
#define DIST_WAIT   1
 Waiting?
#define DIST_CONNECTING   2
 Waiting for connection.
#define DIST_CONNECTED   3
 Successfully connected to a radio station.
#define DIST_BUFFER   4
 Buffering MP3 data.
#define DIST_TITLE   5
 Used?
#define DIST_STATION   6
 Used?
#define DIST_VOLUME   7
 Display volume.
#define DIST_DEAD   8
 Currently selected station is dead.
#define DIST_FORCE   9
 Force display update.

Functions

int UserIfInit (char *name)
 Start background thread for display updates.
void UserIfShowStatus (u_char status)
 Display a specified status.
void UserIfShowMessage (u_char row, u_char secs, CONST char *fmt,...)
 Display a specified text.
void UserIfEntry (u_char rs)
char * UserIfGetDisplayText (char *buff, size_t siz)
 Retrieve the current display text.


Define Documentation

#define DIST_NONE   0

Initial status, displays program banner.

Definition at line 50 of file userif.h.

Referenced by main(), UserIfInit(), and UserIfShowStatus().

#define DIST_WAIT   1

Waiting?

Definition at line 52 of file userif.h.

#define DIST_CONNECTING   2

Waiting for connection.

Definition at line 54 of file userif.h.

Referenced by main(), and UserIfShowStatus().

#define DIST_CONNECTED   3

Successfully connected to a radio station.

Definition at line 56 of file userif.h.

Referenced by main(), and UserIfShowStatus().

#define DIST_BUFFER   4

Buffering MP3 data.

Definition at line 58 of file userif.h.

#define DIST_TITLE   5

Used?

Definition at line 60 of file userif.h.

#define DIST_STATION   6

Used?

Definition at line 62 of file userif.h.

#define DIST_VOLUME   7

Display volume.

Definition at line 64 of file userif.h.

#define DIST_DEAD   8

Currently selected station is dead.

Definition at line 66 of file userif.h.

Referenced by main(), and UserIfShowStatus().

#define DIST_FORCE   9

Force display update.

Definition at line 68 of file userif.h.

Referenced by main(), ProcessMetaData(), ShoutCastThread(), UserIfInit(), and UserIfShowStatus().


Function Documentation

int UserIfInit ( char *  name  ) 

Start background thread for display updates.

Parameters:
name Display device name.
Returns:
0 on success or -1 in case of a failure.

Definition at line 427 of file userif.c.

References ButtonInit(), display, DIST_FORCE, DIST_NONE, UI_THREAD_STACK, UserIfShowStatus(), UserIfThread(), webradio, and WEBRADIO::wr_status.

Here is the call graph for this function:

ButtonInitUserIfShowStatusUserIfThreadButtonReadDisplayRefreshLogMsgUserIfMainMenuUserIfShowMessageXmlRefreshFavListCopyFavListSearchUserIfShowStationConf

void UserIfShowStatus ( u_char  status  ) 

Display a specified status.

Parameters:
status Status to be displayed.

Definition at line 349 of file userif.c.

References display, DIST_CONNECTED, DIST_CONNECTING, DIST_DEAD, DIST_FORCE, DIST_NONE, favlist, LAST_FAVORITE, LCD_VCOLS, LOG_USERIF, LogMsg(), RECEIVERINFO::ri_bcast, SHOUTCASTINFO::sci_metatitle, STATIONINFO::si_genre, UserIfShowMessage(), UserIfShowStationConf(), UserIfShowStationInfo(), VERSION, webradio, WEBRADIO::wr_rip, WEBRADIO::wr_sip, WEBRADIO::wr_status, and XmlRefresh().

Here is the call graph for this function:

LogMsgUserIfShowMessageUserIfShowStationConfUserIfShowStationInfoXmlRefresh

void UserIfShowMessage ( u_char  row,
u_char  secs,
CONST char *  fmt,
  ... 
)

Display a specified text.

Parameters:
row Row position of the message.
secs Number of seconds to display the message. Set to 0 for permanent display.
fmt Format string containing conversion specifications.

Definition at line 331 of file userif.c.

References display, and UI_REFRESH_RATE.

void UserIfEntry ( u_char  rs  ) 

char* UserIfGetDisplayText ( char *  buff,
size_t  siz 
)

Retrieve the current display text.

Parameters:
buff The text is store here.
siz Size of the buffer.
Returns:
Pointer to the buffer.

Definition at line 396 of file userif.c.

References display.


© 2008 by egnite GmbH - visit www.ethernut.de