This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/context.cpp
2021-05-20 18:27:45 +08:00

20 lines
373 B
C++

#include "context.h"
#include "native_driver.h"
Context::Context(QString contextId, QString source, QString extra)
{
this->mContextId = contextId;
this->source = source;
this->extra = extra;
}
InterfaceDriver* Context::getDriver()
{
if (driver == NULL)
{
driver = NativeDriver::getInstance();
return driver;
}
return driver;
}