Files
qt-creator/doc/pluginhowto/examples/donothing/donothingplugin.cpp

36 lines
538 B
C++
Raw Normal View History

#include "donothingplugin.h"
#include <QtPlugin>
#include <QStringList>
DoNothingPlugin::DoNothingPlugin()
{
// Do nothing
}
DoNothingPlugin::~DoNothingPlugin()
{
// Do notning
}
void DoNothingPlugin::extensionsInitialized()
{
// Do nothing
}
bool DoNothingPlugin::initialize(const QStringList& args, QString *errMsg)
{
Q_UNUSED(args);
Q_UNUSED(errMsg);
return true;
}
2010-07-15 20:28:53 +02:00
ExtensionSystem::IPlugin::ShutdownFlag DoNothingPlugin::shutdown()
{
2010-07-15 20:28:53 +02:00
return SynchronousShutdown;
}
Q_EXPORT_PLUGIN(DoNothingPlugin)