/************************************************************************ * 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 The class is used as a container of context for various read/write operations on other objects. .. versionadded:: 3.0 %End %TypeHeaderCode #include "qgsreadwritecontext.h" %End public: struct ReadWriteMessage { ReadWriteMessage( const QString &message, Qgis::MessageLevel level = Qgis::Warning, const 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 }; QgsReadWriteContext(); %Docstring Constructor for QgsReadWriteContext. %End ~QgsReadWriteContext(); 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 %End void pushMessage( const QString &message, Qgis::MessageLevel level = Qgis::Warning ); %Docstring Append a message to the context .. versionadded:: 3.2 %End QList takeMessages(); %Docstring Return the stored messages and remove them .. versionadded:: 3.2 %End }; /************************************************************************ * This file has been generated automatically from * * * * src/core/qgsreadwritecontext.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/