mailcommon
Namespaces | |
Util | |
Typedefs | |
typedef FilterAction *(* | FilterActionNewFunc )(void) |
Enumerations | |
enum | StatusValueTypes { StatusImportant = 0, StatusToAct = 1, StatusUnread = 2, StatusRead = 3, StatusDeleted = 4, StatusReplied = 5, StatusForwarded = 6, StatusQueued = 7, StatusSent = 8, StatusWatched = 9, StatusIgnored = 10, StatusSpam = 11, StatusHam = 12, StatusHasAttachment = 13 } |
Functions | |
static QModelIndex | lastChildOf (QAbstractItemModel *model, const QModelIndex ¤t) |
MAILCOMMON_EXPORT QDataStream & | operator<< (QDataStream &stream, const MailFilter &filter) |
MAILCOMMON_EXPORT QDataStream & | operator>> (QDataStream &stream, MailFilter &filter) |
Variables | |
const char * | _wt_filterdlg_showLater |
const char * | _wt_filterlist |
const char * | _wt_filterlist_bottom |
const char * | _wt_filterlist_copy |
const char * | _wt_filterlist_delete |
const char * | _wt_filterlist_down |
const char * | _wt_filterlist_new |
const char * | _wt_filterlist_rename |
const char * | _wt_filterlist_top |
const char * | _wt_filterlist_up |
static QMap< Collection::Id, QSharedPointer < FolderCollection > > | fcMap |
const int | FILTER_MAX_ACTIONS = 8 |
const int | FILTER_MAX_RULES = 8 |
static QMutex | mapMutex |
static const char * | myConfigGroupName = "FolderSelectionDialog" |
static const int | StatusValueCount |
static const int | StatusValueCountWithoutHidden = StatusValueCount - 1 |
static const MessageStatusInfo | StatusValues [] |
Detailed Description
This is a complex widget that is used to manipulate a mail program's filter list.
Copyright (c) 2004 David Faure faure @kde .org
It consists of an internal list of filters, which is a deep copy of the list KMFilterMgr manages, a QListBox displaying that list, and a few buttons used to create new filters, delete them, rename them and change the order of filters.
It does not provide means to change the actual filter (besides the name), but relies on auxiliary widgets (SearchPatternEdit and KMFilterActionEdit) to do that.
Communication with this widget is quite easy: simply create an instance, connect the signals filterSelected, resetWidgets and applyWidgets with a slot that does the right thing and there you go...
This widget will operate on it's own copy of the filter list as long as you don't call slotApplyFilterChanges. It will then transfer the altered filter list back to KMFilterMgr.
A complex widget that allows managing a list of MailCommon::MailFilter's.
- See also
- MailCommon::MailFilter KMFilterDialog KMFilterActionEdit SearchPatternEdit
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of the Qt library by Trolltech AS, Norway (or with modified versions of Qt that use the same license as Qt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than Qt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.
Typedef Documentation
typedef FilterAction*(* MailCommon::FilterActionNewFunc)(void) |
Definition at line 31 of file filteractiondict.h.
Enumeration Type Documentation
Enumerator | |
---|---|
StatusImportant | |
StatusToAct | |
StatusUnread | |
StatusRead | |
StatusDeleted | |
StatusReplied | |
StatusForwarded | |
StatusQueued | |
StatusSent | |
StatusWatched | |
StatusIgnored | |
StatusSpam | |
StatusHam | |
StatusHasAttachment |
Definition at line 512 of file searchpattern.h.
Function Documentation
|
static |
Definition at line 440 of file foldertreeview.cpp.
QDataStream & MailCommon::operator<< | ( | QDataStream & | stream, |
const MailFilter & | filter | ||
) |
Definition at line 631 of file mailfilter.cpp.
QDataStream & MailCommon::operator>> | ( | QDataStream & | stream, |
MailCommon::MailFilter & | filter | ||
) |
Definition at line 662 of file mailfilter.cpp.
Variable Documentation
const char* MailCommon::_wt_filterdlg_showLater |
Definition at line 283 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist |
Definition at line 215 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_bottom |
Definition at line 268 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_copy |
Definition at line 230 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_delete |
Definition at line 235 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_down |
Definition at line 252 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_new |
Definition at line 222 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_rename |
Definition at line 275 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_top |
Definition at line 261 of file kmfilterdialog.cpp.
const char* MailCommon::_wt_filterlist_up |
Definition at line 243 of file kmfilterdialog.cpp.
|
static |
Definition at line 44 of file foldercollection.cpp.
const int MailCommon::FILTER_MAX_ACTIONS = 8 |
Definition at line 40 of file mailfilter.h.
const int MailCommon::FILTER_MAX_RULES = 8 |
Definition at line 54 of file searchpattern.h.
|
static |
Definition at line 43 of file foldercollection.cpp.
|
static |
Definition at line 267 of file folderselectiondialog.cpp.
|
static |
Definition at line 529 of file searchpattern.h.
|
static |
Definition at line 534 of file searchpattern.h.
|
static |
Definition at line 493 of file searchpattern.h.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.