messagelist
sortorder.h
Go to the documentation of this file.
59 // Never add enum entries in the middle: always add them at the end (numeric values are stored in configuration)
92 // Warning: Never add enum entries in the middle: always add them at the end (numeric values are stored in configuration)
154 static QList< QPair< QString, int > > enumerateMessageSortingOptions( Aggregation::Threading t );
162 static QList< QPair< QString, int > > enumerateMessageSortDirectionOptions( MessageSorting ms );
178 static QList< QPair< QString, int > > enumerateGroupSortDirectionOptions( Aggregation::Grouping g,
Sort the messages by date and time of the most recent message in subtree.
Definition: sortorder.h:82
A class which holds information about sorting, e.g.
Definition: sortorder.h:37
Sort the messages by subject.
Definition: sortorder.h:86
A set of aggregation options that can be applied to the MessageList::Model in a single shot...
Definition: aggregation.h:43
Sort groups by date/time of the group.
Definition: sortorder.h:54
static bool isValidMessageSorting(SortOrder::MessageSorting ms)
Returns true if the ms parameter specifies a valid MessageSorting option.
Definition: sortorder.cpp:267
void setGroupSortDirection(SortDirection groupSortDirection)
Sets the SortDirection for the groups.
Definition: sortorder.h:121
Sort groups by receiver (makes sense only with GroupByReceiver)
Definition: sortorder.h:58
SortDirection
The "generic" sort direction: used for groups and for messages If you add values here please look at ...
Definition: sortorder.h:67
Sort the messages by receiver.
Definition: sortorder.h:85
void writeConfig(KConfigGroup &conf, const QString &storageId, bool storageUsesPrivateSortOrder) const
Writes the sort order to a config group.
Definition: sortorder.cpp:244
Don't sort the groups at all, add them as they come in.
Definition: sortorder.h:53
static QList< QPair< QString, int > > enumerateMessageSortDirectionOptions(MessageSorting ms)
Enumerates the available message sorting directions for the specified MessageSorting option...
Definition: sortorder.cpp:57
MessageSorting messageSorting() const
Returns the current message sorting option.
Definition: sortorder.h:127
SortDirection messageSortDirection() const
Returns the current message SortDirection.
Definition: sortorder.h:139
static QList< QPair< QString, int > > enumerateGroupSortDirectionOptions(Aggregation::Grouping g, GroupSorting groupSorting)
Enumerates the group sort direction options compatible with the specified Grouping and GroupSorting...
Definition: sortorder.cpp:101
Sort the messages by sender.
Definition: sortorder.h:84
Sort groups by sender (makes sense only with GroupBySender)
Definition: sortorder.h:57
static SortOrder defaultForAggregation(const Aggregation *aggregation, const SortOrder &oldSortOrder)
Returns the default sort order for the given aggregation.
Definition: sortorder.cpp:155
void readConfig(KConfigGroup &conf, const QString &storageId, bool *storageUsesPrivateSortOrder)
Reads the sort order from a config group.
Definition: sortorder.cpp:231
Don't sort the messages at all.
Definition: sortorder.h:80
SortDirection groupSortDirection() const
Returns the current group SortDirection.
Definition: sortorder.h:114
void setMessageSortDirection(SortDirection messageSortDirection)
Sets the SortDirection for the message.
Definition: sortorder.h:146
GroupSorting
How to sort the groups If you add values here please look at the implementations of the enumerate* fu...
Definition: sortorder.h:51
Sort the messages by sender or receiver.
Definition: sortorder.h:83
static QList< QPair< QString, int > > enumerateMessageSortingOptions(Aggregation::Threading t)
Enumerates the message sorting options compatible with the specified Threading setting.
Definition: sortorder.cpp:38
Sort groups by sender or receiver (makes sense only with GroupBySenderOrReceiver) ...
Definition: sortorder.h:56
Sort the messages by the "Unread" flags of status.
Definition: sortorder.h:89
Sort the messages by size.
Definition: sortorder.h:87
Sort the messages by date and time.
Definition: sortorder.h:81
void setMessageSorting(MessageSorting ms)
Sets the current message sorting option.
Definition: sortorder.h:133
Sort the messages by the "Action Item" flag of status.
Definition: sortorder.h:88
bool validForAggregation(const Aggregation *aggregation) const
Checks if this sort order can be used in combination with the given aggregation.
Definition: sortorder.cpp:134
Sort groups by date/time of the most recent message.
Definition: sortorder.h:55
Sort the messages By "Important" flags of status.
Definition: sortorder.h:91
static QList< QPair< QString, int > > enumerateGroupSortingOptions(Aggregation::Grouping g)
Enumerates the group sorting options compatible with the specified Grouping.
Definition: sortorder.cpp:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 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:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.