Mailcommon
filteractionwithfolder.cpp
20FilterActionWithFolder::FilterActionWithFolder(const QString &name, const QString &label, QObject *parent)
37 connect(requester, &FolderRequester::folderChanged, this, &FilterActionWithFolder::filterActionModified);
57bool FilterActionWithFolder::argsFromStringInteractive(const QString &argsStr, const QString &name)
63 const Akonadi::Collection::List lst = FilterActionMissingFolderDialog::potentialCorrectFolders(argsStr, exactPath);
67 const Akonadi::Collection newCol = MailCommon::FilterImporterPathCache::self()->convertedFilterPath(argsStr);
69 QPointer<FilterActionMissingFolderDialog> dlg = new FilterActionMissingFolderDialog(lst, name, argsStr);
124bool FilterActionWithFolder::folderRemoved(const Akonadi::Collection &oldFolder, const Akonadi::Collection &newFolder)
qint64 Id
bool isValid() const
Id id() const
void argsFromString(const QString &argsStr) override
Read extra arguments from given string.
Definition filteractionwithfolder.cpp:93
void applyParamWidgetValue(QWidget *paramWidget) override
The filter action shall set it's parameter from the widget's contents.
Definition filteractionwithfolder.cpp:42
void clearParamWidget(QWidget *paramWidget) const override
The filter action shall clear it's parameter widget's contents.
Definition filteractionwithfolder.cpp:52
bool folderRemoved(const Akonadi::Collection &aFolder, const Akonadi::Collection &aNewFolder) override
Called from the filter when a folder is removed.
Definition filteractionwithfolder.cpp:124
QString displayString() const override
Returns a translated string describing this filter for visualization purposes, e.g.
Definition filteractionwithfolder.cpp:114
void setParamWidgetValue(QWidget *paramWidget) const override
The filter action shall set it's widget's contents from it's parameter.
Definition filteractionwithfolder.cpp:47
bool isEmpty() const override
Determines whether this action is valid.
Definition filteractionwithfolder.cpp:25
FilterActionWithFolder(const QString &name, const QString &label, QObject *parent=nullptr)
Creates a new filter action.
Definition filteractionwithfolder.cpp:20
QWidget * createParamWidget(QWidget *parent) const override
Creates a widget for setting the filter action parameter.
Definition filteractionwithfolder.cpp:30
QString argsAsString() const override
Return extra arguments as string.
Definition filteractionwithfolder.cpp:104
bool argsFromStringInteractive(const QString &argsStr, const QString &filterName) override
Read extra arguments from given string.
Definition filteractionwithfolder.cpp:57
void filterActionModified()
Called to notify that the current FilterAction has had some value modification.
const_reference at(qsizetype i) const const
qsizetype count() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QString number(double n, char format, int precision)
QString toHtmlEscaped() const const
qlonglong toLongLong(bool *ok, int base) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 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:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.