diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /xparts/mozilla/kmozillapart.cpp | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'xparts/mozilla/kmozillapart.cpp')
-rw-r--r-- | xparts/mozilla/kmozillapart.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/xparts/mozilla/kmozillapart.cpp b/xparts/mozilla/kmozillapart.cpp new file mode 100644 index 00000000..d5f73050 --- /dev/null +++ b/xparts/mozilla/kmozillapart.cpp @@ -0,0 +1,51 @@ +#include "kmozillapart.h" + +#include <dcopclient.h> +#include <dcopobject.h> +#include <kapplication.h> +#include <kstdaction.h> +#include <kaction.h> +#include <kmainwindow.h> +#include <kprocess.h> +#include <kparts/mainwindow.h> +#include <kdebug.h> +#include <kaboutdata.h> +#include <kparts/genericfactory.h> + +typedef KParts::GenericFactory<KMozillaPart> 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" |