00001 #ifndef _MIDOBUFFER_H
00002 #define _MIDOBUFFER_H
00003
00004 #include <qobject.h>
00005 #include "midobasic.h"
00006
00007 class MidoBuffer : public QObject
00008 {
00009 Q_OBJECT
00010
00011 public:
00012 MidoBuffer();
00013
00014 void setBufferOn(bool value) { on = value; }
00015 bool bufferOn() { return on; }
00016 void setOpenBuffer();
00017 void setMaximumSize(double size);
00018 void resetBufCh1();
00019 void resetBufCh2();
00020 void chargeCh1BufValue(DValueList*);
00021 void chargeCh2BufValue(DValueList*);
00022
00023 signals:
00024 void openBuffer();
00025 void changeBufMaxSize(double);
00026 void resetBufferCh1();
00027 void resetBufferCh2();
00028 void newBufValueCh1(DValueList*);
00029 void newBufValueCh2(DValueList*);
00030
00031 private:
00032 bool on;
00033
00034 };
00035
00036 extern MidoBuffer *mbuf;
00037
00038 #endif