X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdialogs%2Fconnect.hpp;h=d9cf0a53cfc689b3142b64ae4d078b2a3b0ed7fc;hb=7ea2a4ff0765fdad34b84e4b4631d6f3f5588714;hp=ba8339c7cc56d11cd250baa13d12384631ed3cfd;hpb=34750abe0a89c4b5184daf6dc117adfafa74a84e;p=pulseview.git
diff --git a/pv/dialogs/connect.hpp b/pv/dialogs/connect.hpp
index ba8339c..d9cf0a5 100644
--- a/pv/dialogs/connect.hpp
+++ b/pv/dialogs/connect.hpp
@@ -14,31 +14,40 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
-#ifndef PULSEVIEW_PV_CONNECT_H
-#define PULSEVIEW_PV_CONNECT_H
+#ifndef PULSEVIEW_PV_CONNECT_HPP
+#define PULSEVIEW_PV_CONNECT_HPP
#include
+#include
#include
#include
#include
#include
+#include
#include
#include
#include
+#include
#include
+using std::shared_ptr;
+
namespace sigrok {
- class Driver;
- class HardwareDevice;
+class Driver;
+}
+
+namespace pv {
+namespace devices {
+class HardwareDevice;
+}
}
-Q_DECLARE_METATYPE(std::shared_ptr);
-Q_DECLARE_METATYPE(std::shared_ptr);
+Q_DECLARE_METATYPE(shared_ptr);
+Q_DECLARE_METATYPE(shared_ptr);
namespace pv {
@@ -53,19 +62,20 @@ class Connect : public QDialog
public:
Connect(QWidget *parent, pv::DeviceManager &device_manager);
- std::shared_ptr get_selected_device() const;
+ shared_ptr get_selected_device() const;
private:
void populate_drivers();
- void populate_serials(std::shared_ptr driver);
+ void populate_serials(shared_ptr driver);
void unset_connection();
- void set_serial_connection(std::shared_ptr driver);
-
private Q_SLOTS:
- void device_selected(int index);
+ void driver_selected(int index);
+
+ void serial_toggled(bool checked);
+ void tcp_toggled(bool checked);
void scan_pressed();
@@ -81,6 +91,11 @@ private:
QComboBox serial_devices_;
+ QWidget *tcp_config_;
+ QLineEdit *tcp_host_;
+ QSpinBox *tcp_port_;
+ QCheckBox *tcp_use_vxi_;
+
QPushButton scan_button_;
QListWidget device_list_;
@@ -90,4 +105,4 @@ private:
} // namespace dialogs
} // namespace pv
-#endif // PULSEVIEW_PV_CONNECT_H
+#endif // PULSEVIEW_PV_CONNECT_HPP