-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utilities/Zeroconf.app: Use dns-sd instead of avahi-browse #57
base: master
Are you sure you want to change the base?
Commits on Mar 25, 2021
-
Move zeroconf tool into Resources/zeroconf.py
- This will make it easier to write unit tests later. - This is consistent with the example set in Utilities/Calculator.app. - ./Zeroconf is now just a shell script pointing to the Python application.
Configuration menu - View commit details
-
Copy full SHA for cbf2b17 - Browse repository at this point
Copy the full SHA cbf2b17View commit details -
ZeroconfBrowser: Remove new-style class syntax
In Python 2, there were old-style classes (`class Foo:`) and new-style classes (`class Foo(object):`). This is not necessary in Python 3.
Configuration menu - View commit details
-
Copy full SHA for adaea29 - Browse repository at this point
Copy the full SHA adaea29View commit details -
ZeroconfBrowser.quit(): call self.app.quit() not sys.exit()
This means that the self.app.aboutToQuit signal will be processed, and the application can clean up after itself.
Configuration menu - View commit details
-
Copy full SHA for 1247a01 - Browse repository at this point
Copy the full SHA 1247a01View commit details -
ZeroconfService: Rewrite class
A simple class representing a service, with some unused fields left out, and with no handle() method.
Configuration menu - View commit details
-
Copy full SHA for 5082097 - Browse repository at this point
Copy the full SHA 5082097View commit details -
Configuration menu - View commit details
-
Copy full SHA for b037d74 - Browse repository at this point
Copy the full SHA b037d74View commit details -
ZeroconfService: Allow testing for equality between instances
This will be useful when we want to remove services from the list or avoid adding duplicates.
Configuration menu - View commit details
-
Copy full SHA for 7b118e7 - Browse repository at this point
Copy the full SHA 7b118e7View commit details -
It runs a command using QProcess and emits each line of the output through a pyqtSignal.
Configuration menu - View commit details
-
Copy full SHA for a8091ef - Browse repository at this point
Copy the full SHA a8091efView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee70c48 - Browse repository at this point
Copy the full SHA ee70c48View commit details -
This class discovers services on the local network by running `dns-sd`.
Configuration menu - View commit details
-
Copy full SHA for 7a114fb - Browse repository at this point
Copy the full SHA 7a114fbView commit details -
ZeroconfDiscoverer: Clean up all QProcesses on quit
This means the tool no longer leaves several `dns-sd` processes running in the background.
Configuration menu - View commit details
-
Copy full SHA for a504903 - Browse repository at this point
Copy the full SHA a504903View commit details -
ZeroconfServices & ZeroconfBrowser: Hook them up
The recently added/modified classes behave differently from the old ones - so hook things up.
Configuration menu - View commit details
-
Copy full SHA for 02088b5 - Browse repository at this point
Copy the full SHA 02088b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa3046c - Browse repository at this point
Copy the full SHA aa3046cView commit details -
ZeroconfServices: Handle removing items from the list
I don't know how to remove a PyQt5 widget entirely, so I used setHidden(true).
Configuration menu - View commit details
-
Copy full SHA for acc2875 - Browse repository at this point
Copy the full SHA acc2875View commit details -
ZeroconfBrowser.onDoubleClicked(): Fix to work with new self.services
- self.services changed slightly in the previous commit, so the method has been updated to handle that. - DRY.
Configuration menu - View commit details
-
Copy full SHA for 7d0ff8c - Browse repository at this point
Copy the full SHA 7d0ff8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b842e66 - Browse repository at this point
Copy the full SHA b842e66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a1a85e - Browse repository at this point
Copy the full SHA 1a1a85eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d02d295 - Browse repository at this point
Copy the full SHA d02d295View commit details