From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- xparts/src/interfaces/xparthost.h | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 xparts/src/interfaces/xparthost.h (limited to 'xparts/src/interfaces/xparthost.h') diff --git a/xparts/src/interfaces/xparthost.h b/xparts/src/interfaces/xparthost.h new file mode 100644 index 00000000..3d1d95f4 --- /dev/null +++ b/xparts/src/interfaces/xparthost.h @@ -0,0 +1,53 @@ +#ifndef __xkparts_parthost_h__ +#define __xkparts_parthost_h__ + +#include +#include + +class XPartHost : public DCOPObject +{ + K_DCOP +public: + XPartHost(QCString name) : DCOPObject(name) {} + +k_dcop: + + /** The XPart should register itself to its host when it is created */ + virtual DCOPRef registerXPart( const DCOPRef &part ) = 0; + + /** Returns the registered part */ + virtual DCOPRef part() = 0; + + /** The XPart informs its host about its available actions. + * the actions are sent to the XPart using XPart::activateAction */ + virtual ASYNC createActions( const QCString &xmlActions ) = 0; + + /** DCOP signal emitted by the XPart and received here, to be + * forwarded to the KPartHost. See KParts documentation for + * more details. */ + virtual ASYNC setWindowCaption( const QString &caption ) = 0; + + /** DCOP signal emitted by the XPart and received here, to be + * forwarded to the KPartHost. See KParts documentation for + * more details. */ + virtual ASYNC setStatusBarText( const QString &text ) = 0; + + + /** DCOP signal emitted by the XPart and received here, to be + * forwarded to the KPartHost. See KParts documentation for + * more details. */ + virtual ASYNC started() = 0; + + /** DCOP signal emitted by the XPart and received here, to be + * forwarded to the KPartHost. See KParts documentation for + * more details. */ + virtual ASYNC completed() = 0; + + /** DCOP signal emitted by the XPart and received here, to be + * forwarded to the KPartHost. See KParts documentation for + * more details. */ + virtual ASYNC canceled( const QString &errMsg ) = 0; + +}; + +#endif -- cgit v1.2.3