DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
src/hardware/parport/printer_redir.h
00001 
00002 // include guard
00003 #ifndef DOSBOX_PRREDIR_H
00004 #define DOSBOX_PRREDIR_H
00005 
00006 #include "dosbox.h"
00007 #include "parport.h"
00008 #include "printer_if.h"
00009 
00010 class CPrinterRedir : public CParallel {
00011 public:
00012         CPrinterRedir(Bitu nr, Bit8u initIrq, CommandLine* cmd);
00013         
00014 
00015         ~CPrinterRedir();
00016         
00017         bool InstallationSuccessful;    // check after constructing. If
00018                                                                         // something was wrong, delete it right away.
00019         Bitu Read_PR();
00020         Bitu Read_COM();
00021         Bitu Read_SR();
00022 
00023         void Write_PR(Bitu);
00024         void Write_CON(Bitu);
00025         void Write_IOSEL(Bitu);
00026         bool Putchar(Bit8u);
00027 
00028         void handleUpperEvent(Bit16u type);
00029 };
00030 
00031 #endif  // include guard