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 Summary
Constructors Constructor Description QMessageHandler()
-
Method Summary
Modifier and Type Method Description abstract void
critical(String message)
Implement this method to be notified about critical messagesabstract void
debug(String message)
Implement this method to be notified about debug messages.abstract void
fatal(String message)
Implement this method to be notified about fatal messages.static void
installMessageHandler(QMessageHandler addHandler)
Installs the specified message handler as a receiver for message notification.static void
removeMessageHandler(QMessageHandler removeHandler)
Removes the specified message handler as a receiver for message notification.static void
replaceMessageHandler(QMessageHandler removeHandler, QMessageHandler addHandler)
Can atomically install and/or remove a handler.abstract void
warning(String message)
Implement this method to be notified about warnings.
-
Constructor Details
-
QMessageHandler
public QMessageHandler()
-
-
Method Details
-
debug
Implement this method to be notified about debug messages. -
warning
Implement this method to be notified about warnings. -
critical
Implement this method to be notified about critical messages -
fatal
Implement this method to be notified about fatal messages. After receiving a fatal message the application will immediatly shut down. -
installMessageHandler
Installs the specified message handler as a receiver for message notification. -
removeMessageHandler
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 nulladdHandler
- Maybe null
-