dummynode.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef DUMMYNODE_H
  2. #define DUMMYNODE_H
  3. #include <notebook/node.h>
  4. namespace tests
  5. {
  6. class DummyNode : public vnotex::Node
  7. {
  8. public:
  9. DummyNode(Flags p_flags, vnotex::ID p_id, const QString &p_name, vnotex::Notebook *p_notebook, Node *p_parent);
  10. QString fetchAbsolutePath() const Q_DECL_OVERRIDE;
  11. QSharedPointer<vnotex::File> getContentFile() Q_DECL_OVERRIDE;
  12. QStringList addAttachment(const QString &p_destFolderPath, const QStringList &p_files) Q_DECL_OVERRIDE;
  13. QString newAttachmentFile(const QString &p_destFolderPath, const QString &p_name) Q_DECL_OVERRIDE;
  14. QString newAttachmentFolder(const QString &p_destFolderPath, const QString &p_name) Q_DECL_OVERRIDE;
  15. QString renameAttachment(const QString &p_path, const QString &p_name) Q_DECL_OVERRIDE;
  16. void removeAttachment(const QStringList &p_paths) Q_DECL_OVERRIDE;
  17. void load() Q_DECL_OVERRIDE;
  18. void save() Q_DECL_OVERRIDE;
  19. };
  20. }
  21. #endif // DUMMYNODE_H