| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #include "appcontext.h"
- #include <QDir>
- #include <QDebug>
- AppContext::AppContext(QObject *parent)
- : QObject{parent}
- {
- }
- AppContext::~AppContext()
- {
- }
- AppContext &AppContext::instance()
- {
- static AppContext instance;
- return instance;
- }
- PluginManager &AppContext::pluginManager()
- {
- return m_pluginMgr;
- }
- ProjectManager &AppContext::projectManager()
- {
- return m_projectMgr;
- }
- Network &AppContext::network()
- {
- return m_network;
- }
- SerialPort &AppContext::serialPort()
- {
- return m_serialPort;
- }
- FileServer &AppContext::fileserver()
- {
- return m_fileServer;
- }
|