48#include <QProgressBar>
56 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-MemInfo")
61 void log(
Logtype _type, QString _message);
62 void log(QString _message);
65 void addWidgetToStatusbar(QWidget* _widget);
72 QString
name() {
return (QString(
"MemInfo")); } ;
73 QString
description() {
return (QString(
"Plugin used to display current GPU/CPU Memory Status")); } ;
79 void pluginsInitialized();
104 QString version() {
return QString(
"1.0"); };
106 unsigned long getFreeRamMB();
108 unsigned long getTotalRamMB();
Logtype
Log types for Message Window.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
void cpuMemoryInfoUpdate()
Update statusbar with main memory infos.
QString description()
Return a description of what the plugin is doing.
void nvidiaMemoryInfoUpdate()
Update statusbar with NVIDIA memory infos.
QString name()
Return a name for the plugin.
QProgressBar * gpuMemBar_
Status bar for GPU memory.
QProgressBar * mainMemBar_
Status bar for Main memory.
void initializePlugin()
BaseInterface.
QTimer * updateTimer_
Timer that triggers an update of the bars.
void setProgressBarStyleSheet(QProgressBar *_bar)
Sets the Qt Stylesheet for the progress bars.
Control OpenFlippers status bar.