summaryrefslogtreecommitdiffstats
path: root/xparts/src/kde/kbrowsersignals.cpp
blob: 8daa1a54f89ce254101dda212c4951398bc9f172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "kbrowsersignals.h"
#include "xparthost_kpart.h"
#include "xbrowserextension_stub.h"
#include <kurl.h>

KBrowserSignals::KBrowserSignals( XPartHost_KPart *_part, DCOPRef extension )
    : KParts::BrowserExtension( _part )
{
    qDebug("KBrowserSignals constructor");
    part = _part;
    ext = new XBrowserExtension_stub( extension.app(), extension.object() );
    ext->setBrowserSignals( DCOPRef( this ) );
}

KBrowserSignals::~KBrowserSignals()
{
    delete ext;
}

void KBrowserSignals::openURLRequest( const TTQCString &url)
{
    KURL u = TTQString(url);
    emit KParts::BrowserExtension::openURLRequest(u);
}

void KBrowserSignals::createNewWindow( const TTQCString &url )
{
}

#include "kbrowsersignals.moc"