mailcommon
filteractionwithfolder.cpp
Go to the documentation of this file.
32 FilterActionWithFolder::FilterActionWithFolder( const QString &name, const QString &label, QObject *parent )
67 static_cast<FolderRequester*>( paramWidget )->setCollection( CommonKernel->draftsCollectionFolder() );
70 bool FilterActionWithFolder::argsFromStringInteractive( const QString &argsStr , const QString& name)
76 Akonadi::Collection::List lst = FilterActionMissingCollectionDialog::potentialCorrectFolders( argsStr, exactPath );
80 QPointer<FilterActionMissingCollectionDialog> dlg = new FilterActionMissingCollectionDialog( lst, name, argsStr );
127 bool FilterActionWithFolder::folderRemoved( const Akonadi::Collection &oldFolder, const Akonadi::Collection &newFolder )
virtual QString displayString() const
Returns a translated string describing this filter for visualization purposes, e.g.
Definition: filteractionwithfolder.cpp:118
virtual QString argsAsString() const
Return extra arguments as string.
Definition: filteractionwithfolder.cpp:109
virtual void clearParamWidget(QWidget *paramWidget) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionwithfolder.cpp:65
virtual void setParamWidgetValue(QWidget *paramWidget) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionwithfolder.cpp:60
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionwithfolder.cpp:55
virtual bool isEmpty() const
Determines whether this action is valid.
Definition: filteractionwithfolder.cpp:37
QString number(int n, int base)
void setShowOutbox(bool show)
Definition: folderrequester.cpp:185
void setObjectName(const QString &name)
FilterActionWithFolder(const QString &name, const QString &label, QObject *parent=0)
Creates a new filter action.
Definition: filteractionwithfolder.cpp:32
A widget that contains a KLineEdit which shows the current folder and a button that fires a FolderSel...
Definition: folderrequester.h:59
virtual void argsFromString(const QString &argsStr)
Read extra arguments from given string.
Definition: filteractionwithfolder.cpp:98
virtual QString argsAsStringReal() const
Definition: filteractionwithfolder.cpp:91
MAILCOMMON_EXPORT Akonadi::Collection updatedCollection(const Akonadi::Collection &col)
Definition: mailutil.cpp:403
virtual bool argsFromStringInteractive(const QString &argsStr, const QString &filterName)
Read extra arguments from given string.
Definition: filteractionwithfolder.cpp:70
virtual QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionwithfolder.cpp:42
Akonadi::Collection mFolder
Definition: filteractionwithfolder.h:102
MAILCOMMON_EXPORT QString fullCollectionPath(const Akonadi::Collection &collection)
Definition: mailutil.cpp:115
QString escape(const QString &plain)
void filterActionModified()
Called to notify that the current FilterAction has had some value modification.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
qlonglong toLongLong(bool *ok, int base) const
virtual bool folderRemoved(const Akonadi::Collection &aFolder, const Akonadi::Collection &aNewFolder)
Called from the filter when a folder is removed.
Definition: filteractionwithfolder.cpp:127
static Akonadi::Collection::List potentialCorrectFolders(const QString &path, bool &exactPath)
Definition: filteractionmissingargumentdialog.cpp:166
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.