#include "kmozillapart.h" #include #include #include #include #include #include #include #include #include #include #include typedef KParts::GenericFactory KMozillaPartFactory; K_EXPORT_COMPONENT_FACTORY( libkmozillapart, KMozillaPartFactory ); KMozillaPart::KMozillaPart(QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const QStringList &) : XPartHost_KPart(parentWidget, widgetName, parent, name) { setInstance( KMozillaPartFactory::instance() ); m_partProcess = new KProcess; *m_partProcess << "kmozilla" << kapp->dcopClient()->appId() << objId(); m_partProcess->start(); qDebug("---->>>>>> enter loop"); kapp->enter_loop(); qDebug("----<<<<<< left loop"); } KMozillaPart::~KMozillaPart() { delete m_partProcess; } void KMozillaPart::createActions( const QCString &xmlActions ) { XPartHost_KPart::createActions( xmlActions ); qDebug("----<<<<<< exit loop"); kapp->exit_loop(); } KAboutData *KMozillaPart::createAboutData() { return new KAboutData( "kmozilla", "kmozilla", "0.1" ); } #include "kmozillapart.moc"