C++ (Qt)IApplication::IAppMap IApplication::_impl;
C++ (Qt)BaseApplication BaseApplication::_application;
C++ (Qt)#include "baseapplication.h" #include <QtCore/QCoreApplication>#include <QtCore/QDebug> using namespace core; IApplication::IAppMap IApplication::_impl;BaseApplication BaseApplication::_application;QCoreApplication * BaseApplication::qtapp = 0; BaseApplication::BaseApplication() :IApplication(){ registerImplementation("BaseApplication", this);} int BaseApplication::run(){ if(qtapp) return 0; else return 1;} void BaseApplication::onInitialized(){ qDebug() << QObject::tr("BaseApplication initialized");}