appcontext.cpp 591 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include "appcontext.h"
  2. #include <QDir>
  3. #include <QDebug>
  4. AppContext::AppContext(QObject *parent)
  5. : QObject{parent}
  6. {
  7. }
  8. AppContext::~AppContext()
  9. {
  10. }
  11. AppContext &AppContext::instance()
  12. {
  13. static AppContext instance;
  14. return instance;
  15. }
  16. PluginManager &AppContext::pluginManager()
  17. {
  18. return m_pluginMgr;
  19. }
  20. ProjectManager &AppContext::projectManager()
  21. {
  22. return m_projectMgr;
  23. }
  24. Network &AppContext::network()
  25. {
  26. return m_network;
  27. }
  28. SerialPort &AppContext::serialPort()
  29. {
  30. return m_serialPort;
  31. }
  32. FileServer &AppContext::fileserver()
  33. {
  34. return m_fileServer;
  35. }