|
#include <ArmarXGui/libraries/ArmarXGuiBase/PluginCache.h>
Public Member Functions | |
bool | cachePlugin (const QString &pluginPath) |
bool | cacheWidget (QString widgetName, ArmarXWidgetInfoPtr widgetCreator) |
void | clearCacheFile () |
void | copyResourcesToCache () |
QStringList | getAvailableWidgetNames () const |
WidgetCreatorMap | getAvailableWidgets () const |
QByteArray | getHash (const QString &pluginPath) |
ArmarXWidgetInfoPtr | getWidgetCreator (const QString &widgetName) |
PluginCache (ArmarXManagerPtr manager) | |
void | preloadAsync (QStringList widgetNames, int delayMS=1000) |
void | removePluginFromCache (QString pluginPath) |
void | removeWidgetFromCache (QString pluginPath, QString widgetName) |
~PluginCache () | |
Static Public Member Functions | |
static bool | ContainsAny (const QString &str, const QStringList &items) |
static QString | GetCategoryIconPath (const QString &widgetName) |
static QString | GetIconCachePath () |
static QString | GetIconPath (const QString &widgetName) |
Public Attributes | |
const QString | settingsApplicationName = "/PluginCache.conf" |
const QString | settingsOrganization = "KIT" |
Protected Member Functions | |
PluginData | loadFromCache (const QString &pluginPath) |
WidgetCreatorMap | loadPlugin (QSharedPointer< QPluginLoader > loader) |
void | updateLastModifiedTimestamp (const QString &pluginPath) |
void | writeToCache (const QString &pluginPath) |
Protected Attributes | |
std::recursive_mutex | cacheMutex |
const QString | cachePath |
ArmarXManagerPtr | manager |
QMap< QString, PluginData > | pluginData |
std::future< void > | preloadFuture |
QSettings | s |
bool | shutdown = false |
Definition at line 36 of file PluginCache.h.
PluginCache | ( | ArmarXManagerPtr | manager | ) |
Definition at line 18 of file PluginCache.cpp.
~PluginCache | ( | ) |
Definition at line 48 of file PluginCache.cpp.
bool cachePlugin | ( | const QString & | pluginPath | ) |
Definition at line 57 of file PluginCache.cpp.
bool cacheWidget | ( | QString | widgetName, |
ArmarXWidgetInfoPtr | widgetCreator | ||
) |
void clearCacheFile | ( | ) |
Definition at line 252 of file PluginCache.cpp.
|
static |
Definition at line 194 of file PluginCache.cpp.
void copyResourcesToCache | ( | ) |
QStringList getAvailableWidgetNames | ( | ) | const |
WidgetCreatorMap getAvailableWidgets | ( | ) | const |
Definition at line 149 of file PluginCache.cpp.
|
static |
Definition at line 189 of file PluginCache.cpp.
QByteArray getHash | ( | const QString & | pluginPath | ) |
|
static |
Definition at line 179 of file PluginCache.cpp.
|
static |
Definition at line 184 of file PluginCache.cpp.
ArmarXWidgetInfoPtr getWidgetCreator | ( | const QString & | widgetName | ) |
|
protected |
Definition at line 356 of file PluginCache.cpp.
|
protected |
Definition at line 404 of file PluginCache.cpp.
void preloadAsync | ( | QStringList | widgetNames, |
int | delayMS = 1000 |
||
) |
Definition at line 206 of file PluginCache.cpp.
void removePluginFromCache | ( | QString | pluginPath | ) |
Definition at line 289 of file PluginCache.cpp.
void removeWidgetFromCache | ( | QString | pluginPath, |
QString | widgetName | ||
) |
|
protected |
|
protected |
Definition at line 332 of file PluginCache.cpp.
|
mutableprotected |
Definition at line 68 of file PluginCache.h.
|
protected |
Definition at line 64 of file PluginCache.h.
|
protected |
Definition at line 66 of file PluginCache.h.
|
protected |
Definition at line 65 of file PluginCache.h.
|
protected |
Definition at line 69 of file PluginCache.h.
|
protected |
Definition at line 67 of file PluginCache.h.
const QString settingsApplicationName = "/PluginCache.conf" |
Definition at line 47 of file PluginCache.h.
const QString settingsOrganization = "KIT" |
Definition at line 46 of file PluginCache.h.
|
protected |
Definition at line 70 of file PluginCache.h.