24 #include <QX11EmbedWidget>
26 #include <kparts/browserextension.h>
29 #define KLASH_NO_EXPORT __attribute__ ((visibility("hidden")))
31 #define KLASH_NO_EXPORT
33 #define KDE_NO_CDTOR_EXPORT KLASH_NO_EXPORT
35 #define KDE_NO_EXPORT KLASH_NO_EXPORT
53 void urlChanged (
const QString &
url);
54 void setLoadingProgress (
int percentage);
56 void saveState (QDataStream & stream);
57 void restoreState (QDataStream & stream);
58 void requestOpenUrl (
const KUrl &
url,
const QString & target,
const QString & service);
71 bool get (
const unsigned long,
const QString &,
73 bool put (
const unsigned long,
const QString &,
const QString &);
74 bool call (
const unsigned long,
const QString &,
76 unsigned long &, QString &);
77 void unregister (
const unsigned long);
78 void sendEvent(
const unsigned long objid,
const QString & event,
const KParts::LiveConnectExtension::ArgList & args ) {
79 emit partEvent(objid, event, args);
84 void partEvent (
const unsigned long,
const QString &,
85 const KParts::LiveConnectExtension::ArgList &);
87 void setSize (
int w,
int h);
92 const JSCommandEntry * lastJSCommandEntry;
94 bool m_enablefinish : 1;
111 void resizeEvent (QResizeEvent *);
119 friend struct GroupPredicate;
121 KlashPart (QWidget * wparent, QObject * parent,
const QStringList &args);
125 {
return m_browserextension; }
127 {
return m_liveconnectextension; }
128 bool allowRedir (
const KUrl &
url)
const;
130 void setLoaded (
int percentage);
131 const QString &
source ()
const {
return m_src_url; }
133 virtual bool openUrl (
const KUrl &
url);
134 virtual bool closeUrl ();
138 int width ()
const {
return m_width; }
141 void playingStarted ();
142 void playingStopped ();
143 void processStopped (
int, QProcess::ExitStatus);
145 virtual bool openFile();
150 KProcess * m_process;
157 bool m_autostart : 1;
158 bool m_fullscreen : 1;
159 bool m_started_emited : 1;