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 );
122 Py_BEGIN_ALLOW_THREADS
127 PyObject *s = sipCallMethod( NULL, a0,
"D", &arg, sipType_QString, NULL );
130 QString *t1 =
reinterpret_cast<QString *
>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
131 if ( sipIsError == 0 )
133 res = QString( *t1 );
135 sipReleaseType( t1, sipType_QString, state );
141 s = sipConvertFromNewType(
new QString(
id ), sipType_QString, 0 );
177 PyErr_SetString( PyExc_KeyError, u
"No processor with id %1 exists."_s.arg( *a0 ).toUtf8().constData() );
204 static QString
setPathWriter(
const std::function< QString(
const QString &filename )> &writer );
231 static QString
setPathWriter( SIP_PYCALLABLE / AllowNone / );
236 Py_BEGIN_ALLOW_THREADS
241 PyObject *s = sipCallMethod( NULL, a0,
"D", &arg, sipType_QString, NULL );
244 QString *t1 =
reinterpret_cast<QString *
>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
245 if ( sipIsError == 0 )
247 res = QString( *t1 );
249 sipReleaseType( t1, sipType_QString, state );
255 s = sipConvertFromNewType(
new QString(
id ), sipType_QString, 0 );
289 PyErr_SetString( PyExc_KeyError, u
"No writer with id %1 exists."_s.arg( *a0 ).toUtf8().constData() );
298 QString mBaseFileName;
300 QString mAttachmentDir;