mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
refs #442 Add CPluginManagerSimulator
* Rename CPluginManager to IPluginManager, it is an abstract class now * Move plugin-related code to CPluginManagerSimulator * Remove plugin validation from CSimulatorPluginInfo
This commit is contained in:
committed by
Mathew Sutcliffe
parent
02733cacb7
commit
a4f0007414
@@ -66,11 +66,6 @@ namespace BlackCore
|
|||||||
|
|
||||||
bool IPluginManager::isValid(const QJsonObject &metadata) const
|
bool IPluginManager::isValid(const QJsonObject &metadata) const
|
||||||
{
|
{
|
||||||
if (!metadata.contains("IID") || !metadata["IID"].isString())
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!metadata["MetaData"].isObject())
|
if (!metadata["MetaData"].isObject())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -134,4 +129,5 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user