Class: Idb::IDeviceSyslogThread
- Inherits:
-
Qt::Object
- Object
- Qt::Object
- Idb::IDeviceSyslogThread
- Defined in:
- lib/gui/i_device_syslog_thread.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ IDeviceSyslogThread
constructor
A new instance of IDeviceSyslogThread.
- #stop ⇒ Object
Constructor Details
#initialize(*args) ⇒ IDeviceSyslogThread
Returns a new instance of IDeviceSyslogThread.
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/gui/i_device_syslog_thread.rb', line 7 def initialize *args super *args $terminate_syslog_thread = false if which('idevicesyslog').nil? error = Qt::MessageBox.new error.setInformativeText("This feature requires idevicesyslog to be installed on the host running idb. Try:<br>OS X: brew install libimobiledevice<br>Ubuntu: apt-get install libimobiledevice-utils") error.setIcon(Qt::MessageBox::Critical) error.exec return false end start_log_thread puts @log_thread end |
Instance Method Details
#stop ⇒ Object
22 23 24 |
# File 'lib/gui/i_device_syslog_thread.rb', line 22 def stop $terminate_syslog_thread = true end |