Commit 04e1ca6a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add configLocation()

parent a2a83631
Pipeline #25419 passed with stage
in 28 minutes and 40 seconds
......@@ -64,3 +64,9 @@ QString ImportNotesJobInterfaceTestImpl::adaptNewResourceUrl(bool overwriteResou
resourceConverterTest.setTestPath(mPathConfig);
return resourceConverterTest.adaptNewResourceUrl(overwriteResources, resourceConfig, storePath);
}
QString ImportNotesJobInterfaceTestImpl::configLocation() const
{
//TODO
return {};
}
......@@ -37,6 +37,7 @@ protected:
void synchronizeResource(const QStringList &lst) override;
Q_REQUIRED_RESULT QString adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData) override;
Q_REQUIRED_RESULT QString adaptNewResourceUrl(bool overwriteResources, const KSharedConfig::Ptr &resourceConfig, const QString &storePath) override;
Q_REQUIRED_RESULT QString configLocation() const override;
};
#endif // IMPORTNOTESJOBINTERFACETESTIMPL_H
......@@ -33,6 +33,7 @@ public:
void start() override;
protected:
virtual Q_REQUIRED_RESULT QString configLocation() const = 0;
virtual void synchronizeResource(const QStringList &lst) = 0;
virtual Q_REQUIRED_RESULT QString adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData) = 0;
void slotNextStep() override;
......
......@@ -34,6 +34,11 @@ ImportNotesJobInterfaceImpl::ImportNotesJobInterfaceImpl(QObject *parent, Utils:
initializeImportJob();
}
QString ImportNotesJobInterfaceImpl::configLocation() const
{
return QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QLatin1Char('/');
}
ImportNotesJobInterfaceImpl::~ImportNotesJobInterfaceImpl()
{
}
......
......@@ -38,6 +38,7 @@ protected:
Q_REQUIRED_RESULT QString createResource(const QString &resources, const QString &name, const QMap<QString, QVariant> &settings, bool synchronizeTree = false) override;
void synchronizeResource(const QStringList &lst) override;
Q_REQUIRED_RESULT QString adaptNewResourceUrl(bool overwriteResources, const KSharedConfig::Ptr &resourceConfig, const QString &storePath) override;
Q_REQUIRED_RESULT QString configLocation() const override;
};
#endif // IMPORTNOTESJOB_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment