File indexing completed on 2022-09-27 16:29:13

0001 /**
0002  * SPDX-FileCopyrightText: (C) 2003 by Sébastien Laoût <slaout@linux62.org>
0003  * SPDX-License-Identifier: GPL-2.0-or-later
0004  */
0005 
0006 #ifndef FORMATIMPORTER_H
0007 #define FORMATIMPORTER_H
0008 
0009 #include <QtCore/QObject>
0010 
0011 class QDomElement;
0012 
0013 namespace KIO
0014 {
0015 class Job;
0016 }
0017 
0018 /**
0019  * @author Sébastien Laoût
0020  */
0021 class FormatImporter : public QObject
0022 {
0023     Q_OBJECT
0024 public:
0025     static bool shouldImportBaskets();
0026     static void importBaskets();
0027     static QDomElement importBasket(const QString &folderName);
0028 
0029     void copyFolder(const QString &folder, const QString &newFolder);
0030     void moveFolder(const QString &folder, const QString &newFolder);
0031 private Q_SLOTS:
0032     void slotCopyingDone(KIO::Job *);
0033 
0034 private:
0035     bool copyFinished;
0036 };
0037 
0038 #endif // FORMATIMPORTER_H