36 explicit QgsPathResolver(
const QString &baseFileName = QString(),
const QString &attachmentDir = QString() );
43 QString
writePath(
const QString &filename )
const;
46 QString
readPath(
const QString &filename )
const;
68 static QString
setPathPreprocessor(
const std::function< QString(
const QString &filename )> &processor );
119 Py_BEGIN_ALLOW_THREADS
124 PyObject *s = sipCallMethod( NULL, a0,
"D", &arg, sipType_QString, NULL );
127 QString *t1 =
reinterpret_cast<QString *
>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
128 if ( sipIsError == 0 )
130 res = QString( *t1 );
132 sipReleaseType( t1, sipType_QString, state );
138 s = sipConvertFromNewType(
new QString(
id ), sipType_QString, 0 );
172 PyErr_SetString( PyExc_KeyError, QStringLiteral(
"No processor with id %1 exists." ).arg( *a0 ).toUtf8().constData() );
199 static QString
setPathWriter(
const std::function< QString(
const QString &filename )> &writer );
225 static QString
setPathWriter( SIP_PYCALLABLE / AllowNone / );
230 Py_BEGIN_ALLOW_THREADS
235 PyObject *s = sipCallMethod( NULL, a0,
"D", &arg, sipType_QString, NULL );
238 QString *t1 =
reinterpret_cast<QString *
>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
239 if ( sipIsError == 0 )
241 res = QString( *t1 );
243 sipReleaseType( t1, sipType_QString, state );
249 s = sipConvertFromNewType(
new QString(
id ), sipType_QString, 0 );
281 PyErr_SetString( PyExc_KeyError, QStringLiteral(
"No writer with id %1 exists." ).arg( *a0 ).toUtf8().constData() );
289 QString mBaseFileName;
291 QString mAttachmentDir;