inotebookconfigmgr.cpp 741 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include "inotebookconfigmgr.h"
  2. #include <notebookbackend/inotebookbackend.h>
  3. using namespace vnotex;
  4. INotebookConfigMgr::INotebookConfigMgr(const QSharedPointer<INotebookBackend> &p_backend,
  5. QObject *p_parent)
  6. : QObject(p_parent),
  7. m_backend(p_backend)
  8. {
  9. }
  10. INotebookConfigMgr::~INotebookConfigMgr()
  11. {
  12. }
  13. const QSharedPointer<INotebookBackend> &INotebookConfigMgr::getBackend() const
  14. {
  15. return m_backend;
  16. }
  17. QString INotebookConfigMgr::getCodeVersion() const
  18. {
  19. const QString version("1");
  20. return version;
  21. }
  22. Notebook *INotebookConfigMgr::getNotebook() const
  23. {
  24. return m_notebook;
  25. }
  26. void INotebookConfigMgr::setNotebook(Notebook *p_notebook)
  27. {
  28. m_notebook = p_notebook;
  29. }