38 explicit QgsPathResolver(
const QString &baseFileName = QString(),
const QString &attachmentDir = QString() );
45 QString
writePath(
const QString &filename )
const;
48 QString
readPath(
const QString &filename )
const;
70 static QString
setPathPreprocessor(
const std::function< QString(
const QString &filename )> &processor );
121 Py_BEGIN_ALLOW_THREADS
126 PyObject *s = sipCallMethod( NULL, a0,
"D", &arg, sipType_QString, NULL );
129 QString *t1 =
reinterpret_cast<QString *
>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
130 if ( sipIsError == 0 )
132 res = QString( *t1 );
134 sipReleaseType( t1, sipType_QString, state );
140 s = sipConvertFromNewType(
new QString(
id ), sipType_QString, 0 );
174 PyErr_SetString( PyExc_KeyError, u
"No processor with id %1 exists."_s.arg( *a0 ).toUtf8().constData() );
201 static QString
setPathWriter(
const std::function< QString(
const QString &filename )> &writer );
227 static QString
setPathWriter( SIP_PYCALLABLE / AllowNone / );
232 Py_BEGIN_ALLOW_THREADS
237 PyObject *s = sipCallMethod( NULL, a0,
"D", &arg, sipType_QString, NULL );
240 QString *t1 =
reinterpret_cast<QString *
>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
241 if ( sipIsError == 0 )
243 res = QString( *t1 );
245 sipReleaseType( t1, sipType_QString, state );
251 s = sipConvertFromNewType(
new QString(
id ), sipType_QString, 0 );
283 PyErr_SetString( PyExc_KeyError, u
"No writer with id %1 exists."_s.arg( *a0 ).toUtf8().constData() );
291 QString mBaseFileName;
293 QString mAttachmentDir;