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/src/interfaces/xpart.h | |
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/src/interfaces/xpart.h')
-rw-r--r-- | xparts/src/interfaces/xpart.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/xparts/src/interfaces/xpart.h b/xparts/src/interfaces/xpart.h new file mode 100644 index 00000000..7722f5fb --- /dev/null +++ b/xparts/src/interfaces/xpart.h @@ -0,0 +1,36 @@ +#ifndef __xkparts_part_h__ +#define __xkparts_part_h__ + +#include <dcopobject.h> +#include <dcopref.h> +#include <qglobal.h> + +class XPart : public DCOPObject +{ + K_DCOP +k_dcop: + + /** The XPartManager uses the windowId() to embed the part. */ + virtual Q_UINT32 windowId() = 0; + + /** Called when the part should display itself */ + virtual void show() = 0; + + /** sent by the XPartHost to request url opening */ + virtual bool openURL( const QCString& url ) = 0; + + /** sent by the XPartHost to close the url */ + virtual bool closeURL() = 0; + + /** Called when an action (previously registered with + * XPartHost::createActions()) has been activated. Name is the name of the + * action, state is used with Toggle actions to precise the current state. + */ + virtual ASYNC activateAction( const QString &name, int state ) = 0; + + /** Are extentions available -> browser extension / TextEditor ? */ + virtual DCOPRef queryExtension( const QCString& extension ) = 0; + +}; + +#endif |