blob: 7722f5fb2bb271ae1131b7b371e6237c83078d54 (
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
32
33
34
35
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
|