2017-05-12 17:31:01 +08:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsreadwritecontext.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsReadWriteContext
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
The class is used as a container of context for various read/write operations on other objects.
|
|
|
|
|
2017-05-12 17:31:01 +08:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsreadwritecontext.h"
|
|
|
|
%End
|
|
|
|
public:
|
2017-09-11 21:55:20 +10:00
|
|
|
|
2018-02-26 14:08:03 -04:00
|
|
|
struct ReadWriteMessage
|
|
|
|
{
|
|
|
|
ReadWriteMessage( const QString &message, Qgis::MessageLevel level = Qgis::Warning, QStringList categories = QStringList() );
|
|
|
|
%Docstring
|
|
|
|
Construct a container for QgsReadWriteContext error or warning messages
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString message() const;
|
|
|
|
%Docstring
|
|
|
|
Return the message string
|
|
|
|
%End
|
|
|
|
|
|
|
|
Qgis::MessageLevel level() const;
|
|
|
|
%Docstring
|
|
|
|
Return the message level
|
|
|
|
%End
|
|
|
|
|
|
|
|
QStringList categories() const;
|
|
|
|
%Docstring
|
|
|
|
Return the stack of categories of the message
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-05-12 17:31:01 +08:00
|
|
|
QgsReadWriteContext();
|
2017-09-11 21:55:20 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsReadWriteContext.
|
2017-09-11 21:55:20 +10:00
|
|
|
%End
|
2017-05-12 17:31:01 +08:00
|
|
|
|
2018-02-26 14:08:03 -04:00
|
|
|
~QgsReadWriteContext();
|
|
|
|
|
2017-05-12 17:31:01 +08:00
|
|
|
const QgsPathResolver &pathResolver() const;
|
|
|
|
%Docstring
|
|
|
|
Returns path resolver for conversion between relative and absolute paths
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setPathResolver( const QgsPathResolver &resolver );
|
|
|
|
%Docstring
|
|
|
|
Sets up path resolver for conversion between relative and absolute paths
|
2018-02-06 14:57:04 -04:00
|
|
|
%End
|
|
|
|
|
2018-02-26 14:08:03 -04:00
|
|
|
void pushMessage( const QString &message, Qgis::MessageLevel level );
|
2018-02-06 14:57:04 -04:00
|
|
|
%Docstring
|
|
|
|
append a message to the context
|
2018-02-26 14:08:03 -04:00
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
void enterCategory( const QString &category, const QString &details = QString() );
|
|
|
|
%Docstring
|
|
|
|
Push a category to the stack
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
void leaveCategory();
|
|
|
|
%Docstring
|
|
|
|
Pop the last category
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
2018-02-06 14:57:04 -04:00
|
|
|
%End
|
|
|
|
|
2018-02-26 14:08:03 -04:00
|
|
|
QList<QgsReadWriteContext::ReadWriteMessage> takeMessages();
|
2018-02-06 14:57:04 -04:00
|
|
|
%Docstring
|
|
|
|
return the stored messages and remove them
|
2018-02-26 14:08:03 -04:00
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
2017-05-12 17:31:01 +08:00
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsreadwritecontext.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|