vnote/src/core/notebook/vxnode.h
2021-02-01 20:42:39 +08:00

46 lines
1.3 KiB
C++

#ifndef VXNODE_H
#define VXNODE_H
#include "node.h"
namespace vnotex
{
// Node of VXNotebookConfigMgr.
class VXNode : public Node
{
public:
// For content node.
VXNode(ID p_id,
const QString &p_name,
const QDateTime &p_createdTimeUtc,
const QDateTime &p_modifiedTimeUtc,
const QStringList &p_tags,
const QString &p_attachmentFolder,
Notebook *p_notebook,
Node *p_parent);
// For container node.
VXNode(const QString &p_name,
Notebook *p_notebook,
Node *p_parent);
QString fetchAbsolutePath() const Q_DECL_OVERRIDE;
QSharedPointer<File> getContentFile() Q_DECL_OVERRIDE;
QStringList addAttachment(const QString &p_destFolderPath, const QStringList &p_files) Q_DECL_OVERRIDE;
QString newAttachmentFile(const QString &p_destFolderPath, const QString &p_name) Q_DECL_OVERRIDE;
QString newAttachmentFolder(const QString &p_destFolderPath, const QString &p_name) Q_DECL_OVERRIDE;
QString renameAttachment(const QString &p_path, const QString &p_name) Q_DECL_OVERRIDE;
void removeAttachment(const QStringList &p_paths) Q_DECL_OVERRIDE;
private:
};
}
#endif // VXNODE_H