All Classes Namespaces Files Functions Variables Enumerations Enumerator
programs/MultiUrgViewer/UrgStateWidget.h
Go to the documentation of this file.
00001 #ifndef URG_STATE_WIDGET_H
00002 #define URG_STATE_WIDGET_H
00003 
00015 #include "ui_UrgStateWidgetForm.h"
00016 #include <memory>
00017 
00018 class MultiUrgViewerWidget;
00019 
00020 
00021 class UrgStateWidget : public QWidget, private Ui::UrgStateWidgetForm
00022 {
00023   Q_OBJECT;
00024 
00025   UrgStateWidget(const UrgStateWidget& rhs);
00026   UrgStateWidget& operator = (const UrgStateWidget& rhs);
00027 
00028   struct pImpl;
00029   std::auto_ptr<pImpl> pimpl;
00030 
00031 private slots:
00032   void connectDevice(bool connection, const std::string& device);
00033   void captureHandler(void);
00034   void setViewer(void);
00035 
00036 public:
00037   UrgStateWidget(MultiUrgViewerWidget* parent = 0);
00038   ~UrgStateWidget(void);
00039 
00040   void setDevices(const std::vector<std::string>& devices);
00041   std::string device(void) const;
00042   bool isConnected(void) const;
00043 
00044 signals:
00045   void deleteUrgState(UrgStateWidget* widget);
00046 };
00047 
00048 #endif /* !URG_STATE_WIDGET_H */