1#include "OpenFunctionThread.hh"
6void LoadFromPluginThread::loadFromPlugin()
8 for (
unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
11 for (
int i = 0; i < infos_.size(); ++i)
13 LoadInfos info = infos_[i];
15 loadedIds_[i] = info.plugin->loadObject(info.filename,info.type );
17 loadedIds_[i] = info.plugin->loadObject(info.filename);
26LoadFromPluginThread::~LoadFromPluginThread()
33LoadFromPluginThread::LoadFromPluginThread(
const QVector<LoadInfos>& _loadInfos,
const QString& _jobName)
34:
OpenFlipperThread(_jobName), infos_(_loadInfos), loadedIds_(_loadInfos.size(),-1)
36 connect(
this ,SIGNAL(function()),
this, SLOT(loadFromPlugin()), Qt::DirectConnection) ;
41int LoadFromPluginThread::getObjId(
int index)
const
43 return loadedIds_[index];
48const QString& LoadFromPluginThread::getFilename(
int index)
const
50 return infos_[index].filename;
const DataType DATA_UNKNOWN(0)
None of the other Objects.
Thread handling class for OpenFlipper.
QString jobId()
get JobId get the Id of the current Job
void state(QString _jobId, int _state)
Tell core about job state.
void unLockUpdate()
Unlock display locked by updateLock().
Viewer::ViewerProperties & viewerProperties(int _id)
Get the viewer properties Use this functions to get basic viewer properties such as backgroundcolor o...
int viewers()
Get the number of viewers.