1 /***************************************************************************
2 * Copyright (C) 2002 by Wilco Greven <greven@kde.org> *
3 * Copyright (C) 2008 by Pino Toscano <pino@kde.org> *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
11 #ifndef _EXTENSIONS_H_
12 #define _EXTENSIONS_H_
14 #include <kparts/browserextension.h>
18 class BrowserExtension
: public KParts::BrowserExtension
23 BrowserExtension(Part
*);
26 // Automatically detected by the host.
33 class OkularLiveConnectExtension
: public KParts::LiveConnectExtension
38 OkularLiveConnectExtension( Part
*parent
);
40 // from LiveConnectExtension
41 virtual bool get( const unsigned long objid
, const QString
&field
, Type
&type
,
42 unsigned long &retobjid
, QString
&value
);
43 virtual bool put( const unsigned long objid
, const QString
&field
, const QString
&value
);
44 virtual bool call( const unsigned long objid
, const QString
&func
, const QStringList
&args
,
45 Type
&type
, unsigned long &retobjid
, QString
&value
);
48 QString
eval( const QString
&script
);
49 void postMessage( const QStringList
&args
);
56 /* kate: replace-tabs on; indent-width 4; */