1
0

dummynode.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #include "dummynode.h"
  2. #include <utils/pathutils.h>
  3. #include <notebook/nodeparameters.h>
  4. using namespace tests;
  5. using namespace vnotex;
  6. DummyNode::DummyNode(Flags p_flags, ID p_id, const QString &p_name, Notebook *p_notebook, Node *p_parent)
  7. : Node(p_flags,
  8. p_name,
  9. NodeParameters(p_id),
  10. p_notebook,
  11. p_parent)
  12. {
  13. }
  14. QString DummyNode::fetchAbsolutePath() const
  15. {
  16. return PathUtils::concatenateFilePath("/", fetchPath());
  17. }
  18. QSharedPointer<File> DummyNode::getContentFile()
  19. {
  20. return nullptr;
  21. }
  22. QStringList DummyNode::addAttachment(const QString &p_destFolderPath, const QStringList &p_files)
  23. {
  24. Q_UNUSED(p_destFolderPath);
  25. Q_UNUSED(p_files);
  26. return QStringList();
  27. }
  28. QString DummyNode::newAttachmentFile(const QString &p_destFolderPath, const QString &p_name)
  29. {
  30. Q_UNUSED(p_destFolderPath);
  31. Q_UNUSED(p_name);
  32. return QString();
  33. }
  34. QString DummyNode::newAttachmentFolder(const QString &p_destFolderPath, const QString &p_name)
  35. {
  36. Q_UNUSED(p_destFolderPath);
  37. Q_UNUSED(p_name);
  38. return QString();
  39. }
  40. QString DummyNode::renameAttachment(const QString &p_path, const QString &p_name)
  41. {
  42. Q_UNUSED(p_path);
  43. Q_UNUSED(p_name);
  44. return QString();
  45. }
  46. void DummyNode::removeAttachment(const QStringList &p_paths)
  47. {
  48. Q_UNUSED(p_paths);
  49. }
  50. void DummyNode::load()
  51. {
  52. m_loaded = true;
  53. }
  54. void DummyNode::save()
  55. {
  56. }