mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#ifndef IMPORTFOLDERUTILS_H
|
|
#define IMPORTFOLDERUTILS_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <QStringList>
|
|
|
|
namespace vnotex
|
|
{
|
|
class Notebook;
|
|
class Node;
|
|
|
|
// A dummy class used to do translations.
|
|
class ImportFolderUtilsTranslate : public QObject
|
|
{
|
|
Q_OBJECT
|
|
};
|
|
|
|
class ImportFolderUtils
|
|
{
|
|
public:
|
|
ImportFolderUtils() = delete;
|
|
|
|
// Process folder @p_node.
|
|
// @p_node has already been added.
|
|
static void importFolderContents(Notebook *p_notebook,
|
|
Node *p_node,
|
|
const QStringList &p_suffixes,
|
|
QString &p_errMsg);
|
|
|
|
// Process folder @p_node by legacy notebook config.
|
|
// @p_node has already been added.
|
|
static void importFolderContentsByLegacyConfig(Notebook *p_notebook,
|
|
Node *p_node,
|
|
QString &p_errMsg);
|
|
};
|
|
}
|
|
|
|
#endif // IMPORTFOLDERUTILS_H
|