1 #include "OpenFunctionThread.hh" 6 void 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);
26 LoadFromPluginThread::~LoadFromPluginThread()
33 LoadFromPluginThread::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) ;
41 int LoadFromPluginThread::getObjId(
int index)
const 43 return loadedIds_[index];
48 const QString& LoadFromPluginThread::getFilename(
int index)
const 50 return infos_[index].filename;
int viewers()
Get the number of viewers.
void unLockUpdate()
Unlock display locked by updateLock().
void state(QString _jobId, int _state)
Tell core about job state.
Viewer::ViewerProperties & viewerProperties(int _id)
Get the viewer properties Use this functions to get basic viewer properties such as backgroundcolor o...
Thread handling class for OpenFlipper.
const DataType DATA_UNKNOWN(0)
None of the other Objects.
QString jobId()
get JobId get the Id of the current Job