KParts
readwritepart.cpp
void result(KJob *job)
void setWindowCaption(const QString &caption)
Emitted by the part, to set the caption of the window(s) hosting this part.
void urlChanged(const QUrl &url)
Emitted by the part when url() changes.
void canceled(const QString &errMsg)
Emit this if loading is canceled by the user or by an error.
virtual bool closeUrl()
Called when closing the current URL (for example, a document), for instance when switching to another...
Definition readonlypart.cpp:216
virtual void setReadWrite(bool readwrite=true)
Changes the behavior of this part to readonly or readwrite.
Definition readwritepart.cpp:49
~ReadWritePart() override
Destructor Applications using a ReadWritePart should make sure, before destroying it,...
Definition readwritepart.cpp:41
virtual bool queryClose()
If the document has been modified, ask the user to save changes.
Definition readwritepart.cpp:74
virtual bool saveAs(const QUrl &url)
Save the file to a new location.
Definition readwritepart.cpp:161
bool waitSaveComplete()
Waits for any pending upload job to finish and returns whether the last save() action was successful.
Definition readwritepart.cpp:312
virtual bool save()
Save the file in the location from which it was opened.
Definition readwritepart.cpp:145
void sigQueryClose(bool *handled, bool *abortClosing)
set handled to true, if you don't want the default handling set abortClosing to true,...
ReadWritePart(QObject *parent=nullptr, const KPluginMetaData &data={})
Constructor See parent constructor for instructions.
Definition readwritepart.cpp:36
void setModified()
Call setModified() whenever the contents get modified.
Definition readwritepart.cpp:69
QString i18n(const char *text, const TYPE &arg...)
KIOCORE_EXPORT FileCopyJob * file_move(const QUrl &src, const QUrl &dest, int permissions=-1, JobFlags flags=DefaultFlags)
Overwrite
void setWindow(QObject *job, QWidget *widget)
PrimaryAction
SecondaryAction
ButtonCode warningTwoActionsCancel(QWidget *parent, const QString &text, const QString &title, const KGuiItem &primaryAction, const KGuiItem &secondaryAction, const KGuiItem &cancelAction=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|Dangerous))
KGuiItem save()
KGuiItem discard()
QWidget * activeWindow()
ExcludeUserInputEvents
QByteArray encodeName(const QString &fileName)
bool remove()
QUrl getSaveFileUrl(QWidget *parent, const QString &caption, const QUrl &dir, const QString &filter, QString *selectedFilter, Options options, const QStringList &supportedSchemes)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool isEmpty() const const
const ushort * utf16() const const
virtual QString fileName() const const override
bool open()
void setAutoRemove(bool b)
PreferLocalFile
QString fileName(ComponentFormattingOptions options) const const
QUrl fromLocalFile(const QString &localFile)
bool isEmpty() const const
bool isValid() const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.