Go to the documentation of this file.
8 #include <QPluginLoader>
16 class QProgressDialog;
50 static QString
GetIconPath(
const QString& widgetName);
52 void preloadAsync(QStringList widgetNames,
int delayMS = 1000);
54 QByteArray
getHash(
const QString& pluginPath);
58 static bool ContainsAny(
const QString&
str,
const QStringList& items);
static QString GetCategoryIconPath(const QString &widgetName)
static QString GetIconPath(const QString &widgetName)
armarx::ArmarXWidgetControllerPtr(* WidgetCreatorFunction)()
std::future< void > preloadFuture
std::shared_ptr< ArmarXWidgetInfo > ArmarXWidgetInfoPtr
void preloadAsync(QStringList widgetNames, int delayMS=1000)
std::recursive_mutex cacheMutex
void copyResourcesToCache()
bool cacheWidget(QString widgetName, ArmarXWidgetInfoPtr widgetCreator)
ArmarXWidgetInfoPtr getWidgetCreator(const QString &widgetName)
void removePluginFromCache(QString pluginPath)
const QString settingsOrganization
WidgetCreatorMap getAvailableWidgets() const
void updateLastModifiedTimestamp(const QString &pluginPath)
QSharedPointer< QPluginLoader > pluginLoader
QMap< QString, PluginData > pluginData
const QString settingsApplicationName
QByteArray getHash(const QString &pluginPath)
std::map< QString, ArmarXWidgetInfoPtr > WidgetCreatorMap
static bool ContainsAny(const QString &str, const QStringList &items)
static QString GetIconCachePath()
PluginData loadFromCache(const QString &pluginPath)
void writeToCache(const QString &pluginPath)
WidgetCreatorMap loadPlugin(QSharedPointer< QPluginLoader > loader)
void removeWidgetFromCache(QString pluginPath, QString widgetName)
IceUtil::Handle< ArmarXWidgetController > ArmarXWidgetControllerPtr
QStringList getAvailableWidgetNames() const
This file offers overloads of toIce() and fromIce() functions for STL container types.
PluginCache(ArmarXManagerPtr manager)
std::shared_ptr< PluginCache > PluginCachePtr
bool cachePlugin(const QString &pluginPath)