Messagelib
model.h
91 void setStorageModel(StorageModel *storageModel, PreSelectionMode preSelectionMode = PreSelectLastSelected);
96 * Called with PreSelectNone to abort any pending message pre-selection. This may be done if the user
124 * Does not reload the model in any way: you need to call setStorageModel( storageModel() ) for this to happen.
133 * Does not reload the model in any way: you need to call setStorageModel( storageModel() ) for this to happen.
169 Q_REQUIRED_RESULT MessageItemSetReference createPersistentSet(const QVector<MessageItem *> &items);
178 Q_REQUIRED_RESULT QList<MessageItem *> persistentSetCurrentMessageItemList(MessageItemSetReference ref);
191 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
Q_OBJECTQ_OBJECT
DisplayRole
void setStorageModel(StorageModel *storageModel, PreSelectionMode preSelectionMode=PreSelectLastSelected)
Sets the storage model from that the messages to be displayed should be fetched.
Definition: model.cpp:740
Item * rootItem() const
Returns the hidden root item that all the messages are (or will be) attached to.
Definition: model.cpp:4521
Model(View *pParent)
Creates the mighty Model attached to the specified View.
Definition: model.cpp:304
void deletePersistentSet(MessageItemSetReference ref)
Deletes the persistent set pointed by the specified reference.
Definition: model.cpp:4566
typedef ItemFlags
Orientation
MessageItem * messageItemByStorageRow(int row) const
Returns the message item that is at the current storage row index or zero if no such storage item is ...
Definition: model.cpp:4531
PreSelectionMode
Pre-selection is the action of automatically selecting a message just after the folder has finished l...
Definition: messagelist/src/core/enums.h:40
A class which holds information about sorting, e.g.
Definition: sortorder.h:34
QMimeData * mimeData(const QModelIndexList &indexes) const override
Called when user initiates a drag from the messagelist.
Definition: model.cpp:4507
void setAggregation(const Aggregation *aggregation)
Sets the Aggregation mode.
Definition: model.cpp:368
Q_SIGNALSQ_SIGNALS
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Definition: model.cpp:485
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:48
SortOrder
void setPreSelectionMode(PreSelectionMode preSelect)
Sets the pre-selection mode.
Definition: model.cpp:1001
The QAbstractItemModel based interface that you need to provide for your storage to work with Message...
Definition: storagemodelbase.h:28
void statusMessage(const QString &message)
Notify the outside when updating the status bar with a message could be useful.
This class is responsible of matching messages that should be displayed in the View.
Definition: filter.h:44
~Model() override
Destroys the mighty model along with the tree of items it manages.
Definition: model.cpp:350
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:47
void setFilter(const Filter *filter)
Sets the Filter to be applied on messages.
Definition: model.cpp:389
QList< MessageItem * > persistentSetCurrentMessageItemList(MessageItemSetReference ref)
Returns the list of MessageItems that are still existing in the set pointed by the specified referenc...
Definition: model.cpp:4558
A set of aggregation options that can be applied to the MessageList::Model in a single shot.
Definition: aggregation.h:28
QObject * parent() const const
QString message
MessageItemSetReference createPersistentSet(const QVector< MessageItem * > &items)
Creates a persistent set for the specified MessageItems and returns its reference.
Definition: model.cpp:4544
bool isLoading() const
Returns true if the view is currently loading, that is it's in the first (possibly lengthy) job batch...
Definition: model.cpp:4526
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.