KParts
Go to the documentation of this file.
23 #include <QtCore/QPointer>
24 #include <QtCore/QEvent>
25 #include <QtCore/QSharedDataPointer>
26 #include <QtXml/QDomElement>
33 #define KPARTS_DECLARE_PRIVATE(Class) \
34 inline Class##Private* d_func() { return reinterpret_cast<Class##Private *>(PartBase::d_ptr); } \
35 inline const Class##Private* d_func() const { return reinterpret_cast<const Class##Private *>(PartBase::d_ptr); } \
36 friend class Class##Private;
43 struct QUnknownInterface;
56 class PartActivateEvent;
57 class PartSelectEvent;
58 class GUIActivateEvent;
59 class PartBasePrivate;
85 void setPartObject(
QObject *
object );
95 virtual void setComponentData(
const KComponentData &componentData);
108 virtual void setComponentData(
const KComponentData &componentData,
bool loadPlugins);
123 DoNotLoadPlugins = 0,
137 LoadPluginsIfEnabled = 2
165 void setPluginLoadingMode( PluginLoadingMode loadingMode );
179 void setPluginInterfaceVersion(
int version );
246 virtual void embed(
QWidget * parentWidget );
272 void setAutoDeleteWidget(
bool autoDeleteWidget);
282 void setAutoDeletePart(
bool autoDeletePart);
297 virtual void setSelectable(
bool selectable );
302 bool isSelectable()
const;
323 void setStatusBarText(
const QString & text );
331 virtual void setWidget(
QWidget * widget );
336 virtual void customEvent(
QEvent *event );
380 void slotWidgetDestroyed();
390 class ReadOnlyPartPrivate;
392 class OpenUrlArgumentsPrivate;
421 void setReload(
bool b);
429 void setXOffset(
int x);
437 void setYOffset(
int y);
443 void setMimeType(
const QString& mime);
452 bool actionRequestedByUser()
const;
453 void setActionRequestedByUser(
bool userRequested);
464 QSharedDataPointer<OpenUrlArgumentsPrivate> d;
492 Q_PROPERTY(
KUrl url READ url )
515 void setProgressInfoEnabled(
bool show );
521 bool isProgressInfoEnabled() const;
523 #ifndef KDE_NO_COMPAT
524 void showProgressInfo(
bool show );
536 virtual bool openUrl(
const KUrl &url );
554 virtual bool closeUrl();
587 bool openStream(
const QString& mimeType,
const KUrl& url );
595 bool writeStream(
const QByteArray& data );
611 virtual bool doOpenStream(
const QString& ) {
return false; }
618 virtual bool doWriteStream(
const QByteArray& ) {
return false; }
624 virtual bool doCloseStream() {
return false; }
650 void completed(
bool pendingAction );
656 void canceled(
const QString &errMsg );
662 void urlChanged(
const KUrl & url );
670 virtual bool openFile();
687 virtual void guiActivateEvent( GUIActivateEvent *event );
692 #ifndef KDE_NO_DEPRECATED
693 KDE_DEPRECATED
bool isLocalFileTemporary()
const;
699 #ifndef KDE_NO_DEPRECATED
700 KDE_DEPRECATED
void setLocalFileTemporary(
bool temp );
706 void setUrl(
const KUrl &url);
716 void setLocalFilePath(
const QString &localFilePath );
719 ReadOnlyPart(ReadOnlyPartPrivate &dd,
QObject *parent);
722 Q_PRIVATE_SLOT(d_func(),
void _k_slotJobFinished(
KJob * job ))
723 Q_PRIVATE_SLOT(d_func(),
void _k_slotStatJobFinished(
KJob*))
724 Q_PRIVATE_SLOT(d_func(),
void _k_slotGotMimeType(KIO::Job *job, const
QString &mime))
726 Q_DISABLE_COPY(ReadOnlyPart)
728 class ReadWritePartPrivate;
770 bool isReadWrite()
const;
776 virtual void setReadWrite (
bool readwrite =
true );
781 bool isModified()
const;
791 virtual bool queryClose();
804 virtual bool closeUrl();
814 virtual bool closeUrl(
bool promptToSave );
826 virtual void setModified(
bool modified );
834 void sigQueryClose(
bool *handled,
bool* abortClosing);
855 bool waitSaveComplete();
869 virtual bool saveFile() = 0;
879 virtual bool saveToUrl();
882 Q_PRIVATE_SLOT(d_func(),
void _k_slotUploadFinished(
KJob * job ))
890 #undef KPARTS_DECLARE_PRIVATE
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:07:22 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.