ecbcdto7segment.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003-2004 by David Saxton                               *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef ECBCDTO7SEGMENT_H
00012 #define ECBCDTO7SEGMENT_H
00013 
00014 #include "component.h"
00015 #include "logic.h"
00016 
00021 class ECBCDTo7Segment : public CallbackClass, public Component
00022 {
00023 public:
00024         ECBCDTo7Segment( ICNDocument *icnDocument, bool newItem, const char *id = 0 );
00025         ~ECBCDTo7Segment();
00026         
00027         virtual bool canFlip() const { return true; }
00028         static Item* construct( ItemDocument *itemDocument, bool newItem, const char *id );
00029         static LibraryItem *libraryItem();
00030         
00031 private:
00032         void inStateChanged( bool newState );
00033         LogicIn *ALogic, *BLogic, *CLogic, *DLogic;
00034         LogicIn *ltLogic, *rbLogic, *enLogic;
00035         LogicOut *outLogic[7];
00036         
00037         // Old values
00038         bool oldOut[7];
00039 };
00040 
00041 #endif

Generated on Tue May 8 17:05:29 2007 for KTechLab by  doxygen 1.5.1