You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/xparts/mozilla/kmozillapart.cpp

52 lines
1.3 KiB

#include "kmozillapart.h"
#include <dcopclient.h>
#include <dcopobject.h>
#include <tdeapplication.h>
#include <kstdaction.h>
#include <tdeaction.h>
#include <tdemainwindow.h>
#include <kprocess.h>
#include <tdeparts/mainwindow.h>
#include <kdebug.h>
#include <tdeaboutdata.h>
#include <tdeparts/genericfactory.h>
typedef KParts::GenericFactory<KMozillaPart> KMozillaPartFactory;
K_EXPORT_COMPONENT_FACTORY( libkmozillapart, KMozillaPartFactory );
KMozillaPart::KMozillaPart(TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, const TQStringList &)
: XPartHost_KPart(parentWidget, widgetName, parent, name)
{
setInstance( KMozillaPartFactory::instance() );
m_partProcess = new TDEProcess;
*m_partProcess << "kmozilla"
<< kapp->dcopClient()->appId() << objId();
m_partProcess->start();
tqDebug("---->>>>>> enter loop");
kapp->enter_loop();
tqDebug("----<<<<<< left loop");
}
KMozillaPart::~KMozillaPart()
{
delete m_partProcess;
}
void KMozillaPart::createActions( const TQCString &xmlActions )
{
XPartHost_KPart::createActions( xmlActions );
tqDebug("----<<<<<< exit loop");
kapp->exit_loop();
}
TDEAboutData *KMozillaPart::createAboutData()
{
return new TDEAboutData( "kmozilla", "kmozilla", "0.1" );
}
#include "kmozillapart.moc"