00001 00002 #include "midobasic.h" 00003 00004 #include <sys/time.h> 00005 00006 class Wave; 00007 00008 class Device : public QObject 00009 { 00010 Q_OBJECT 00011 public: 00012 00013 Device(); 00014 void init(int numChannel); 00015 void setDevice(QString dev); 00016 void setPort(int numPort); 00017 00018 DValueList *captureDate(int numChannel); 00019 00020 signals: 00021 void newValue(double value, int numChannel); 00022 00023 private: 00024 QString currentDevice; 00025 int currentLptPort, currentModel; 00026 Wave *wave1, *wave2; 00027 DValueList *v; 00028 double timePassed; 00029 };