2001-12-27 23:30:36 +00:00
|
|
|
/*
|
|
|
|
|
* screenlist.h
|
|
|
|
|
* This file is part of LCDd, the lcdproc server.
|
|
|
|
|
*
|
|
|
|
|
* This file is released under the GNU General Public License. Refer to the
|
|
|
|
|
* COPYING file distributed with this package.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 1999, William Ferrell, Scott Scriven
|
2003-02-27 21:20:20 +00:00
|
|
|
* 2003, Joris Robijn
|
2001-12-27 23:30:36 +00:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
1999-12-09 23:15:14 +00:00
|
|
|
#ifndef SCREENLIST_H
|
|
|
|
|
#define SCREENLIST_H
|
|
|
|
|
|
|
|
|
|
#include "screen.h"
|
|
|
|
|
|
|
|
|
|
#define SCR_HOLD 1
|
|
|
|
|
#define SCR_SKIP 2
|
|
|
|
|
#define SCR_BACK 3
|
|
|
|
|
#define RENDER_HOLD 11
|
|
|
|
|
#define RENDER_SKIP 12
|
|
|
|
|
#define RENDER_BACK 13
|
|
|
|
|
|
2003-02-27 21:20:20 +00:00
|
|
|
/*extern int screenlist_action;*/
|
|
|
|
|
extern bool autorotate;
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
int screenlist_init ();
|
2003-02-27 21:20:20 +00:00
|
|
|
/* Initializes the screenlist. */
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2003-02-27 21:20:20 +00:00
|
|
|
int screenlist_shutdown ();
|
|
|
|
|
/* Shuts down the screenlist. */
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2002-04-26 00:00:31 +00:00
|
|
|
int screenlist_add (Screen * s);
|
2003-02-27 21:20:20 +00:00
|
|
|
/* Adds a screen to the screenlist. */
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2002-04-26 00:00:31 +00:00
|
|
|
int screenlist_remove (Screen * s);
|
2003-02-27 21:20:20 +00:00
|
|
|
/* Removes a screen from the screenlist. */
|
|
|
|
|
|
|
|
|
|
void screenlist_process ();
|
|
|
|
|
/* Processes the screenlist. Decides if we need to switch to an other
|
|
|
|
|
* screen. */
|
|
|
|
|
|
|
|
|
|
void screenlist_switch (Screen * s);
|
|
|
|
|
/* Switches to an other screen in the proper way. Informs clients of
|
|
|
|
|
* the switch. ALWAYS USE THIS FUNCTION TO SWITCH SCREENS. */
|
|
|
|
|
|
|
|
|
|
Screen *screenlist_current ();
|
|
|
|
|
/* Returns the currently active screen. */
|
|
|
|
|
|
|
|
|
|
int screenlist_goto_next ();
|
|
|
|
|
/* Moves on to the next screen. */
|
|
|
|
|
|
|
|
|
|
int screenlist_goto_prev ();
|
|
|
|
|
/* Moves on to the previous screen. */
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|