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)
91 // Warning: Never add enum entries in the middle: always add them at the end (numeric values are stored in configuration)
153 static QList< QPair< QString, int > > enumerateMessageSortingOptions( Aggregation::Threading t );
161 static QList< QPair< QString, int > > enumerateMessageSortDirectionOptions( MessageSorting ms );
177 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:266
void setGroupSortDirection(SortDirection groupSortDirection)
Sets the SortDirection for the groups.
Definition: sortorder.h:120
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:243
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:56
MessageSorting messageSorting() const
Returns the current message sorting option.
Definition: sortorder.h:126
SortDirection messageSortDirection() const
Returns the current message SortDirection.
Definition: sortorder.h:138
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:100
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:154
void readConfig(KConfigGroup &conf, const QString &storageId, bool *storageUsesPrivateSortOrder)
Reads the sort order from a config group.
Definition: sortorder.cpp:230
Don't sort the messages at all.
Definition: sortorder.h:80
SortDirection groupSortDirection() const
Returns the current group SortDirection.
Definition: sortorder.h:113
void setMessageSortDirection(SortDirection messageSortDirection)
Sets the SortDirection for the message.
Definition: sortorder.h:145
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
Sort the messages By "Important" flags of status.
Definition: sortorder.h:90
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:132
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:133
Sort groups by date/time of the most recent message.
Definition: sortorder.h:55
static QList< QPair< QString, int > > enumerateGroupSortingOptions(Aggregation::Grouping g)
Enumerates the group sorting options compatible with the specified Grouping.
Definition: sortorder.cpp:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.