|
|
#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 49 of file PluginCache.cpp.
| bool cachePlugin | ( | const QString & | pluginPath | ) |
Definition at line 59 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool cacheWidget | ( | QString | widgetName, |
| ArmarXWidgetInfoPtr | widgetCreator | ||
| ) |
| void clearCacheFile | ( | ) |
Definition at line 270 of file PluginCache.cpp.
|
static |
Definition at line 207 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void copyResourcesToCache | ( | ) |
| QStringList getAvailableWidgetNames | ( | ) | const |
| WidgetCreatorMap getAvailableWidgets | ( | ) | const |
Definition at line 157 of file PluginCache.cpp.
|
static |
Definition at line 201 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QByteArray getHash | ( | const QString & | pluginPath | ) |
|
static |
Definition at line 189 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 195 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| ArmarXWidgetInfoPtr getWidgetCreator | ( | const QString & | widgetName | ) |
|
protected |
Definition at line 384 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 431 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void preloadAsync | ( | QStringList | widgetNames, |
| int | delayMS = 1000 |
||
| ) |
Definition at line 220 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void removePluginFromCache | ( | QString | pluginPath | ) |
Definition at line 311 of file PluginCache.cpp.
| void removeWidgetFromCache | ( | QString | pluginPath, |
| QString | widgetName | ||
| ) |
|
protected |
|
protected |
Definition at line 359 of file PluginCache.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
mutableprotected |
Definition at line 69 of file PluginCache.h.
|
protected |
Definition at line 65 of file PluginCache.h.
|
protected |
Definition at line 67 of file PluginCache.h.
|
protected |
Definition at line 66 of file PluginCache.h.
|
protected |
Definition at line 70 of file PluginCache.h.
|
protected |
Definition at line 68 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 71 of file PluginCache.h.