diff options
Diffstat (limited to 'doc/pluginhowto/examples/progressbar/progressbarplugin.cpp')
-rw-r--r-- | doc/pluginhowto/examples/progressbar/progressbarplugin.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/pluginhowto/examples/progressbar/progressbarplugin.cpp b/doc/pluginhowto/examples/progressbar/progressbarplugin.cpp new file mode 100644 index 0000000000..af06a838cc --- /dev/null +++ b/doc/pluginhowto/examples/progressbar/progressbarplugin.cpp @@ -0,0 +1,36 @@ +#include "progressbarplugin.h" +#include "headerfilterprogress.h" + +#include <QtPlugin> +#include <QStringList> + +ProgressBarPlugin::ProgressBarPlugin() +{ + // Do nothing +} + +ProgressBarPlugin::~ProgressBarPlugin() +{ + // Do notning +} + +void ProgressBarPlugin::extensionsInitialized() +{ + // Do nothing +} + +bool ProgressBarPlugin::initialize(const QStringList& args, QString *errMsg) +{ + Q_UNUSED(args); + Q_UNUSED(errMsg); + + addAutoReleasedObject( new HeaderFilterProgress); + return true; +} + +void ProgressBarPlugin::shutdown() +{ + // Do nothing +} + +Q_EXPORT_PLUGIN(ProgressBarPlugin) |