Commit 3cf63f30 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to convert collection id too. Need to improve it yet

parent b29b5daa
add_definitions( -DPIMDATAEXPORTER_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" )
set( exportnotesjobinterfacetest_SRCS exportnotesjobinterfacetest.cpp )
set( exportnotesjobinterfacetest_SRCS exportnotesjobinterfacetest.cpp resourceconvertertest.cpp )
add_executable( exportnotesjobinterfacetest ${exportnotesjobinterfacetest_SRCS})
add_test(NAME exportnotesjobinterfacetest COMMAND exportnotesjobinterfacetest)
......
......@@ -20,6 +20,7 @@
#include "exportnotesjobinterfacetest.h"
#include "notes/exportnotesjobinterface.h"
#include "archivestorage.h"
#include "resourceconvertertest.h"
#include <QStandardPaths>
#include <QTest>
#include <QSignalSpy>
......@@ -38,6 +39,9 @@ ExportNotesJobInterfaceTestImpl::~ExportNotesJobInterfaceTestImpl()
void ExportNotesJobInterfaceTestImpl::convertCollectionIdsToRealPath(KConfigGroup &selectFolderNoteGroup, const QString &selectFolderNoteGroupStr)
{
ResourceConverterTest resourceImpl;
resourceImpl.convertCollectionIdsToRealPath(selectFolderNoteGroup, selectFolderNoteGroupStr);
//TODO
}
......
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "resourceconvertertest.h"
ResourceConverterTest::ResourceConverterTest()
{
}
ResourceConverterTest::~ResourceConverterTest()
{
}
QString ResourceConverterTest::convertToFullCollectionPath(const qlonglong collectionValue)
{
//TODO
return QStringLiteral("COLLECTION_CONVERTED");
}
/*
Copyright (C) 2020 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef RESOURCECONVERTERTEST_H
#define RESOURCECONVERTERTEST_H
#include "resourceconverterbase.h"
#include "pimdataexporter_export.h"
class PIMDATAEXPORTER_EXPORT ResourceConverterTest : public ResourceConverterBase
{
public:
ResourceConverterTest();
~ResourceConverterTest() override;
Q_REQUIRED_RESULT QString convertToFullCollectionPath(const qlonglong collectionValue) override;
};
#endif // RESOURCECONVERTERTEST_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