Skip to content

Technical notes on gear loading process

jukea edited this page Jan 15, 2013 · 4 revisions
  • DroneCore::init()
  • | GearMaker::instance()->parse();
  • | | parseDroneGears(rootDir);
  • | | | QDir gearsDir(rootDir.path() + "/" + DRONEGEARS_SUBPATH);
  • | | | parseGears(gearsDir, extension);
  • | | | | GearInfoDrone * gearInfo = new GearInfoDrone(fi);
  • | | | | | GearInfoDrone::GearInfoDrone(QFileInfo pluginFile) :GearInfo(TYPENAME, pluginFile)
  • | | | | gearInfo->load();
  • | | | | | (GearInfoDrone::)bindPlugin();
  • | | | | | loadMetaInfo();
  • | | | | | | (fill GearInfo with description etc...)
  • | | | | | | res=SyncPlugInfo();
  • | | | | | | if(!res) createDefaultMetaInfo();
  • | | | | _registry[gearInfo->fullName()]=gearInfo;
  • | | parseFrei0rGears(rootDir);
  • ...
  • | | parseMetaGears(rootDir);
  • ...