QGIS/python/core/auto_generated/qgsmessagelog.sip.in

75 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-04-07 08:50:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsmessagelog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2013-04-13 10:28:05 +02:00
class QgsMessageLog : QObject
2011-11-18 23:05:48 +01:00
{
2017-04-07 08:50:57 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Interface for logging messages from QGIS in GUI independent way.
This class provides abstraction of a tabbed window for showing messages to the user.
By default QgsMessageLogOutput will be used if not overridden with another
message log creator function.
2017-04-20 13:48:50 +02:00
2017-12-15 10:36:55 -04:00
QGIS application uses QgsMessageLog class for logging messages in a dockable
window for the user.
2017-04-07 08:50:57 +02:00
2017-12-15 10:36:55 -04:00
QgsMessageLog is not usually directly created, but rather accessed through
2017-12-19 11:43:52 -04:00
:py:func:`QgsApplication.messageLog()`
2011-11-18 23:05:48 +01:00
%End
2017-04-07 08:50:57 +02:00
%TypeHeaderCode
#include "qgsmessagelog.h"
%End
2011-11-18 23:05:48 +01:00
public:
2012-01-18 19:21:42 +01:00
2017-04-07 08:50:57 +02:00
QgsMessageLog();
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsMessageLog.
%End
2012-01-18 19:21:42 +01:00
static void logMessage( const QString &message, const QString &tag = QString(), Qgis::MessageLevel level = Qgis::Warning );
2017-04-07 08:50:57 +02:00
%Docstring
add a message to the instance (and create it if necessary)
%End
2012-01-18 19:21:42 +01:00
2017-04-07 08:50:57 +02:00
signals:
void messageReceived( const QString &message, const QString &tag, Qgis::MessageLevel level );
2017-04-07 08:50:57 +02:00
void messageReceived( bool received );
2017-04-07 08:50:57 +02:00
};
class QgsMessageLogConsole : QObject
{
2017-04-07 08:50:57 +02:00
%Docstring
Default implementation of message logging interface
2017-04-20 13:48:50 +02:00
2017-04-07 08:50:57 +02:00
This class outputs log messages to the standard output. Therefore it might
be the right choice for apps without GUI.
%End
2017-04-07 08:50:57 +02:00
%TypeHeaderCode
#include "qgsmessagelog.h"
%End
public:
QgsMessageLogConsole();
public slots:
void logMessage( const QString &message, const QString &tag, Qgis::MessageLevel level );
};
2017-04-07 08:50:57 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsmessagelog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/