00001 #ifndef _SCmodParPortPPdev_hpp_
00002 #define _SCmodParPortPPdev_hpp_
00003
00004 #include "SCmod.hpp"
00005 #include "qobject.h"
00006
00007 class PPort;
00008 class QCamComboBox;
00009
00010 class SCmodParPortPPdev : public QObject, public SCmod {
00011 Q_OBJECT
00012 public:
00013 SCmodParPortPPdev();
00014 virtual ~SCmodParPortPPdev();
00015 void enterLongPoseMode();
00016 void leaveLongPoseMode();
00017 void stopAccumulation();
00018 void startAccumulation();
00019 QWidget * buildGUI(QWidget * parent);
00020 public slots:
00021 void setPPort(int ioPort);
00022 private:
00023 enum pportBit {evenLinesTransferOn=0,
00024 oddLinesTransferOn=1,
00025 preampOn=2,
00026 shutterOn=3};
00027 void sendPportCmd();
00028 void activatePPort();
00029 int ppdev_fd;
00030 int data_out;
00031 QCamComboBox * ioPortSelect_;
00032 };
00033
00034 #endif