mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kparts: drop LiveConnectExtension class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7d47c9b699
commit
f52ce6884d
4 changed files with 0 additions and 76 deletions
|
@ -468,7 +468,6 @@ install(
|
||||||
KParts/Factory
|
KParts/Factory
|
||||||
KParts/FileInfoExtension
|
KParts/FileInfoExtension
|
||||||
KParts/GUIActivateEvent
|
KParts/GUIActivateEvent
|
||||||
KParts/LiveConnectExtension
|
|
||||||
KParts/ListingExtension
|
KParts/ListingExtension
|
||||||
KParts/MainWindow
|
KParts/MainWindow
|
||||||
KParts/OpenUrlEvent
|
KParts/OpenUrlEvent
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
#include "../../kparts/browserextension.h"
|
|
|
@ -523,28 +523,4 @@ BrowserExtension *BrowserExtension::childObject( QObject *obj )
|
||||||
return KGlobal::findDirectChild<KParts::BrowserExtension *>(obj);
|
return KGlobal::findDirectChild<KParts::BrowserExtension *>(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
LiveConnectExtension::LiveConnectExtension( KParts::ReadOnlyPart *parent )
|
|
||||||
: QObject( parent ), d( 0 ) {}
|
|
||||||
|
|
||||||
LiveConnectExtension::~LiveConnectExtension() {}
|
|
||||||
|
|
||||||
bool LiveConnectExtension::get( const unsigned long, const QString &, Type &, unsigned long &, QString & ) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool LiveConnectExtension::put( const unsigned long, const QString &, const QString & ) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool LiveConnectExtension::call( const unsigned long, const QString &, const QStringList &, Type &, unsigned long &, QString & ) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void LiveConnectExtension::unregister( const unsigned long ) {}
|
|
||||||
|
|
||||||
LiveConnectExtension *LiveConnectExtension::childObject( QObject *obj )
|
|
||||||
{
|
|
||||||
return KGlobal::findDirectChild<KParts::LiveConnectExtension *>(obj);
|
|
||||||
}
|
|
||||||
|
|
||||||
#include "moc_browserextension.cpp"
|
#include "moc_browserextension.cpp"
|
||||||
|
|
|
@ -641,56 +641,6 @@ private:
|
||||||
BrowserExtensionPrivate * const d;
|
BrowserExtensionPrivate * const d;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* An extension class for LiveConnect, i.e. a call from JavaScript
|
|
||||||
* from a HTML page which embeds this part.
|
|
||||||
* A part can have an object hierarchy by using objid as a reference
|
|
||||||
* to an object.
|
|
||||||
*/
|
|
||||||
class KPARTS_EXPORT LiveConnectExtension : public QObject
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
enum Type {
|
|
||||||
TypeVoid=0, TypeBool, TypeFunction, TypeNumber, TypeObject, TypeString
|
|
||||||
};
|
|
||||||
typedef QList<QPair<Type, QString> > ArgList;
|
|
||||||
|
|
||||||
LiveConnectExtension( KParts::ReadOnlyPart *parent );
|
|
||||||
|
|
||||||
virtual ~LiveConnectExtension();
|
|
||||||
/**
|
|
||||||
* get a field value from objid, return true on success
|
|
||||||
*/
|
|
||||||
virtual bool get( const unsigned long objid, const QString & field, Type & type, unsigned long & retobjid, QString & value );
|
|
||||||
/**
|
|
||||||
* put a field value in objid, return true on success
|
|
||||||
*/
|
|
||||||
virtual bool put( const unsigned long objid, const QString & field, const QString & value );
|
|
||||||
/**
|
|
||||||
* calls a function of objid, return true on success
|
|
||||||
*/
|
|
||||||
virtual bool call( const unsigned long objid, const QString & func, const QStringList & args, Type & type, unsigned long & retobjid, QString & value );
|
|
||||||
/**
|
|
||||||
* notifies the part that there is no reference anymore to objid
|
|
||||||
*/
|
|
||||||
virtual void unregister( const unsigned long objid );
|
|
||||||
|
|
||||||
static LiveConnectExtension *childObject( QObject *obj );
|
|
||||||
Q_SIGNALS:
|
|
||||||
#if !defined(Q_MOC_RUN) && !defined(DOXYGEN_SHOULD_SKIP_THIS) && !defined(IN_IDE_PARSER)
|
|
||||||
public: // yes, those signals are public; don't tell moc, doxygen or kdevelop :)
|
|
||||||
#endif
|
|
||||||
/**
|
|
||||||
* notify a event from the part of object objid
|
|
||||||
*/
|
|
||||||
void partEvent( const unsigned long objid, const QString & event, const KParts::LiveConnectExtension::ArgList & args );
|
|
||||||
|
|
||||||
private:
|
|
||||||
class LiveConnectExtensionPrivate;
|
|
||||||
LiveConnectExtensionPrivate * const d;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_DECLARE_OPERATORS_FOR_FLAGS( KParts::BrowserExtension::PopupFlags )
|
Q_DECLARE_OPERATORS_FOR_FLAGS( KParts::BrowserExtension::PopupFlags )
|
||||||
|
|
Loading…
Add table
Reference in a new issue