[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    qeditor: implement usb device list refresh (if supported)
From:       gerrit () rockbox ! org
Date:       2014-09-19 8:58:23
Message-ID: 201409190858.s8J8wNCB000712 () giant ! haxx ! se
[Download RAW message or body]

commit dbb59291e745c7cc640a35fc40faa083648793bf
Author: Amaury Pouly <amaury.pouly@gmail.com>
Date:   Thu Sep 18 19:46:26 2014 +0200

    qeditor: implement usb device list refresh (if supported)
    
    Change-Id: Iaf05cad0e057f767dcde963d194027b2e290dbea
    Reviewed-on: http://gerrit.rockbox.org/978
    Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>

diff --git a/utils/regtools/qeditor/utils.cpp b/utils/regtools/qeditor/utils.cpp
index 0719eec..036f159 100644
--- a/utils/regtools/qeditor/utils.cpp
+++ b/utils/regtools/qeditor/utils.cpp
@@ -829,6 +829,8 @@ BackendSelector::BackendSelector(Backend *backend, QWidget *parent)
 #ifdef HAVE_HWSTUB
     connect(m_dev_selector, SIGNAL(currentIndexChanged(int)),
         this, SLOT(OnDevChanged(int)));
+    connect(&m_hwstub_helper, SIGNAL(OnDevListChanged(bool, struct libusb_device *)),
+        this, SLOT(OnDevListChanged2(bool, struct libusb_device *)));
 #endif
     OnDataSelChanged(0);
 }
@@ -883,6 +885,13 @@ void BackendSelector::OnDataSelChanged(int index)
 }
 
 #ifdef HAVE_HWSTUB
+void BackendSelector::OnDevListChanged2(bool arrived, struct libusb_device *dev)
+{
+    Q_UNUSED(arrived);
+    Q_UNUSED(dev);
+    OnDevListChanged();
+}
+
 void BackendSelector::OnDevListChanged()
 {
     ClearDevList();
diff --git a/utils/regtools/qeditor/utils.h b/utils/regtools/qeditor/utils.h
index 56d4962..9700102 100644
--- a/utils/regtools/qeditor/utils.h
+++ b/utils/regtools/qeditor/utils.h
@@ -312,6 +312,7 @@ private slots:
 #ifdef HAVE_HWSTUB
     void OnDevListChanged();
     void OnDevChanged(int index);
+    void OnDevListChanged2(bool, struct libusb_device *);
     void ClearDevList();
 #endif
     void OnDataSelChanged(int index);
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic