Module qtjambi
Package io.qt.core

Class QMessageHandler

java.lang.Object
io.qt.core.QMessageHandler

public abstract class QMessageHandler
extends Object
The QMessageHandler class provides a means of receiving notifications when the C++ side of Qt Jambi enters a state where it produces warnings and debug messages and similar.
  • Constructor Details

  • Method Details

    • debug

      public abstract void debug​(String message)
      Implement this method to be notified about debug messages.
    • warning

      public abstract void warning​(String message)
      Implement this method to be notified about warnings.
    • critical

      public abstract void critical​(String message)
      Implement this method to be notified about critical messages
    • fatal

      @QtUninvokable public abstract void fatal​(String message)
      Implement this method to be notified about fatal messages. After receiving a fatal message the application will immediatly shut down.
    • installMessageHandler

      @QtUninvokable public static void installMessageHandler​(QMessageHandler addHandler)
      Installs the specified message handler as a receiver for message notification.
    • removeMessageHandler

      @QtUninvokable public static void removeMessageHandler​(QMessageHandler removeHandler)
      Removes the specified message handler as a receiver for message notification.
    • replaceMessageHandler

      @QtUninvokable public static void replaceMessageHandler​(QMessageHandler removeHandler, QMessageHandler addHandler)
      Can atomically install and/or remove a handler.
      Parameters:
      removeHandler - Maybe null
      addHandler - Maybe null