Commit 956a56fa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add destructor + virtual method

parent 0b726676
......@@ -29,6 +29,10 @@ ResourceConverter::ResourceConverter()
}
ResourceConverter::~ResourceConverter()
{
}
QString ResourceConverter::adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData)
{
QString newUrl = ResourceConverter::resourcePath(resourceConfig);
......
......@@ -27,13 +27,15 @@ class PIMDATAEXPORTER_EXPORT ResourceConverter
{
public:
ResourceConverter();
QString agentFileName(const QString &filename);
QString resourcePath(const QString &agentIdentifier, const QString &defaultPath = QString());
virtual ~ResourceConverter();
Q_REQUIRED_RESULT QString agentFileName(const QString &filename);
Q_REQUIRED_RESULT QString resourcePath(const QString &agentIdentifier, const QString &defaultPath = QString());
void convertCollectionToRealPath(KConfigGroup &group, const QString &currentKey);
void convertCollectionListToRealPath(KConfigGroup &group, const QString &currentKey);
void convertCollectionIdsToRealPath(KConfigGroup &group, const QString &currentKey, const QString &prefixCollection = QString());
QString resourcePath(const KSharedConfigPtr &resourceConfig, const QString &defaultPath = QString());
QString adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData);
Q_REQUIRED_RESULT QString resourcePath(const KSharedConfigPtr &resourceConfig, const QString &defaultPath = QString());
Q_REQUIRED_RESULT QString adaptResourcePath(const KSharedConfigPtr &resourceConfig, const QString &storedData);
virtual Q_REQUIRED_RESULT QString convertToFullCollectionPath(const qlonglong collectionValue) = 0;
};
#endif // RESOURCECONVERTER_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