32 #include <QtCore/qplugin.h>
33 #include <QtCore/QObject>
35 using namespace Plugin1;
38 : initializeCalled(false)
44 initializeCalled =
true;
45 QObject *obj =
new QObject;
46 obj->setObjectName(
"MyPlugin1");
51 foreach (QObject *
object, ExtensionSystem::PluginManager::instance()->allObjects()) {
52 if (object->objectName() ==
"MyPlugin2")
54 else if (object->objectName() ==
"MyPlugin3")
60 QString
error =
"object(s) missing from plugin(s):";
62 error.append(
" plugin2");
64 error.append(
" plugin3");
72 if (!initializeCalled)
75 QObject *obj =
new QObject;
76 obj->setObjectName(
"MyPlugin1_running");
bool initialize(const QStringList &arguments, QString *errorString)
void addAutoReleasedObject(QObject *obj)
else error('Your technical computing program does not support file choosers.Please input the file name in the argument. ') end elseif nargin >0 logfile
void extensionsInitialized()