//////////////////////////////////////////////////////////////////////// // This file is part of the mp3car-0.1.1 package // Linux LCD-client for the mp3 server box // http://www.igalaxie.com/ltt/mp3 //////////////////////////////////////////////////////////////////////// // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // File: adisplay.h ////////////////////////////////////////////////////////////////////////// // Description: Abstract base class of all LCD-Driver modules. // Virtual Interfaces allow easy implementation // of many different display drivers. ////////////////////////////////////////////////////////////////////////// // History: created 15.01.2000 ////////////////////////////////////////////////////////////////////////// // Copyright: 2000 Sebastian Poetschke ////////////////////////////////////////////////////////////////////////// #ifndef ADISPLAY_H_INCLUDED #define ADISPLAY_H_INCLUDED class ADisplay { public: virtual ~ADisplay( ) {}; public: virtual bool AutoLineWrap( void )=0; virtual void AutoLineWrap( bool _switch )=0; virtual bool AutoScroll( void )=0; virtual void AutoScroll( bool _switch )=0; virtual bool Backlight( void )=0; virtual void Backlight( bool _switch )=0; virtual void Backlight( bool _switch, unsigned int minutes )=0; virtual bool Blink( void )=0; virtual void Blink( bool _switch )=0; virtual void ClearScreen( void )=0; virtual unsigned int Contrast( void )=0; virtual void Contrast( unsigned int cValue )=0; virtual bool Cursor( void )=0; virtual void Cursor( bool _switch )=0; virtual void CursorLeft( void )=0; virtual void CursorRight( void )=0; virtual void CursorMove( unsigned int row, unsigned int column )=0; virtual void CursorTopLeft( void )=0; virtual void Write( char c)=0; virtual void Write( char c, unsigned int row, unsigned int column)=0; virtual void Write( char *str )=0; virtual void Write( char *str, unsigned int row, unsigned int column)=0; virtual unsigned int MaxRows( void )=0; virtual unsigned int MaxColumns( void )=0; virtual void CreateCharacter(unsigned int index, unsigned int *layout)=0; virtual bool Initialize( void )=0; }; #endif